Commit bd9344f6 authored by Antonio Nino Diaz's avatar Antonio Nino Diaz
Browse files

plat/arm: Sanitise includes



Use full include paths like it is done for common includes.

This cleanup was started in commit d40e0e08283a ("Sanitise includes
across codebase"), but it only cleaned common files and drivers. This
patch does the same to Arm platforms.

Change-Id: If982e6450bbe84dceb56d464e282bcf5d6d9ab9b
Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
parent 7ca572d9
...@@ -23,13 +23,13 @@ ...@@ -23,13 +23,13 @@
#if TRUSTED_BOARD_BOOT #if TRUSTED_BOARD_BOOT
#include <drivers/auth/mbedtls/mbedtls_config.h> #include <drivers/auth/mbedtls/mbedtls_config.h>
#endif #endif
#include <plat/arm/board/common/board_css_def.h>
#include <plat/arm/board/common/v2m_def.h>
#include <plat/arm/common/arm_def.h>
#include <plat/arm/css/common/css_def.h>
#include <plat/arm/soc/common/soc_css_def.h>
#include <plat/common/common_def.h> #include <plat/common/common_def.h>
#include <arm_def.h>
#include <board_css_def.h>
#include <css_def.h>
#include <soc_css_def.h>
#include <v2m_def.h>
#include "../juno_def.h" #include "../juno_def.h"
/* Required platform porting definitions */ /* Required platform porting definitions */
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
#include <common/debug.h> #include <common/debug.h>
#include <common/tbbr/tbbr_img_def.h> #include <common/tbbr/tbbr_img_def.h>
#include <drivers/arm/sp805.h> #include <drivers/arm/sp805.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <platform_def.h> #include <platform_def.h>
#include <plat_arm.h>
#include <sds.h> #include <sds.h>
void juno_reset_to_aarch32_state(void); void juno_reset_to_aarch32_state(void);
......
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
#include <common/bl_common.h> #include <common/bl_common.h>
#include <common/desc_image_load.h> #include <common/desc_image_load.h>
#include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
#if JUNO_AARCH32_EL3_RUNTIME #if JUNO_AARCH32_EL3_RUNTIME
/******************************************************************************* /*******************************************************************************
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
*/ */
#include <platform_def.h> #include <platform_def.h>
#include <plat_arm.h> #include <plat/arm/common/plat_arm.h>
/* /*
* Table of memory regions for different BL stages to map using the MMU. * Table of memory regions for different BL stages to map using the MMU.
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <plat_arm.h> #include <plat/arm/common/plat_arm.h>
#include <scmi.h> #include <scmi.h>
const plat_psci_ops_t *plat_arm_psci_override_pm_ops(plat_psci_ops_t *ops) const plat_psci_ops_t *plat_arm_psci_override_pm_ops(plat_psci_ops_t *ops)
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
#include <drivers/arm/nic_400.h> #include <drivers/arm/nic_400.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <platform_def.h> #include <platform_def.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/arm/soc/common/soc_css.h>
#include <plat_arm.h>
#include <soc_css.h>
#include "juno_tzmp1_def.h" #include "juno_tzmp1_def.h"
#ifdef JUNO_TZMP1 #ifdef JUNO_TZMP1
......
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <plat/arm/common/plat_arm.h>
#include <plat/arm/css/common/css_pm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <platform_def.h> #include <platform_def.h>
#include <css_pm.h>
#include <plat_arm.h>
#include "../../css/drivers/scmi/scmi.h" #include "../../css/drivers/scmi/scmi.h"
#include "../../css/drivers/mhu/css_mhu_doorbell.h" #include "../../css/drivers/mhu/css_mhu_doorbell.h"
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
#ifndef PLATFORM_DEF_H #ifndef PLATFORM_DEF_H
#define PLATFORM_DEF_H #define PLATFORM_DEF_H
#include <arm_def.h> #include <plat/arm/board/common/v2m_def.h>
#include <css_def.h> #include <plat/arm/common/arm_def.h>
#include <v2m_def.h> #include <plat/arm/css/common/css_def.h>
/* UART related constants */ /* UART related constants */
#define PLAT_ARM_BOOT_UART_BASE 0x2A400000 #define PLAT_ARM_BOOT_UART_BASE 0x2A400000
......
...@@ -6,9 +6,10 @@ ...@@ -6,9 +6,10 @@
#include <platform_def.h> #include <platform_def.h>
#include <plat/arm/common/plat_arm.h>
#include "../../css/drivers/scmi/scmi.h" #include "../../css/drivers/scmi/scmi.h"
#include "../../css/drivers/mhu/css_mhu_doorbell.h" #include "../../css/drivers/mhu/css_mhu_doorbell.h"
#include <plat_arm.h>
static scmi_channel_plat_info_t n1sdp_scmi_plat_info = { static scmi_channel_plat_info_t n1sdp_scmi_plat_info = {
.scmi_mbx_mem = N1SDP_SCMI_PAYLOAD_BASE, .scmi_mbx_mem = N1SDP_SCMI_PAYLOAD_BASE,
......
...@@ -8,10 +8,9 @@ ...@@ -8,10 +8,9 @@
#include <common/bl_common.h> #include <common/bl_common.h>
#include <common/debug.h> #include <common/debug.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <plat_arm.h>
/* /*
* Table of regions to map using the MMU. * Table of regions to map using the MMU.
* Replace or extend the below regions as required * Replace or extend the below regions as required
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <plat_arm.h> #include <plat/arm/common/plat_arm.h>
/* Topology */ /* Topology */
typedef struct n1sdp_topology { typedef struct n1sdp_topology {
......
...@@ -13,10 +13,9 @@ ...@@ -13,10 +13,9 @@
#include <common/bl_common.h> #include <common/bl_common.h>
#include <common/debug.h> #include <common/debug.h>
#include <lib/utils.h> #include <lib/utils.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <plat_arm.h>
/* Struct to keep track of usable memory */ /* Struct to keep track of usable memory */
typedef struct bl1_mem_info { typedef struct bl1_mem_info {
uintptr_t mem_base; uintptr_t mem_base;
......
...@@ -14,10 +14,9 @@ ...@@ -14,10 +14,9 @@
#include <drivers/arm/sp805.h> #include <drivers/arm/sp805.h>
#include <lib/utils.h> #include <lib/utils.h>
#include <lib/xlat_tables/xlat_tables_compat.h> #include <lib/xlat_tables/xlat_tables_compat.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <plat_arm.h>
/* Weak definitions may be overridden in specific ARM standard platform */ /* Weak definitions may be overridden in specific ARM standard platform */
#pragma weak bl1_early_platform_setup #pragma weak bl1_early_platform_setup
#pragma weak bl1_plat_arch_setup #pragma weak bl1_plat_arch_setup
......
...@@ -7,11 +7,10 @@ ...@@ -7,11 +7,10 @@
#include <assert.h> #include <assert.h>
#include <drivers/generic_delay_timer.h> #include <drivers/generic_delay_timer.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <platform_def.h> #include <platform_def.h>
#include <plat_arm.h>
#pragma weak bl2_el3_early_platform_setup #pragma weak bl2_el3_early_platform_setup
#pragma weak bl2_el3_plat_arch_setup #pragma weak bl2_el3_plat_arch_setup
#pragma weak bl2_el3_plat_prepare_exit #pragma weak bl2_el3_plat_prepare_exit
......
...@@ -18,10 +18,9 @@ ...@@ -18,10 +18,9 @@
#include <lib/optee_utils.h> #include <lib/optee_utils.h>
#endif #endif
#include <lib/utils.h> #include <lib/utils.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <plat_arm.h>
/* Data structure which holds the extents of the trusted SRAM for BL2 */ /* Data structure which holds the extents of the trusted SRAM for BL2 */
static meminfo_t bl2_tzram_layout __aligned(CACHE_WRITEBACK_GRANULE); static meminfo_t bl2_tzram_layout __aligned(CACHE_WRITEBACK_GRANULE);
......
...@@ -12,10 +12,9 @@ ...@@ -12,10 +12,9 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <common/bl_common.h> #include <common/bl_common.h>
#include <drivers/generic_delay_timer.h> #include <drivers/generic_delay_timer.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <plat_arm.h>
/* Weak definitions may be overridden in specific ARM standard platform */ /* Weak definitions may be overridden in specific ARM standard platform */
#pragma weak bl2u_platform_setup #pragma weak bl2u_platform_setup
#pragma weak bl2u_early_platform_setup #pragma weak bl2u_early_platform_setup
......
...@@ -15,11 +15,10 @@ ...@@ -15,11 +15,10 @@
#include <lib/mmio.h> #include <lib/mmio.h>
#include <lib/utils.h> #include <lib/utils.h>
#include <lib/xlat_tables/xlat_tables_compat.h> #include <lib/xlat_tables/xlat_tables_compat.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <platform_def.h> #include <platform_def.h>
#include <plat_arm.h>
/* /*
* Placeholder variables for copying the arguments that have been passed to * Placeholder variables for copying the arguments that have been passed to
* BL31 from BL2. * BL31 from BL2.
......
...@@ -9,8 +9,7 @@ ...@@ -9,8 +9,7 @@
#include <arch.h> #include <arch.h>
#include <drivers/arm/cci.h> #include <drivers/arm/cci.h>
#include <lib/utils.h> #include <lib/utils.h>
#include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
static const int cci_map[] = { static const int cci_map[] = {
PLAT_ARM_CCI_CLUSTER0_SL_IFACE_IX, PLAT_ARM_CCI_CLUSTER0_SL_IFACE_IX,
......
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
#include <arch.h> #include <arch.h>
#include <drivers/arm/ccn.h> #include <drivers/arm/ccn.h>
#include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
static const unsigned char master_to_rn_id_map[] = { static const unsigned char master_to_rn_id_map[] = {
PLAT_ARM_CLUSTER_TO_CCN_ID_MAP PLAT_ARM_CLUSTER_TO_CCN_ID_MAP
......
...@@ -14,11 +14,10 @@ ...@@ -14,11 +14,10 @@
#include <common/romlib.h> #include <common/romlib.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <lib/xlat_tables/xlat_tables_compat.h> #include <lib/xlat_tables/xlat_tables_compat.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <services/secure_partition.h> #include <services/secure_partition.h>
#include <plat_arm.h>
/* Weak definitions may be overridden in specific ARM standard platform */ /* Weak definitions may be overridden in specific ARM standard platform */
#pragma weak plat_get_ns_image_entrypoint #pragma weak plat_get_ns_image_entrypoint
#pragma weak plat_arm_get_mmap #pragma weak plat_arm_get_mmap
......
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