| Upstream-Status: Pending [Not submitted to upstream yet] |
| Signed-off-by: Emekcan Aras <emekcan.aras@arm.com> |
| |
| From 1a9aeedda58228893add545e49d2d6cd4c316b4f Mon Sep 17 00:00:00 2001 |
| From: Emekcan <emekcan.aras@arm.com> |
| Date: Tue, 13 Dec 2022 13:45:06 +0000 |
| Subject: [PATCH] plat-n1sdp: add external device tree base and size |
| |
| Adds external device tree address and size. It also |
| register this physical memory so optee can read the device tree. |
| --- |
| core/arch/arm/plat-n1sdp/main.c | 1 + |
| core/arch/arm/plat-n1sdp/platform_config.h | 3 +++ |
| 2 files changed, 4 insertions(+) |
| |
| diff --git a/core/arch/arm/plat-n1sdp/main.c b/core/arch/arm/plat-n1sdp/main.c |
| index bb951ce6b..ab76f60c6 100644 |
| --- a/core/arch/arm/plat-n1sdp/main.c |
| +++ b/core/arch/arm/plat-n1sdp/main.c |
| @@ -31,6 +31,7 @@ static struct gic_data gic_data __nex_bss; |
| static struct pl011_data console_data __nex_bss; |
| |
| register_phys_mem_pgdir(MEM_AREA_IO_SEC, CONSOLE_UART_BASE, PL011_REG_SIZE); |
| +register_phys_mem_pgdir(MEM_AREA_EXT_DT, EXT_DT_BASE, EXT_DT_SIZE); |
| |
| register_ddr(DRAM0_BASE, DRAM0_SIZE); |
| register_ddr(DRAM1_BASE, DRAM1_SIZE); |
| diff --git a/core/arch/arm/plat-n1sdp/platform_config.h b/core/arch/arm/plat-n1sdp/platform_config.h |
| index bf0a3c834..8741a2503 100644 |
| --- a/core/arch/arm/plat-n1sdp/platform_config.h |
| +++ b/core/arch/arm/plat-n1sdp/platform_config.h |
| @@ -42,6 +42,9 @@ |
| #define GICC_BASE 0x2C000000 |
| #define GICR_BASE 0x300C0000 |
| |
| +#define EXT_DT_BASE 0x04001600 |
| +#define EXT_DT_SIZE 0x200 |
| + |
| #ifndef UART_BAUDRATE |
| #define UART_BAUDRATE 115200 |
| #endif |
| -- |
| 2.17.1 |
| |