1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright (c) 2016, GlobalLogic 4 * Copyright (c) 2020, Renesas Electronics Corporation 5 */ 6 7 #ifndef PLATFORM_CONFIG_H 8 #define PLATFORM_CONFIG_H 9 10 #include <mm/generic_ram_layout.h> 11 12 /* Make stacks aligned to data cache line length */ 13 #define STACK_ALIGNMENT 64 14 15 #define GIC_BASE 0xF1000000 16 #define GICC_BASE 0xF1020000 17 #define GICD_BASE 0xF1010000 18 19 #define CONSOLE_UART_BASE 0xE6E88000 20 21 #if defined(PLATFORM_FLAVOR_ek874) 22 #define NSEC_DDR_0_BASE 0x47E00000U 23 #define NSEC_DDR_0_SIZE 0x78200000 24 25 #elif defined(PLATFORM_FLAVOR_hihope_rzg2h) 26 27 #define NSEC_DDR_0_BASE 0x47E00000U 28 #define NSEC_DDR_0_SIZE 0x78200000 29 #define NSEC_DDR_1_BASE 0x500000000U 30 #define NSEC_DDR_1_SIZE 0x80000000 31 32 #elif defined(PLATFORM_FLAVOR_hihope_rzg2m) 33 34 #define NSEC_DDR_0_BASE 0x47E00000U 35 #define NSEC_DDR_0_SIZE 0x78200000 36 #define NSEC_DDR_1_BASE 0x600000000U 37 #define NSEC_DDR_1_SIZE 0x80000000 38 39 #elif defined(PLATFORM_FLAVOR_hihope_rzg2n) 40 41 #define NSEC_DDR_0_BASE 0x47E00000U 42 #define NSEC_DDR_0_SIZE 0x78200000 43 #define NSEC_DDR_1_BASE 0x480000000U 44 #define NSEC_DDR_1_SIZE 0x80000000 45 46 #else 47 #error "Unknown platform flavor" 48 #endif 49 50 #define TEE_SHMEM_START (TZDRAM_BASE + TZDRAM_SIZE) 51 #define TEE_SHMEM_SIZE 0x100000 52 53 #endif /*PLATFORM_CONFIG_H*/ 54