Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
6 years ago
by
Antonio Niño Díaz
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1784 from antonio-nino-diaz-arm/an/includes-arm
plat/arm: Cleanup of includes and drivers
parents
bc153881
560293bb
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
118
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
plat/arm/board/fvp/fvp_topology.c
+3
-4
plat/arm/board/fvp/fvp_topology.c
plat/arm/board/fvp/include/plat.ld.S
+2
-2
plat/arm/board/fvp/include/plat.ld.S
plat/arm/board/fvp/include/platform_def.h
+3
-15
plat/arm/board/fvp/include/platform_def.h
plat/arm/board/fvp/platform.mk
+19
-3
plat/arm/board/fvp/platform.mk
plat/arm/board/fvp/sp_min/fvp_sp_min_setup.c
+2
-1
plat/arm/board/fvp/sp_min/fvp_sp_min_setup.c
plat/arm/board/fvp/sp_min/sp_min-fvp.mk
+2
-2
plat/arm/board/fvp/sp_min/sp_min-fvp.mk
plat/arm/board/fvp/tsp/fvp_tsp_setup.c
+2
-1
plat/arm/board/fvp/tsp/fvp_tsp_setup.c
plat/arm/board/fvp/tsp/tsp-fvp.mk
+2
-2
plat/arm/board/fvp/tsp/tsp-fvp.mk
plat/arm/board/juno/include/platform_def.h
+6
-18
plat/arm/board/juno/include/platform_def.h
plat/arm/board/juno/juno_bl1_setup.c
+2
-3
plat/arm/board/juno/juno_bl1_setup.c
plat/arm/board/juno/juno_bl2_setup.c
+1
-2
plat/arm/board/juno/juno_bl2_setup.c
plat/arm/board/juno/juno_common.c
+1
-1
plat/arm/board/juno/juno_common.c
plat/arm/board/juno/juno_pm.c
+2
-2
plat/arm/board/juno/juno_pm.c
plat/arm/board/juno/juno_security.c
+2
-2
plat/arm/board/juno/juno_security.c
plat/arm/board/juno/juno_topology.c
+4
-5
plat/arm/board/juno/juno_topology.c
plat/arm/board/juno/platform.mk
+14
-5
plat/arm/board/juno/platform.mk
plat/arm/board/n1sdp/include/platform_def.h
+3
-3
plat/arm/board/n1sdp/include/platform_def.h
plat/arm/board/n1sdp/n1sdp_bl31_setup.c
+3
-3
plat/arm/board/n1sdp/n1sdp_bl31_setup.c
plat/arm/board/n1sdp/n1sdp_plat.c
+1
-2
plat/arm/board/n1sdp/n1sdp_plat.c
plat/arm/board/n1sdp/n1sdp_topology.c
+1
-1
plat/arm/board/n1sdp/n1sdp_topology.c
with
75 additions
and
77 deletions
+75
-77
plat/arm/board/fvp/fvp_topology.c
View file @
83a2285e
...
...
@@ -7,13 +7,12 @@
#include <platform_def.h>
#include <arch.h>
#include <drivers/arm/fvp/fvp_pwrc.h>
#include <lib/cassert.h>
#include <plat/arm/common/arm_config.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include <plat_arm.h>
#include <arm_config.h>
#include "drivers/pwrc/fvp_pwrc.h"
/* The FVP power domain tree descriptor */
static
unsigned
char
fvp_power_domain_tree_desc
[
FVP_CLUSTER_COUNT
+
2
];
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/fvp/include/plat.ld.S
View file @
83a2285e
...
...
@@ -6,7 +6,7 @@
#ifndef PLAT_LD_S
#define PLAT_LD_S
#include <arm_tzc_dram.ld.S>
#include <arm_reclaim_init.ld.S>
#include <
plat/arm/common/
arm_tzc_dram.ld.S>
#include <
plat/arm/common/
arm_reclaim_init.ld.S>
#endif /* PLAT_LD_S */
This diff is collapsed.
Click to expand it.
plat/arm/board/fvp/include/platform_def.h
View file @
83a2285e
...
...
@@ -7,25 +7,13 @@
#ifndef PLATFORM_DEF_H
#define PLATFORM_DEF_H
/* Enable the dynamic translation tables library. */
#ifdef AARCH32
# if defined(IMAGE_BL32) && RESET_TO_SP_MIN
# define PLAT_XLAT_TABLES_DYNAMIC 1
# endif
#else
# if defined(IMAGE_BL31) && (RESET_TO_BL31 || (ENABLE_SPM && !SPM_MM))
# define PLAT_XLAT_TABLES_DYNAMIC 1
# endif
#endif
/* AARCH32 */
#include <drivers/arm/tzc400.h>
#include <lib/utils_def.h>
#include <plat/arm/board/common/v2m_def.h>
#include <plat/arm/common/arm_def.h>
#include <plat/arm/common/arm_spm_def.h>
#include <plat/common/common_def.h>
#include <arm_def.h>
#include <arm_spm_def.h>
#include <v2m_def.h>
#include "../fvp_def.h"
/* Required platform porting definitions */
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/fvp/platform.mk
View file @
83a2285e
#
# Copyright (c) 2013-201
8
, ARM Limited and Contributors. All rights reserved.
# Copyright (c) 2013-201
9
, ARM Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
...
...
@@ -146,14 +146,14 @@ endif
BL2U_SOURCES
+=
plat/arm/board/fvp/fvp_bl2u_setup.c
\
${FVP_SECURITY_SOURCES}
BL31_SOURCES
+=
drivers/arm/smmu/smmu_v3.c
\
BL31_SOURCES
+=
drivers/arm/fvp/fvp_pwrc.c
\
drivers/arm/smmu/smmu_v3.c
\
drivers/cfi/v2m/v2m_flash.c
\
lib/utils/mem_region.c
\
plat/arm/board/fvp/fvp_bl31_setup.c
\
plat/arm/board/fvp/fvp_pm.c
\
plat/arm/board/fvp/fvp_topology.c
\
plat/arm/board/fvp/aarch64/fvp_helpers.S
\
plat/arm/board/fvp/drivers/pwrc/fvp_pwrc.c
\
plat/arm/common/arm_nor_psci_mem_protect.c
\
${FVP_CPU_LIBS}
\
${FVP_GIC_SOURCES}
\
...
...
@@ -231,6 +231,22 @@ ifeq (${ARCH},aarch32)
NEED_BL32
:=
yes
endif
# Enable the dynamic translation tables library.
ifeq
(${ARCH},aarch32)
ifeq
(${RESET_TO_SP_MIN},1)
BL32_CFLAGS
+=
-DPLAT_XLAT_TABLES_DYNAMIC
=
1
endif
else
ifeq
(${RESET_TO_BL31},1)
BL31_CFLAGS
+=
-DPLAT_XLAT_TABLES_DYNAMIC
=
1
endif
ifeq
(${ENABLE_SPM},1)
ifeq
(${SPM_MM},0)
BL31_CFLAGS
+=
-DPLAT_XLAT_TABLES_DYNAMIC
=
1
endif
endif
endif
# Add support for platform supplied linker script for BL31 build
$(eval
$(call
add_define,PLAT_EXTRA_LD_SCRIPT))
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/fvp/sp_min/fvp_sp_min_setup.c
View file @
83a2285e
...
...
@@ -4,7 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <plat_arm.h>
#include <plat/arm/common/plat_arm.h>
#include "../fvp_private.h"
void
plat_arm_sp_min_early_platform_setup
(
u_register_t
arg0
,
u_register_t
arg1
,
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/fvp/sp_min/sp_min-fvp.mk
View file @
83a2285e
...
...
@@ -5,10 +5,10 @@
#
# SP_MIN source files specific to FVP platform
BL32_SOURCES
+=
drivers/cfi/v2m/v2m_flash.c
\
BL32_SOURCES
+=
drivers/arm/fvp/fvp_pwrc.c
\
drivers/cfi/v2m/v2m_flash.c
\
lib/utils/mem_region.c
\
plat/arm/board/fvp/aarch32/fvp_helpers.S
\
plat/arm/board/fvp/drivers/pwrc/fvp_pwrc.c
\
plat/arm/board/fvp/fvp_pm.c
\
plat/arm/board/fvp/fvp_topology.c
\
plat/arm/board/fvp/sp_min/fvp_sp_min_setup.c
\
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/fvp/tsp/fvp_tsp_setup.c
View file @
83a2285e
...
...
@@ -4,7 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <plat_arm.h>
#include <plat/arm/common/plat_arm.h>
#include "../fvp_private.h"
void
tsp_early_platform_setup
(
void
)
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/fvp/tsp/tsp-fvp.mk
View file @
83a2285e
...
...
@@ -5,8 +5,8 @@
#
# TSP source files specific to FVP platform
BL32_SOURCES
+=
plat/arm/bo
ar
d
/fvp/
aarch64/fvp_helpers.S
\
plat/arm/board/fvp/
drivers/pwrc/fvp_pwrc.c
\
BL32_SOURCES
+=
drivers/
ar
m
/fvp/
fvp_pwrc.c
\
plat/arm/board/fvp/
aarch64/fvp_helpers.S
\
plat/arm/board/fvp/fvp_topology.c
\
plat/arm/board/fvp/tsp/fvp_tsp_setup.c
\
${FVP_GIC_SOURCES}
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/juno/include/platform_def.h
View file @
83a2285e
/*
* Copyright (c) 2014-201
8
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2014-201
9
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -7,29 +7,17 @@
#ifndef PLATFORM_DEF_H
#define PLATFORM_DEF_H
/* Enable the dynamic translation tables library. */
#ifdef AARCH32
# if defined(IMAGE_BL32) && RESET_TO_SP_MIN
# define PLAT_XLAT_TABLES_DYNAMIC 1
# endif
#else
# if defined(IMAGE_BL31) && RESET_TO_BL31
# define PLAT_XLAT_TABLES_DYNAMIC 1
# endif
#endif
/* AARCH32 */
#include <drivers/arm/tzc400.h>
#if TRUSTED_BOARD_BOOT
#include <drivers/auth/mbedtls/mbedtls_config.h>
#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 <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"
/* Required platform porting definitions */
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/juno/juno_bl1_setup.c
View file @
83a2285e
...
...
@@ -9,13 +9,12 @@
#include <common/bl_common.h>
#include <common/debug.h>
#include <common/tbbr/tbbr_img_def.h>
#include <drivers/arm/css/sds.h>
#include <drivers/arm/sp805.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include <platform_def.h>
#include <plat_arm.h>
#include <sds.h>
void
juno_reset_to_aarch32_state
(
void
);
static
int
is_watchdog_reset
(
void
)
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/juno/juno_bl2_setup.c
View file @
83a2285e
...
...
@@ -8,8 +8,7 @@
#include <common/bl_common.h>
#include <common/desc_image_load.h>
#include <plat_arm.h>
#include <plat/arm/common/plat_arm.h>
#if JUNO_AARCH32_EL3_RUNTIME
/*******************************************************************************
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/juno/juno_common.c
View file @
83a2285e
...
...
@@ -5,7 +5,7 @@
*/
#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.
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/juno/juno_pm.c
View file @
83a2285e
...
...
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <
plat_arm
.h>
#include <
scmi
.h>
#include <
drivers/arm/css/scmi
.h>
#include <
plat/arm/common/plat_arm
.h>
const
plat_psci_ops_t
*
plat_arm_psci_override_pm_ops
(
plat_psci_ops_t
*
ops
)
{
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/juno/juno_security.c
View file @
83a2285e
...
...
@@ -8,9 +8,9 @@
#include <drivers/arm/nic_400.h>
#include <lib/mmio.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"
#ifdef JUNO_TZMP1
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/juno/juno_topology.c
View file @
83a2285e
...
...
@@ -4,14 +4,13 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <drivers/arm/css/css_mhu_doorbell.h>
#include <drivers/arm/css/scmi.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/arm/css/common/css_pm.h>
#include <plat/common/platform.h>
#include <platform_def.h>
#include <css_pm.h>
#include <plat_arm.h>
#include "../../css/drivers/scmi/scmi.h"
#include "../../css/drivers/mhu/css_mhu_doorbell.h"
#if CSS_USE_SCMI_SDS_DRIVER
static
scmi_channel_plat_info_t
juno_scmi_plat_info
=
{
.
scmi_mbx_mem
=
CSS_SCMI_PAYLOAD_BASE
,
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/juno/platform.mk
View file @
83a2285e
#
# Copyright (c) 2013-201
8
, ARM Limited and Contributors. All rights reserved.
# Copyright (c) 2013-201
9
, ARM Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
...
...
@@ -26,9 +26,7 @@ endif
# SCP during power management operations and for SCP RAM Firmware transfer.
CSS_USE_SCMI_SDS_DRIVER
:=
1
PLAT_INCLUDES
:=
-Iplat
/arm/board/juno/include
\
-Iplat
/arm/css/drivers/scmi
\
-Iplat
/arm/css/drivers/sds
PLAT_INCLUDES
:=
-Iplat
/arm/board/juno/include
PLAT_BL_COMMON_SOURCES
:=
plat/arm/board/juno/
${ARCH}
/juno_helpers.S
\
plat/arm/board/juno/juno_common.c
...
...
@@ -88,7 +86,7 @@ BL31_SOURCES += drivers/cfi/v2m/v2m_flash.c \
${JUNO_SECURITY_SOURCES}
ifeq
(${CSS_USE_SCMI_SDS_DRIVER},1)
BL1_SOURCES
+=
plat/arm/css/driver
s/sds/sds.c
BL1_SOURCES
+=
drivers/arm/cs
s/sds/sds.c
endif
endif
...
...
@@ -134,6 +132,17 @@ SKIP_A57_L1_FLUSH_PWR_DWN := 1
# Do not enable SVE
ENABLE_SVE_FOR_NS
:=
0
# Enable the dynamic translation tables library.
ifeq
(${ARCH},aarch32)
ifeq
(${RESET_TO_SP_MIN},1)
BL32_CFLAGS
+=
-DPLAT_XLAT_TABLES_DYNAMIC
=
1
endif
else
ifeq
(${RESET_TO_BL31},1)
BL31_CFLAGS
+=
-DPLAT_XLAT_TABLES_DYNAMIC
=
1
endif
endif
include
plat/arm/board/common/board_common.mk
include
plat/arm/common/arm_common.mk
include
plat/arm/soc/common/soc_css.mk
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/n1sdp/include/platform_def.h
View file @
83a2285e
...
...
@@ -7,9 +7,9 @@
#ifndef PLATFORM_DEF_H
#define PLATFORM_DEF_H
#include <
ar
m_def.h>
#include <
css
_def.h>
#include <
v2m
_def.h>
#include <
plat/arm/board/common/v2
m_def.h>
#include <
plat/arm/common/arm
_def.h>
#include <
plat/arm/css/common/css
_def.h>
/* UART related constants */
#define PLAT_ARM_BOOT_UART_BASE 0x2A400000
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/n1sdp/n1sdp_bl31_setup.c
View file @
83a2285e
...
...
@@ -6,9 +6,9 @@
#include <platform_def.h>
#include
"../../css/drivers/scmi/scmi
.h
"
#include
"../../css/
drivers/
mhu
/css
_mhu_doorbell
.h
"
#include <plat_arm.h>
#include
<drivers/arm/css/css_mhu_doorbell
.h
>
#include
<
drivers/
arm
/css
/scmi
.h
>
#include <plat
/arm/common/plat
_arm.h>
static
scmi_channel_plat_info_t
n1sdp_scmi_plat_info
=
{
.
scmi_mbx_mem
=
N1SDP_SCMI_PAYLOAD_BASE
,
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/n1sdp/n1sdp_plat.c
View file @
83a2285e
...
...
@@ -8,10 +8,9 @@
#include <common/bl_common.h>
#include <common/debug.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h>
#include <plat_arm.h>
/*
* Table of regions to map using the MMU.
* Replace or extend the below regions as required
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/n1sdp/n1sdp_topology.c
View file @
83a2285e
...
...
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <plat_arm.h>
#include <plat
/arm/common/plat
_arm.h>
/* Topology */
typedef
struct
n1sdp_topology
{
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help