Unverified Commit 9a207532 authored by Antonio Niño Díaz's avatar Antonio Niño Díaz Committed by GitHub
Browse files

Merge pull request #1726 from antonio-nino-diaz-arm/an/includes

Sanitise includes across codebase
parents 3f99f7e4 8e7b27a4
...@@ -4,15 +4,17 @@ ...@@ -4,15 +4,17 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <arch_helpers.h>
#include <assert.h> #include <assert.h>
#include <bl_common.h>
#include <debug.h>
#include <delay_timer.h>
#include <errno.h> #include <errno.h>
#include <mmio.h>
#include <platform.h> #include <arch_helpers.h>
#include <xlat_tables.h> #include <common/bl_common.h>
#include <common/debug.h>
#include <drivers/delay_timer.h>
#include <lib/mmio.h>
#include <lib/xlat_tables/xlat_tables.h>
#include <plat/common/platform.h>
#include "hi3798cv200.h" #include "hi3798cv200.h"
#include "platform_def.h" #include "platform_def.h"
......
...@@ -4,22 +4,25 @@ ...@@ -4,22 +4,25 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <arch_helpers.h>
#include <assert.h> #include <assert.h>
#include <bl_common.h>
#include <debug.h>
#include <dw_mmc.h>
#include <errno.h> #include <errno.h>
#include <generic_delay_timer.h>
#include <mmc.h>
#include <mmio.h>
#include <pl011.h>
#include <pl061_gpio.h>
#include <platform.h>
#include <platform_def.h>
#include <string.h> #include <string.h>
#include <tbbr_img_def.h>
#include "../../bl1/bl1_private.h" #include <platform_def.h>
#include <arch_helpers.h>
#include <common/bl_common.h>
#include <common/debug.h>
#include <common/tbbr/tbbr_img_def.h>
#include <drivers/arm/pl011.h>
#include <drivers/arm/pl061_gpio.h>
#include <drivers/generic_delay_timer.h>
#include <drivers/mmc.h>
#include <drivers/synopsys/dw_mmc.h>
#include <lib/mmio.h>
#include <plat/common/platform.h>
#include "../../../bl1/bl1_private.h"
#include "hi3798cv200.h" #include "hi3798cv200.h"
#include "plat_private.h" #include "plat_private.h"
......
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <bl_common.h>
#include <desc_image_load.h>
#include <platform.h>
#include <platform_def.h> #include <platform_def.h>
#include <common/bl_common.h>
#include <common/desc_image_load.h>
#include <plat/common/platform.h>
/******************************************************************************* /*******************************************************************************
* Following descriptor provides BL image/ep information that gets used * Following descriptor provides BL image/ep information that gets used
......
...@@ -4,21 +4,23 @@ ...@@ -4,21 +4,23 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <arch_helpers.h>
#include <assert.h> #include <assert.h>
#include <bl_common.h>
#include <debug.h>
#include <desc_image_load.h>
#include <dw_mmc.h>
#include <errno.h> #include <errno.h>
#include <generic_delay_timer.h>
#include <mmc.h>
#include <mmio.h>
#include <optee_utils.h>
#include <partition/partition.h>
#include <pl011.h>
#include <platform.h>
#include <string.h> #include <string.h>
#include <arch_helpers.h>
#include <common/bl_common.h>
#include <common/debug.h>
#include <common/desc_image_load.h>
#include <drivers/arm/pl011.h>
#include <drivers/generic_delay_timer.h>
#include <drivers/partition/partition.h>
#include <drivers/synopsys/dw_mmc.h>
#include <drivers/mmc.h>
#include <lib/mmio.h>
#include <lib/optee_utils.h>
#include <plat/common/platform.h>
#include "hi3798cv200.h" #include "hi3798cv200.h"
#include "plat_private.h" #include "plat_private.h"
......
...@@ -4,21 +4,24 @@ ...@@ -4,21 +4,24 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <arch.h>
#include <arch_helpers.h>
#include <assert.h> #include <assert.h>
#include <bl31.h>
#include <bl_common.h>
#include <cortex_a53.h>
#include <debug.h>
#include <errno.h> #include <errno.h>
#include <generic_delay_timer.h>
#include <mmio.h>
#include <pl011.h>
#include <platform.h>
#include <platform_def.h>
#include <stddef.h> #include <stddef.h>
#include <string.h> #include <string.h>
#include <platform_def.h>
#include <arch.h>
#include <arch_helpers.h>
#include <bl31/bl31.h>
#include <common/bl_common.h>
#include <common/debug.h>
#include <cortex_a53.h>
#include <drivers/arm/pl011.h>
#include <drivers/generic_delay_timer.h>
#include <lib/mmio.h>
#include <plat/common/platform.h>
#include "hi3798cv200.h" #include "hi3798cv200.h"
#include "plat_private.h" #include "plat_private.h"
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef HI3798CV200_H #ifndef HI3798CV200_H
#define HI3798CV200_H #define HI3798CV200_H
#include <utils_def.h> #include <lib/utils_def.h>
/* PL011 */ /* PL011 */
#define PL011_UART0_BASE (0xF8B00000) #define PL011_UART0_BASE (0xF8B00000)
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
#ifndef PLAT_PRIVATE_H #ifndef PLAT_PRIVATE_H
#define PLAT_PRIVATE_H #define PLAT_PRIVATE_H
#include <bl_common.h> #include <common/bl_common.h>
#include "hi3798cv200.h" #include "hi3798cv200.h"
void plat_configure_mmu_el3(unsigned long total_base, void plat_configure_mmu_el3(unsigned long total_base,
......
...@@ -8,11 +8,12 @@ ...@@ -8,11 +8,12 @@
#define PLATFORM_DEF_H #define PLATFORM_DEF_H
#include <arch.h> #include <arch.h>
#include <common_def.h> #include <common/interrupt_props.h>
#include <gic_common.h> #include <common/tbbr/tbbr_img_def.h>
#include <interrupt_props.h> #include <drivers/arm/gic_common.h>
#include <tbbr/tbbr_img_def.h> #include <lib/utils_def.h>
#include <utils_def.h> #include <plat/common/common_def.h>
#include "hi3798cv200.h" #include "hi3798cv200.h"
#include "poplar_layout.h" /* BL memory region sizes, etc */ #include "poplar_layout.h" /* BL memory region sizes, etc */
......
...@@ -4,16 +4,19 @@ ...@@ -4,16 +4,19 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <arch_helpers.h>
#include <assert.h> #include <assert.h>
#include <bl_common.h>
#include <context.h>
#include <context_mgmt.h>
#include <debug.h>
#include <mmio.h>
#include <platform.h>
#include <platform_def.h> #include <platform_def.h>
#include <psci.h>
#include <arch_helpers.h>
#include <common/bl_common.h>
#include <common/debug.h>
#include <context.h>
#include <lib/el3_runtime/context_mgmt.h>
#include <lib/mmio.h>
#include <lib/psci/psci.h>
#include <plat/common/platform.h>
#include "hi3798cv200.h" #include "hi3798cv200.h"
#include "plat_private.h" #include "plat_private.h"
......
...@@ -4,23 +4,25 @@ ...@@ -4,23 +4,25 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <arch_helpers.h>
#include <assert.h> #include <assert.h>
#include <debug.h>
#include <firmware_image_package.h>
#include <io_block.h>
#include <io_driver.h>
#include <io_fip.h>
#include <io_memmap.h>
#include <io_storage.h>
#include <mmc.h>
#include <mmio.h>
#include <partition/partition.h>
#include <semihosting.h>
#include <string.h> #include <string.h>
#include <tbbr_img_def.h>
#include <utils.h> #include <platform_def.h>
#include "platform_def.h"
#include <arch_helpers.h>
#include <common/debug.h>
#include <common/tbbr/tbbr_img_def.h>
#include <drivers/io/io_block.h>
#include <drivers/io/io_driver.h>
#include <drivers/io/io_fip.h>
#include <drivers/io/io_memmap.h>
#include <drivers/io/io_storage.h>
#include <drivers/mmc.h>
#include <drivers/partition/partition.h>
#include <lib/mmio.h>
#include <lib/semihosting.h>
#include <lib/utils.h>
#include <tools_share/firmware_image_package.h>
#if !POPLAR_RECOVERY #if !POPLAR_RECOVERY
static const io_dev_connector_t *emmc_dev_con; static const io_dev_connector_t *emmc_dev_con;
......
...@@ -4,9 +4,11 @@ ...@@ -4,9 +4,11 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <platform_def.h>
#include <arch.h> #include <arch.h>
#include <psci.h> #include <lib/psci/psci.h>
#include "platform_def.h"
#include "plat_private.h" #include "plat_private.h"
const unsigned char hisi_power_domain_tree_desc[] = { const unsigned char hisi_power_domain_tree_desc[] = {
......
...@@ -54,9 +54,7 @@ $(eval $(call add_define,PLAT_PL061_MAX_GPIOS)) ...@@ -54,9 +54,7 @@ $(eval $(call add_define,PLAT_PL061_MAX_GPIOS))
PLAT_INCLUDES := -Iplat/hisilicon/poplar/include \ PLAT_INCLUDES := -Iplat/hisilicon/poplar/include \
-Iplat/hisilicon/poplar \ -Iplat/hisilicon/poplar \
-Iinclude/common/tbbr \ -Iinclude/common/tbbr
-Iinclude/drivers/synopsys \
-Iinclude/drivers/io
PLAT_BL_COMMON_SOURCES := \ PLAT_BL_COMMON_SOURCES := \
lib/xlat_tables/aarch64/xlat_tables.c \ lib/xlat_tables/aarch64/xlat_tables.c \
......
...@@ -4,10 +4,11 @@ ...@@ -4,10 +4,11 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <gicv2.h>
#include <platform.h>
#include <platform_def.h> #include <platform_def.h>
#include <drivers/arm/gicv2.h>
#include <plat/common/platform.h>
/****************************************************************************** /******************************************************************************
* On a GICv2 system, the Group 1 secure interrupts are treated as Group 0 * On a GICv2 system, the Group 1 secure interrupts are treated as Group 0
* interrupts. * interrupts.
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <bl_common.h> #include <common/bl_common.h>
#include <desc_image_load.h> #include <common/desc_image_load.h>
#include <platform.h> #include <plat/common/platform.h>
/******************************************************************************* /*******************************************************************************
* This function flushes the data structures so that they are visible * This function flushes the data structures so that they are visible
......
...@@ -4,12 +4,14 @@ ...@@ -4,12 +4,14 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <stdbool.h>
#include <arch.h> #include <arch.h>
#include <arch_helpers.h> #include <arch_helpers.h>
#include <debug.h> #include <common/debug.h>
#include <plat_imx8.h> #include <plat_imx8.h>
#include <sci/sci.h> #include <sci/sci.h>
#include <stdbool.h>
void __dead2 imx_system_off(void) void __dead2 imx_system_off(void)
{ {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include <arch.h> #include <arch.h>
#include <arch_helpers.h> #include <arch_helpers.h>
#include <platform.h> #include <plat/common/platform.h>
const unsigned char imx_power_domain_tree_desc[] = { const unsigned char imx_power_domain_tree_desc[] = {
PWR_DOMAIN_AT_MAX_LVL, PWR_DOMAIN_AT_MAX_LVL,
......
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <mmio.h> #include <lib/mmio.h>
#include <utils_def.h> #include <lib/utils_def.h>
#include <imx_aips.h> #include <imx_aips.h>
#include <imx_regs.h> #include <imx_regs.h>
......
...@@ -3,8 +3,11 @@ ...@@ -3,8 +3,11 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <stdint.h> #include <stdint.h>
#include <mmio.h>
#include <lib/mmio.h>
#include <imx_caam.h> #include <imx_caam.h>
void imx_caam_init(void) void imx_caam_init(void)
......
...@@ -3,10 +3,13 @@ ...@@ -3,10 +3,13 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <arch.h>
#include <mmio.h>
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <arch.h>
#include <lib/mmio.h>
#include <imx_regs.h> #include <imx_regs.h>
#include <imx_clock.h> #include <imx_clock.h>
......
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <mmio.h>
#include <lib/mmio.h>
#include <imx_csu.h> #include <imx_csu.h>
#include <imx_regs.h> #include <imx_regs.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment