Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
83a2285e
Unverified
Commit
83a2285e
authored
Jan 28, 2019
by
Antonio Niño Díaz
Committed by
GitHub
Jan 28, 2019
Browse files
Merge pull request #1784 from antonio-nino-diaz-arm/an/includes-arm
plat/arm: Cleanup of includes and drivers
parents
bc153881
560293bb
Changes
118
Show whitespace changes
Inline
Side-by-side
plat/arm/common/arm_bl1_fwu.c
View file @
83a2285e
...
...
@@ -13,10 +13,9 @@
#include <common/bl_common.h>
#include <common/debug.h>
#include <lib/utils.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include <plat_arm.h>
/* Struct to keep track of usable memory */
typedef
struct
bl1_mem_info
{
uintptr_t
mem_base
;
...
...
plat/arm/common/arm_bl1_setup.c
View file @
83a2285e
...
...
@@ -14,10 +14,9 @@
#include <drivers/arm/sp805.h>
#include <lib/utils.h>
#include <lib/xlat_tables/xlat_tables_compat.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include <plat_arm.h>
/* Weak definitions may be overridden in specific ARM standard platform */
#pragma weak bl1_early_platform_setup
#pragma weak bl1_plat_arch_setup
...
...
plat/arm/common/arm_bl2_el3_setup.c
View file @
83a2285e
...
...
@@ -7,11 +7,10 @@
#include <assert.h>
#include <drivers/generic_delay_timer.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include <platform_def.h>
#include <plat_arm.h>
#pragma weak bl2_el3_early_platform_setup
#pragma weak bl2_el3_plat_arch_setup
#pragma weak bl2_el3_plat_prepare_exit
...
...
plat/arm/common/arm_bl2_setup.c
View file @
83a2285e
...
...
@@ -18,10 +18,9 @@
#include <lib/optee_utils.h>
#endif
#include <lib/utils.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include <plat_arm.h>
/* Data structure which holds the extents of the trusted SRAM for BL2 */
static
meminfo_t
bl2_tzram_layout
__aligned
(
CACHE_WRITEBACK_GRANULE
);
...
...
plat/arm/common/arm_bl2u_setup.c
View file @
83a2285e
...
...
@@ -12,10 +12,9 @@
#include <arch_helpers.h>
#include <common/bl_common.h>
#include <drivers/generic_delay_timer.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include <plat_arm.h>
/* Weak definitions may be overridden in specific ARM standard platform */
#pragma weak bl2u_platform_setup
#pragma weak bl2u_early_platform_setup
...
...
plat/arm/common/arm_bl31_setup.c
View file @
83a2285e
...
...
@@ -15,11 +15,10 @@
#include <lib/mmio.h>
#include <lib/utils.h>
#include <lib/xlat_tables/xlat_tables_compat.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include <platform_def.h>
#include <plat_arm.h>
/*
* Placeholder variables for copying the arguments that have been passed to
* BL31 from BL2.
...
...
plat/arm/common/arm_cci.c
View file @
83a2285e
...
...
@@ -9,8 +9,7 @@
#include <arch.h>
#include <drivers/arm/cci.h>
#include <lib/utils.h>
#include <plat_arm.h>
#include <plat/arm/common/plat_arm.h>
static
const
int
cci_map
[]
=
{
PLAT_ARM_CCI_CLUSTER0_SL_IFACE_IX
,
...
...
plat/arm/common/arm_ccn.c
View file @
83a2285e
...
...
@@ -8,8 +8,7 @@
#include <arch.h>
#include <drivers/arm/ccn.h>
#include <plat_arm.h>
#include <plat/arm/common/plat_arm.h>
static
const
unsigned
char
master_to_rn_id_map
[]
=
{
PLAT_ARM_CLUSTER_TO_CCN_ID_MAP
...
...
plat/arm/common/arm_common.c
View file @
83a2285e
...
...
@@ -14,11 +14,10 @@
#include <common/romlib.h>
#include <lib/mmio.h>
#include <lib/xlat_tables/xlat_tables_compat.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include <services/secure_partition.h>
#include <plat_arm.h>
/* Weak definitions may be overridden in specific ARM standard platform */
#pragma weak plat_get_ns_image_entrypoint
#pragma weak plat_arm_get_mmap
...
...
plat/arm/common/arm_common.mk
View file @
83a2285e
...
...
@@ -141,9 +141,6 @@ ifeq (${ARM_CRYPTOCELL_INTEG},1)
endif
endif
PLAT_INCLUDES
+=
-Iinclude
/common/tbbr
\
-Iinclude
/plat/arm/common
ifeq
(${ARCH}, aarch64)
PLAT_INCLUDES
+=
-Iinclude
/plat/arm/common/aarch64
endif
...
...
@@ -257,8 +254,6 @@ ifneq (${TRUSTED_BOARD_BOOT},0)
drivers/auth/img_parser_mod.c
\
drivers/auth/tbbr/tbbr_cot.c
\
PLAT_INCLUDES
+=
-Iinclude
/bl1/tbbr
BL1_SOURCES
+=
${AUTH_SOURCES}
\
bl1/tbbr/tbbr_img_desc.c
\
plat/arm/common/arm_bl1_fwu.c
\
...
...
plat/arm/common/arm_console.c
View file @
83a2285e
...
...
@@ -11,8 +11,7 @@
#include <common/debug.h>
#include <drivers/arm/pl011.h>
#include <drivers/console.h>
#include <plat_arm.h>
#include <plat/arm/common/plat_arm.h>
/*******************************************************************************
* Functions that set up the console
...
...
plat/arm/common/arm_dyn_cfg.c
View file @
83a2285e
...
...
@@ -15,11 +15,10 @@
#if TRUSTED_BOARD_BOOT
#include <drivers/auth/mbedtls/mbedtls_config.h>
#endif
#include <plat/arm/common/arm_dyn_cfg_helpers.h>
#include <plat/arm/common/plat_arm.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 */
static
void
*
tb_fw_cfg_dtb
;
static
size_t
tb_fw_cfg_dtb_size
;
...
...
plat/arm/common/arm_dyn_cfg_helpers.c
View file @
83a2285e
...
...
@@ -10,9 +10,8 @@
#include <common/desc_image_load.h>
#include <common/fdt_wrappers.h>
#include <arm_dyn_cfg_helpers.h>
#include <plat_arm.h>
#include <plat/arm/common/arm_dyn_cfg_helpers.h>
#include <plat/arm/common/plat_arm.h>
#define DTB_PROP_MBEDTLS_HEAP_ADDR "mbedtls_heap_addr"
#define DTB_PROP_MBEDTLS_HEAP_SIZE "mbedtls_heap_size"
...
...
plat/arm/common/arm_err.c
View file @
83a2285e
...
...
@@ -13,10 +13,9 @@
#include <common/debug.h>
#include <drivers/cfi/v2m_flash.h>
#include <drivers/console.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include <plat_arm.h>
#pragma weak plat_arm_error_handler
/*
...
...
plat/arm/common/arm_gicv2.c
View file @
83a2285e
...
...
@@ -7,10 +7,9 @@
#include <platform_def.h>
#include <drivers/arm/gicv2.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include <plat_arm.h>
/******************************************************************************
* The following functions are defined as weak to allow a platform to override
* the way the GICv2 driver is initialised and used.
...
...
plat/arm/common/arm_gicv3.c
View file @
83a2285e
...
...
@@ -9,10 +9,9 @@
#include <common/interrupt_props.h>
#include <drivers/arm/gicv3.h>
#include <lib/utils.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include <plat_arm.h>
/******************************************************************************
* The following functions are defined as weak to allow a platform to override
* the way the GICv3 driver is initialised and used.
...
...
plat/arm/common/arm_image_load.c
View file @
83a2285e
...
...
@@ -7,10 +7,9 @@
#include <assert.h>
#include <common/bl_common.h>
#include <common/desc_image_load.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include <plat_arm.h>
#pragma weak plat_flush_next_bl_params
#pragma weak plat_get_bl_image_load_info
#pragma weak plat_get_next_bl_params
...
...
plat/arm/common/arm_io_storage.c
View file @
83a2285e
...
...
@@ -15,11 +15,10 @@
#include <drivers/io/io_memmap.h>
#include <drivers/io/io_storage.h>
#include <lib/utils.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include <tools_share/firmware_image_package.h>
#include <plat_arm.h>
/* IO devices */
static
const
io_dev_connector_t
*
fip_dev_con
;
static
uintptr_t
fip_dev_handle
;
...
...
plat/arm/common/arm_nor_psci_mem_protect.c
View file @
83a2285e
...
...
@@ -11,8 +11,7 @@
#include <lib/psci/psci.h>
#include <lib/mmio.h>
#include <lib/utils.h>
#include <plat_arm.h>
#include <plat/arm/common/plat_arm.h>
/*
* DRAM1 is used also to load the NS boot loader. For this reason we
...
...
plat/arm/common/arm_pm.c
View file @
83a2285e
...
...
@@ -11,10 +11,9 @@
#include <arch_helpers.h>
#include <lib/psci/psci.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include <plat_arm.h>
/* Allow ARM Standard platforms to override these functions */
#pragma weak plat_arm_program_trusted_mailbox
...
...
Prev
1
2
3
4
5
6
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment