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