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

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

plat/arm: Cleanup of includes and drivers
parents bc153881 560293bb
...@@ -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
......
...@@ -141,9 +141,6 @@ ifeq (${ARM_CRYPTOCELL_INTEG},1) ...@@ -141,9 +141,6 @@ ifeq (${ARM_CRYPTOCELL_INTEG},1)
endif endif
endif endif
PLAT_INCLUDES += -Iinclude/common/tbbr \
-Iinclude/plat/arm/common
ifeq (${ARCH}, aarch64) ifeq (${ARCH}, aarch64)
PLAT_INCLUDES += -Iinclude/plat/arm/common/aarch64 PLAT_INCLUDES += -Iinclude/plat/arm/common/aarch64
endif endif
...@@ -257,8 +254,6 @@ ifneq (${TRUSTED_BOARD_BOOT},0) ...@@ -257,8 +254,6 @@ ifneq (${TRUSTED_BOARD_BOOT},0)
drivers/auth/img_parser_mod.c \ drivers/auth/img_parser_mod.c \
drivers/auth/tbbr/tbbr_cot.c \ drivers/auth/tbbr/tbbr_cot.c \
PLAT_INCLUDES += -Iinclude/bl1/tbbr
BL1_SOURCES += ${AUTH_SOURCES} \ BL1_SOURCES += ${AUTH_SOURCES} \
bl1/tbbr/tbbr_img_desc.c \ bl1/tbbr/tbbr_img_desc.c \
plat/arm/common/arm_bl1_fwu.c \ plat/arm/common/arm_bl1_fwu.c \
......
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/pl011.h> #include <drivers/arm/pl011.h>
#include <drivers/console.h> #include <drivers/console.h>
#include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
/******************************************************************************* /*******************************************************************************
* Functions that set up the console * Functions that set up the console
......
...@@ -15,11 +15,10 @@ ...@@ -15,11 +15,10 @@
#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/common/arm_dyn_cfg_helpers.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <arm_dyn_cfg_helpers.h>
#include <plat_arm.h>
/* Variable to store the address to TB_FW_CONFIG passed from BL1 */ /* Variable to store the address to TB_FW_CONFIG passed from BL1 */
static void *tb_fw_cfg_dtb; static void *tb_fw_cfg_dtb;
static size_t tb_fw_cfg_dtb_size; static size_t tb_fw_cfg_dtb_size;
......
...@@ -10,9 +10,8 @@ ...@@ -10,9 +10,8 @@
#include <common/desc_image_load.h> #include <common/desc_image_load.h>
#include <common/fdt_wrappers.h> #include <common/fdt_wrappers.h>
#include <plat/arm/common/arm_dyn_cfg_helpers.h>
#include <arm_dyn_cfg_helpers.h> #include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
#define DTB_PROP_MBEDTLS_HEAP_ADDR "mbedtls_heap_addr" #define DTB_PROP_MBEDTLS_HEAP_ADDR "mbedtls_heap_addr"
#define DTB_PROP_MBEDTLS_HEAP_SIZE "mbedtls_heap_size" #define DTB_PROP_MBEDTLS_HEAP_SIZE "mbedtls_heap_size"
......
...@@ -13,10 +13,9 @@ ...@@ -13,10 +13,9 @@
#include <common/debug.h> #include <common/debug.h>
#include <drivers/cfi/v2m_flash.h> #include <drivers/cfi/v2m_flash.h>
#include <drivers/console.h> #include <drivers/console.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <plat_arm.h>
#pragma weak plat_arm_error_handler #pragma weak plat_arm_error_handler
/* /*
......
...@@ -7,10 +7,9 @@ ...@@ -7,10 +7,9 @@
#include <platform_def.h> #include <platform_def.h>
#include <drivers/arm/gicv2.h> #include <drivers/arm/gicv2.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <plat_arm.h>
/****************************************************************************** /******************************************************************************
* The following functions are defined as weak to allow a platform to override * The following functions are defined as weak to allow a platform to override
* the way the GICv2 driver is initialised and used. * the way the GICv2 driver is initialised and used.
......
...@@ -9,10 +9,9 @@ ...@@ -9,10 +9,9 @@
#include <common/interrupt_props.h> #include <common/interrupt_props.h>
#include <drivers/arm/gicv3.h> #include <drivers/arm/gicv3.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>
/****************************************************************************** /******************************************************************************
* The following functions are defined as weak to allow a platform to override * The following functions are defined as weak to allow a platform to override
* the way the GICv3 driver is initialised and used. * the way the GICv3 driver is initialised and used.
......
...@@ -7,10 +7,9 @@ ...@@ -7,10 +7,9 @@
#include <assert.h> #include <assert.h>
#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/common/platform.h> #include <plat/common/platform.h>
#include <plat_arm.h>
#pragma weak plat_flush_next_bl_params #pragma weak plat_flush_next_bl_params
#pragma weak plat_get_bl_image_load_info #pragma weak plat_get_bl_image_load_info
#pragma weak plat_get_next_bl_params #pragma weak plat_get_next_bl_params
......
...@@ -15,11 +15,10 @@ ...@@ -15,11 +15,10 @@
#include <drivers/io/io_memmap.h> #include <drivers/io/io_memmap.h>
#include <drivers/io/io_storage.h> #include <drivers/io/io_storage.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 <tools_share/firmware_image_package.h> #include <tools_share/firmware_image_package.h>
#include <plat_arm.h>
/* IO devices */ /* IO devices */
static const io_dev_connector_t *fip_dev_con; static const io_dev_connector_t *fip_dev_con;
static uintptr_t fip_dev_handle; static uintptr_t fip_dev_handle;
......
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
#include <lib/psci/psci.h> #include <lib/psci/psci.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <lib/utils.h> #include <lib/utils.h>
#include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
/* /*
* DRAM1 is used also to load the NS boot loader. For this reason we * DRAM1 is used also to load the NS boot loader. For this reason we
......
...@@ -11,10 +11,9 @@ ...@@ -11,10 +11,9 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <lib/psci/psci.h> #include <lib/psci/psci.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <plat_arm.h>
/* Allow ARM Standard platforms to override these functions */ /* Allow ARM Standard platforms to override these functions */
#pragma weak plat_arm_program_trusted_mailbox #pragma weak plat_arm_program_trusted_mailbox
......
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