mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 02:54:24 +00:00
Merge changes from topic "tc0_architecture_change" into integration
* changes: plat: tc0: enable TZC fdts: tc0: update MHUv2 interrupt number
This commit is contained in:
commit
6b745042ea
4 changed files with 32 additions and 4 deletions
|
@ -134,7 +134,7 @@
|
|||
clocks = <&soc_refclk100mhz>;
|
||||
clock-names = "apb_pclk";
|
||||
#mbox-cells = <1>;
|
||||
interrupts = <0 316 4>;
|
||||
interrupts = <0 317 4>;
|
||||
interrupt-names = "mhu_rx";
|
||||
mhu-protocol = "doorbell";
|
||||
};
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2020, Arm Limited. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -191,4 +191,19 @@
|
|||
*/
|
||||
#define PLAT_CSS_MAX_SCP_BL2U_SIZE 0x20000
|
||||
|
||||
/* TZC Related Constants */
|
||||
#define PLAT_ARM_TZC_BASE UL(0x25000000)
|
||||
#define PLAT_ARM_TZC_FILTERS TZC_400_REGION_ATTR_FILTER_BIT(0)
|
||||
|
||||
#define TZC400_OFFSET UL(0x1000000)
|
||||
#define TZC400_COUNT 4
|
||||
|
||||
#define TZC400_BASE(n) (PLAT_ARM_TZC_BASE + \
|
||||
(n * TZC400_OFFSET))
|
||||
|
||||
#define TZC_NSAID_DEFAULT U(0)
|
||||
|
||||
#define PLAT_ARM_TZC_NS_DEV_ACCESS \
|
||||
(TZC_REGION_ACCESS_RDWR(TZC_NSAID_DEFAULT))
|
||||
|
||||
#endif /* PLATFORM_DEF_H */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
|
||||
# Copyright (c) 2020, Arm Limited. All rights reserved.
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
|
@ -61,6 +61,8 @@ BL2_SOURCES += ${TC0_BASE}/tc0_security.c \
|
|||
${TC0_BASE}/tc0_err.c \
|
||||
${TC0_BASE}/tc0_trusted_boot.c \
|
||||
lib/utils/mem_region.c \
|
||||
drivers/arm/tzc/tzc400.c \
|
||||
plat/arm/common/arm_tzc400.c \
|
||||
plat/arm/common/arm_nor_psci_mem_protect.c
|
||||
|
||||
BL31_SOURCES += ${INTERCONNECT_SOURCES} \
|
||||
|
|
|
@ -1,12 +1,23 @@
|
|||
/*
|
||||
* Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2020, Arm Limited. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <plat/arm/common/plat_arm.h>
|
||||
#include <platform_def.h>
|
||||
|
||||
static const arm_tzc_regions_info_t tzc_regions[] = {
|
||||
ARM_TZC_REGIONS_DEF,
|
||||
{}
|
||||
};
|
||||
|
||||
/* Initialize the secure environment */
|
||||
void plat_arm_security_setup(void)
|
||||
{
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0U; i < TZC400_COUNT; i++) {
|
||||
arm_tzc400_setup(TZC400_BASE(i), tzc_regions);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue