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
ed43437d
Unverified
Commit
ed43437d
authored
Feb 27, 2019
by
Antonio Niño Díaz
Committed by
GitHub
Feb 27, 2019
Browse files
Merge pull request #1838 from chandnich/rename
Apply official names to SGI-Clark Platforms
parents
39718ea5
240f03b7
Changes
13
Hide whitespace changes
Inline
Side-by-side
plat/arm/board/
sgiclarkh/fdts/sgiclarkh
_nt_fw_config.dts
→
plat/arm/board/
rde1edge/fdts/rde1edge
_nt_fw_config.dts
View file @
ed43437d
/*
* Copyright (c) 2018, Arm Limited. All rights reserved.
* Copyright (c) 2018
-2019
, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -7,7 +7,7 @@
/dts-v1/;
/ {
/* compatible string */
compatible = "arm,
sgi-clark
";
compatible = "arm,
rd-e1edge
";
/*
* Place holder for system-id node with default values. The
...
...
plat/arm/board/
sgiclarkh/fdts/sgiclarkh
_tb_fw_config.dts
→
plat/arm/board/
rde1edge/fdts/rde1edge
_tb_fw_config.dts
View file @
ed43437d
File moved
plat/arm/board/
sgiclarkh
/include/platform_def.h
→
plat/arm/board/
rde1edge
/include/platform_def.h
View file @
ed43437d
/*
* Copyright (c) 2018, Arm Limited. All rights reserved.
* Copyright (c) 2018
-2019
, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -18,8 +18,8 @@
#define PLAT_CSS_MHU_BASE UL(0x45400000)
/* Base address of DMC-620 instances */
#define
SGICLARKH
_DMC620_BASE0 UL(0x4e000000)
#define
SGICLARKH
_DMC620_BASE1 UL(0x4e100000)
#define
RDE1EDGE
_DMC620_BASE0 UL(0x4e000000)
#define
RDE1EDGE
_DMC620_BASE1 UL(0x4e100000)
#define PLAT_MAX_PWR_LVL ARM_PWR_LVL2
...
...
plat/arm/board/
sgiclarkh
/platform.mk
→
plat/arm/board/
rde1edge
/platform.mk
View file @
ed43437d
...
...
@@ -6,34 +6,34 @@
include
plat/arm/css/sgi/sgi-common.mk
SGICLARKH
_BASE
=
plat/arm/board/
sgiclarkh
RDE1EDGE
_BASE
=
plat/arm/board/
rde1edge
PLAT_INCLUDES
+=
-I
${
SGICLARKH
_BASE}
/include/
PLAT_INCLUDES
+=
-I
${
RDE1EDGE
_BASE}
/include/
SGI_CPU_SOURCES
:=
lib/cpus/aarch64/neoverse_e1.S
BL1_SOURCES
+=
${SGI_CPU_SOURCES}
BL2_SOURCES
+=
${
SGICLARKH_BASE}
/sgiclarkh
_plat.c
\
${
SGICLARKH_BASE}
/sgiclarkh
_security.c
\
BL2_SOURCES
+=
${
RDE1EDGE_BASE}
/rde1edge
_plat.c
\
${
RDE1EDGE_BASE}
/rde1edge
_security.c
\
drivers/arm/tzc/tzc_dmc620.c
\
lib/utils/mem_region.c
\
plat/arm/common/arm_nor_psci_mem_protect.c
BL31_SOURCES
+=
${SGI_CPU_SOURCES}
\
${
SGICLARKH_BASE}
/sgiclarkh
_plat.c
\
${
RDE1EDGE_BASE}
/rde1edge
_plat.c
\
drivers/cfi/v2m/v2m_flash.c
\
lib/utils/mem_region.c
\
plat/arm/common/arm_nor_psci_mem_protect.c
# Add the FDT_SOURCES and options for Dynamic Config
FDT_SOURCES
+=
${
SGICLARKH
_BASE}
/fdts/
${PLAT}
_tb_fw_config.dts
FDT_SOURCES
+=
${
RDE1EDGE
_BASE}
/fdts/
${PLAT}
_tb_fw_config.dts
TB_FW_CONFIG
:=
${BUILD_PLAT}
/fdts/
${PLAT}
_tb_fw_config.dtb
# Add the TB_FW_CONFIG to FIP and specify the same to certtool
$(eval
$(call
TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config))
FDT_SOURCES
+=
${
SGICLARKH
_BASE}
/fdts/
${PLAT}
_nt_fw_config.dts
FDT_SOURCES
+=
${
RDE1EDGE
_BASE}
/fdts/
${PLAT}
_nt_fw_config.dts
NT_FW_CONFIG
:=
${BUILD_PLAT}
/fdts/
${PLAT}
_nt_fw_config.dtb
# Add the NT_FW_CONFIG to FIP and specify the same to certtool
...
...
plat/arm/board/
sgiclarkh/sgiclarkh
_plat.c
→
plat/arm/board/
rde1edge/rde1edge
_plat.c
View file @
ed43437d
File moved
plat/arm/board/
sgiclarkh/sgiclarkh
_security.c
→
plat/arm/board/
rde1edge/rde1edge
_security.c
View file @
ed43437d
/*
* Copyright (c) 201
8
, Arm Limited. All rights reserved.
* Copyright (c) 201
9
, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -9,17 +9,17 @@
#include <common/debug.h>
#include <drivers/arm/tzc_dmc620.h>
uintptr_t
sgiclarkh
_dmc_base
[]
=
{
SGICLARKH
_DMC620_BASE0
,
SGICLARKH
_DMC620_BASE1
uintptr_t
rde1edge
_dmc_base
[]
=
{
RDE1EDGE
_DMC620_BASE0
,
RDE1EDGE
_DMC620_BASE1
};
static
const
tzc_dmc620_driver_data_t
sgiclarkh
_plat_driver_data
=
{
.
dmc_base
=
sgiclarkh
_dmc_base
,
.
dmc_count
=
ARRAY_SIZE
(
sgiclarkh
_dmc_base
)
static
const
tzc_dmc620_driver_data_t
rde1edge
_plat_driver_data
=
{
.
dmc_base
=
rde1edge
_dmc_base
,
.
dmc_count
=
ARRAY_SIZE
(
rde1edge
_dmc_base
)
};
static
const
tzc_dmc620_acc_addr_data_t
sgiclarkh
_acc_addr_data
[]
=
{
static
const
tzc_dmc620_acc_addr_data_t
rde1edge
_acc_addr_data
[]
=
{
{
.
region_base
=
ARM_AP_TZC_DRAM1_BASE
,
.
region_top
=
ARM_AP_TZC_DRAM1_BASE
+
ARM_TZC_DRAM1_SIZE
-
1
,
...
...
@@ -27,14 +27,14 @@ static const tzc_dmc620_acc_addr_data_t sgiclarkh_acc_addr_data[] = {
}
};
static
const
tzc_dmc620_config_data_t
sgiclarkh
_plat_config_data
=
{
.
plat_drv_data
=
&
sgiclarkh
_plat_driver_data
,
.
plat_acc_addr_data
=
sgiclarkh
_acc_addr_data
,
.
acc_addr_count
=
ARRAY_SIZE
(
sgiclarkh
_acc_addr_data
)
static
const
tzc_dmc620_config_data_t
rde1edge
_plat_config_data
=
{
.
plat_drv_data
=
&
rde1edge
_plat_driver_data
,
.
plat_acc_addr_data
=
rde1edge
_acc_addr_data
,
.
acc_addr_count
=
ARRAY_SIZE
(
rde1edge
_acc_addr_data
)
};
/* Initialize the secure environment */
void
plat_arm_security_setup
(
void
)
{
arm_tzc_dmc620_setup
(
&
sgiclarkh
_plat_config_data
);
arm_tzc_dmc620_setup
(
&
rde1edge
_plat_config_data
);
}
plat/arm/board/
sgiclarka/fdts/sgiclarka
_nt_fw_config.dts
→
plat/arm/board/
rdn1edge/fdts/rdn1edge
_nt_fw_config.dts
View file @
ed43437d
/*
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2018
-2019
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -7,7 +7,7 @@
/dts-v1/;
/ {
/* compatible string */
compatible = "arm,
sgi-clark
";
compatible = "arm,
rd-n1edge
";
/*
* Place holder for system-id node with default values. The
...
...
plat/arm/board/
sgiclarka/fdts/sgiclarka
_tb_fw_config.dts
→
plat/arm/board/
rdn1edge/fdts/rdn1edge
_tb_fw_config.dts
View file @
ed43437d
File moved
plat/arm/board/
sgiclarka
/include/platform_def.h
→
plat/arm/board/
rdn1edge
/include/platform_def.h
View file @
ed43437d
/*
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2018
-2019
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -18,8 +18,8 @@
#define PLAT_CSS_MHU_BASE UL(0x45400000)
/* Base address of DMC-620 instances */
#define
SGICLARKA
_DMC620_BASE0 UL(0x4e000000)
#define
SGICLARKA
_DMC620_BASE1 UL(0x4e100000)
#define
RDN1EDGE
_DMC620_BASE0 UL(0x4e000000)
#define
RDN1EDGE
_DMC620_BASE1 UL(0x4e100000)
/* System power domain level */
#define CSS_SYSTEM_PWR_DMN_LVL ARM_PWR_LVL2
...
...
plat/arm/board/
sgiclarka
/platform.mk
→
plat/arm/board/
rdn1edge
/platform.mk
View file @
ed43437d
...
...
@@ -6,34 +6,34 @@
include
plat/arm/css/sgi/sgi-common.mk
SGICLARKA
_BASE
=
plat/arm/board/
sgiclarka
RDN1EDGE
_BASE
=
plat/arm/board/
rdn1edge
PLAT_INCLUDES
+=
-I
${
SGICLARKA
_BASE}
/include/
PLAT_INCLUDES
+=
-I
${
RDN1EDGE
_BASE}
/include/
SGI_CPU_SOURCES
:=
lib/cpus/aarch64/neoverse_n1.S
BL1_SOURCES
+=
${SGI_CPU_SOURCES}
BL2_SOURCES
+=
${
SGICLARKA_BASE}
/sgiclarka
_plat.c
\
${
SGICLARKA_BASE}
/sgiclarka
_security.c
\
BL2_SOURCES
+=
${
RDN1EDGE_BASE}
/rdn1edge
_plat.c
\
${
RDN1EDGE_BASE}
/rdn1edge
_security.c
\
drivers/arm/tzc/tzc_dmc620.c
\
lib/utils/mem_region.c
\
plat/arm/common/arm_nor_psci_mem_protect.c
BL31_SOURCES
+=
${SGI_CPU_SOURCES}
\
${
SGICLARKA_BASE}
/sgiclarka
_plat.c
\
${
RDN1EDGE_BASE}
/rdn1edge
_plat.c
\
drivers/cfi/v2m/v2m_flash.c
\
lib/utils/mem_region.c
\
plat/arm/common/arm_nor_psci_mem_protect.c
# Add the FDT_SOURCES and options for Dynamic Config
FDT_SOURCES
+=
${
SGICLARKA
_BASE}
/fdts/
${PLAT}
_tb_fw_config.dts
FDT_SOURCES
+=
${
RDN1EDGE
_BASE}
/fdts/
${PLAT}
_tb_fw_config.dts
TB_FW_CONFIG
:=
${BUILD_PLAT}
/fdts/
${PLAT}
_tb_fw_config.dtb
# Add the TB_FW_CONFIG to FIP and specify the same to certtool
$(eval
$(call
TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config))
FDT_SOURCES
+=
${
SGICLARKA
_BASE}
/fdts/
${PLAT}
_nt_fw_config.dts
FDT_SOURCES
+=
${
RDN1EDGE
_BASE}
/fdts/
${PLAT}
_nt_fw_config.dts
NT_FW_CONFIG
:=
${BUILD_PLAT}
/fdts/
${PLAT}
_nt_fw_config.dtb
# Add the NT_FW_CONFIG to FIP and specify the same to certtool
...
...
plat/arm/board/
sgiclarka/sgiclarka
_plat.c
→
plat/arm/board/
rdn1edge/rdn1edge
_plat.c
View file @
ed43437d
File moved
plat/arm/board/
sgiclarka/sgiclarka
_security.c
→
plat/arm/board/
rdn1edge/rdn1edge
_security.c
View file @
ed43437d
/*
* Copyright (c) 201
8
, ARM Limited
and Contributors
. All rights reserved.
* Copyright (c) 201
9
, ARM Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -9,17 +9,17 @@
#include <common/debug.h>
#include <drivers/arm/tzc_dmc620.h>
uintptr_t
sgiclarka
_dmc_base
[]
=
{
SGICLARKA
_DMC620_BASE0
,
SGICLARKA
_DMC620_BASE1
uintptr_t
rdn1edge
_dmc_base
[]
=
{
RDN1EDGE
_DMC620_BASE0
,
RDN1EDGE
_DMC620_BASE1
};
static
const
tzc_dmc620_driver_data_t
sgiclarka
_plat_driver_data
=
{
.
dmc_base
=
sgiclarka
_dmc_base
,
.
dmc_count
=
ARRAY_SIZE
(
sgiclarka
_dmc_base
)
static
const
tzc_dmc620_driver_data_t
rdn1edge
_plat_driver_data
=
{
.
dmc_base
=
rdn1edge
_dmc_base
,
.
dmc_count
=
ARRAY_SIZE
(
rdn1edge
_dmc_base
)
};
static
const
tzc_dmc620_acc_addr_data_t
sgiclarka
_acc_addr_data
[]
=
{
static
const
tzc_dmc620_acc_addr_data_t
rdn1edge
_acc_addr_data
[]
=
{
{
.
region_base
=
ARM_AP_TZC_DRAM1_BASE
,
.
region_top
=
ARM_AP_TZC_DRAM1_BASE
+
ARM_TZC_DRAM1_SIZE
-
1
,
...
...
@@ -27,14 +27,14 @@ static const tzc_dmc620_acc_addr_data_t sgiclarka_acc_addr_data[] = {
}
};
static
const
tzc_dmc620_config_data_t
sgiclarka
_plat_config_data
=
{
.
plat_drv_data
=
&
sgiclarka
_plat_driver_data
,
.
plat_acc_addr_data
=
sgiclarka
_acc_addr_data
,
.
acc_addr_count
=
ARRAY_SIZE
(
sgiclarka
_acc_addr_data
)
static
const
tzc_dmc620_config_data_t
rdn1edge
_plat_config_data
=
{
.
plat_drv_data
=
&
rdn1edge
_plat_driver_data
,
.
plat_acc_addr_data
=
rdn1edge
_acc_addr_data
,
.
acc_addr_count
=
ARRAY_SIZE
(
rdn1edge
_acc_addr_data
)
};
/* Initialize the secure environment */
void
plat_arm_security_setup
(
void
)
{
arm_tzc_dmc620_setup
(
&
sgiclarka
_plat_config_data
);
arm_tzc_dmc620_setup
(
&
rdn1edge
_plat_config_data
);
}
readme.rst
View file @
ed43437d
...
...
@@ -194,7 +194,7 @@ This release also contains the following platform support:
- Allwinner sun50i_64 and sun50i_h6
- Amlogic Meson S905 (GXBB)
- Arm SGI-575,
SGI Clark.A, SGI Clark.H
and SGM-775
- Arm SGI-575,
RDN1Edge, RDE1Edge
and SGM-775
- Arm Neoverse N1 System Development Platform
- HiKey, HiKey960 and Poplar boards
- Marvell Armada 3700 and 8K
...
...
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