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
...@@ -5,12 +5,15 @@ ...@@ -5,12 +5,15 @@
*/ */
#include <assert.h> #include <assert.h>
#include <debug.h> #include <string.h>
#include <plat_arm.h>
#include <platform_def.h> #include <platform_def.h>
#include <common/debug.h>
#include <plat_arm.h>
#include <sgm_plat_config.h> #include <sgm_plat_config.h>
#include <sgm_variant.h> #include <sgm_variant.h>
#include <string.h>
static css_plat_config_t *css_plat_info; static css_plat_config_t *css_plat_info;
......
...@@ -4,11 +4,12 @@ ...@@ -4,11 +4,12 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <debug.h> #include <common/debug.h>
#include <drivers/arm/tzc_dmc500.h>
#include <plat_arm.h> #include <plat_arm.h>
#include <sgm_variant.h> #include <sgm_variant.h>
#include <soc_css.h> #include <soc_css.h>
#include <tzc_dmc500.h>
/* Is populated with the DMC-500 controllers base addresses */ /* Is populated with the DMC-500 controllers base addresses */
static tzc_dmc500_driver_data_t plat_driver_data; static tzc_dmc500_driver_data_t plat_driver_data;
......
...@@ -4,10 +4,12 @@ ...@@ -4,10 +4,12 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <board_css_def.h>
#include <mmio.h>
#include <nic_400.h>
#include <platform_def.h> #include <platform_def.h>
#include <drivers/arm/nic_400.h>
#include <lib/mmio.h>
#include <board_css_def.h>
#include <soc_css.h> #include <soc_css.h>
#include <soc_css_def.h> #include <soc_css_def.h>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
*/ */
#include <asm_macros.S> #include <asm_macros.S>
#include <console.h> #include <drivers/console.h>
.globl plat_crash_console_init .globl plat_crash_console_init
.globl plat_crash_console_putc .globl plat_crash_console_putc
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <platform.h> #include <lib/xlat_tables/xlat_mmu_helpers.h>
#include <xlat_mmu_helpers.h> #include <plat/common/platform.h>
/* /*
* The following platform setup functions are weakly defined. They * The following platform setup functions are weakly defined. They
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <console.h> #include <drivers/console.h>
#include <platform.h> #include <plat/common/platform.h>
#include <platform_sp_min.h> #include <platform_sp_min.h>
/* /*
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
*/ */
#include <asm_macros.S> #include <asm_macros.S>
#include <console.h> #include <drivers/console.h>
.globl plat_crash_console_init .globl plat_crash_console_init
.globl plat_crash_console_putc .globl plat_crash_console_putc
......
...@@ -4,14 +4,15 @@ ...@@ -4,14 +4,15 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <arch_helpers.h>
#include <assert.h> #include <assert.h>
#include <console.h>
#include <platform.h> #include <arch_helpers.h>
#include <drivers/console.h>
#if RAS_EXTENSION #if RAS_EXTENSION
#include <ras.h> #include <lib/extensions/ras.h>
#endif #endif
#include <xlat_mmu_helpers.h> #include <lib/xlat_tables/xlat_mmu_helpers.h>
#include <plat/common/platform.h>
/* /*
* The following platform setup functions are weakly defined. They * The following platform setup functions are weakly defined. They
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include <arch.h> #include <arch.h>
#include <asm_macros.S> #include <asm_macros.S>
#include <console.h> #include <drivers/console.h>
#include <platform_def.h> #include <platform_def.h>
.weak plat_report_exception .weak plat_report_exception
......
...@@ -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 <bl1.h>
#include <debug.h>
#include <errno.h> #include <errno.h>
#include <platform.h>
#include <platform_def.h> #include <platform_def.h>
#include <arch_helpers.h>
#include <bl1/bl1.h>
#include <common/bl_common.h>
#include <common/debug.h>
#include <plat/common/platform.h>
/* /*
* The following platform functions are weakly defined. They * The following platform functions are weakly defined. They
* are default implementations that allow BL1 to compile in * are default implementations that allow BL1 to compile in
......
...@@ -4,16 +4,17 @@ ...@@ -4,16 +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 <errno.h> #include <errno.h>
#include <arch_helpers.h>
#include <common/bl_common.h>
#include <common/debug.h>
#if TRUSTED_BOARD_BOOT #if TRUSTED_BOARD_BOOT
#include <mbedtls_config.h> #include <drivers/auth/mbedtls/mbedtls_config.h>
#endif #endif
#include <platform.h> #include <lib/xlat_tables/xlat_tables_compat.h>
#include <xlat_tables_compat.h> #include <plat/common/platform.h>
/* /*
* The following platform functions are weakly defined. The Platforms * The following platform functions are weakly defined. The Platforms
......
...@@ -3,13 +3,15 @@ ...@@ -3,13 +3,15 @@
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <assert.h> #include <assert.h>
#include <gic_common.h>
#include <gicv2.h>
#include <interrupt_mgmt.h>
#include <platform.h>
#include <stdbool.h> #include <stdbool.h>
#include <bl31/interrupt_mgmt.h>
#include <drivers/arm/gic_common.h>
#include <drivers/arm/gicv2.h>
#include <plat/common/platform.h>
/* /*
* The following platform GIC functions are weakly defined. They * The following platform GIC functions are weakly defined. They
* provide typical implementations that may be re-used by multiple * provide typical implementations that may be re-used by multiple
......
...@@ -3,16 +3,18 @@ ...@@ -3,16 +3,18 @@
* *
* 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 <cassert.h>
#include <gic_common.h>
#include <gicv3.h>
#include <interrupt_mgmt.h>
#include <platform.h>
#include <stdbool.h> #include <stdbool.h>
#include <arch_helpers.h>
#include <common/bl_common.h>
#include <bl31/interrupt_mgmt.h>
#include <drivers/arm/gic_common.h>
#include <drivers/arm/gicv3.h>
#include <lib/cassert.h>
#include <plat/common/platform.h>
#ifdef IMAGE_BL31 #ifdef IMAGE_BL31
/* /*
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <debug.h> #include <common/debug.h>
#include <platform.h> #include <plat/common/platform.h>
/* Allow platforms to override the log prefix string */ /* Allow platforms to override the log prefix string */
#pragma weak plat_log_get_prefix #pragma weak plat_log_get_prefix
......
...@@ -4,11 +4,12 @@ ...@@ -4,11 +4,12 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <arch.h>
#include <assert.h> #include <assert.h>
#include <platform.h>
#include <pmf.h> #include <arch.h>
#include <psci.h> #include <lib/pmf/pmf.h>
#include <lib/psci/psci.h>
#include <plat/common/platform.h>
#if ENABLE_PSCI_STAT && ENABLE_PMF #if ENABLE_PSCI_STAT && ENABLE_PMF
#pragma weak plat_psci_stat_accounting_start #pragma weak plat_psci_stat_accounting_start
......
...@@ -5,13 +5,16 @@ ...@@ -5,13 +5,16 @@
*/ */
#include <assert.h> #include <assert.h>
#include <debug.h> #include <string.h>
#include <fdt_wrappers.h>
#include <libfdt.h> #include <libfdt.h>
#include <platform_def.h> #include <platform_def.h>
#include <sp_res_desc.h>
#include <string.h> #include <common/debug.h>
#include <object_pool.h> #include <common/fdt_wrappers.h>
#include <lib/object_pool.h>
#include <services/sp_res_desc.h>
/******************************************************************************* /*******************************************************************************
* Resource pool * Resource pool
......
...@@ -5,9 +5,11 @@ ...@@ -5,9 +5,11 @@
*/ */
#include <assert.h> #include <assert.h>
#include <debug.h>
#include <platform_def.h> #include <platform_def.h>
#include <sptool.h>
#include <common/debug.h>
#include <tools_share/sptool.h>
static unsigned int sp_next; static unsigned int sp_next;
......
...@@ -5,14 +5,15 @@ ...@@ -5,14 +5,15 @@
*/ */
#include <assert.h> #include <assert.h>
#include <auth/auth_mod.h> #include <string.h>
#include <platform.h>
#include <drivers/auth/auth_mod.h>
#include <plat/common/platform.h>
#if USE_TBBR_DEFS #if USE_TBBR_DEFS
#include <tbbr_oid.h> #include <tools_share/tbbr_oid.h>
#else #else
#include <platform_oid.h> #include <platform_oid.h>
#endif #endif
#include <string.h>
/* /*
* Store a new non-volatile counter value. This implementation * Store a new non-volatile counter value. This implementation
......
...@@ -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 <arch_helpers.h>
#include <common/bl_common.h>
#include <common/debug.h>
#include <lib/mmio.h>
#include <lib/xlat_tables/xlat_tables.h>
#include <plat/common/platform.h>
#include <hikey_def.h> #include <hikey_def.h>
#include <hikey_layout.h> #include <hikey_layout.h>
#include <mmio.h>
#include <platform.h>
#include <xlat_tables.h>
#define MAP_DDR MAP_REGION_FLAT(DDR_BASE, \ #define MAP_DDR MAP_REGION_FLAT(DDR_BASE, \
DDR_SIZE - DDR_SEC_SIZE, \ DDR_SIZE - DDR_SEC_SIZE, \
......
...@@ -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 <bl_common.h>
#include <debug.h>
#include <dw_mmc.h>
#include <errno.h> #include <errno.h>
#include <string.h>
#include <arch_helpers.h>
#include <bl1/tbbr/tbbr_img_desc.h>
#include <common/bl_common.h>
#include <common/debug.h>
#include <drivers/arm/pl011.h>
#include <drivers/mmc.h>
#include <drivers/synopsys/dw_mmc.h>
#include <lib/mmio.h>
#include <plat/common/platform.h>
#include <hi6220.h> #include <hi6220.h>
#include <hikey_def.h> #include <hikey_def.h>
#include <hikey_layout.h> #include <hikey_layout.h>
#include <mmc.h>
#include <mmio.h>
#include <pl011.h>
#include <platform.h>
#include <string.h>
#include <tbbr/tbbr_img_desc.h>
#include "../../bl1/bl1_private.h" #include "../../../bl1/bl1_private.h"
#include "hikey_private.h" #include "hikey_private.h"
/* Data structure which holds the extents of the trusted RAM for BL1 */ /* Data structure which holds the extents of the trusted RAM for BL1 */
......
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