diff options
author | Andrew F. Davis <afd@ti.com> | 2017-02-21 07:04:19 -0600 |
---|---|---|
committer | Andrew F. Davis <afd@ti.com> | 2017-04-19 09:11:15 -0500 |
commit | 1c0b8da6a8a69b59a71438f52612c509073d08fe (patch) | |
tree | 1bd7d03a986bae579d03caafa351f396ad1173c6 /core/arch/arm/plat-ti | |
parent | d7d52b01b808616dc331923829bb8909629a2a3f (diff) |
plat-ti: Add AM43xx platform flavor
Signed-off-by: Andrew F. Davis <afd@ti.com>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
Diffstat (limited to 'core/arch/arm/plat-ti')
-rw-r--r-- | core/arch/arm/plat-ti/conf.mk | 12 | ||||
-rw-r--r-- | core/arch/arm/plat-ti/platform_config.h | 36 |
2 files changed, 45 insertions, 3 deletions
diff --git a/core/arch/arm/plat-ti/conf.mk b/core/arch/arm/plat-ti/conf.mk index 231a0b1e..df622283 100644 --- a/core/arch/arm/plat-ti/conf.mk +++ b/core/arch/arm/plat-ti/conf.mk @@ -4,20 +4,26 @@ CFG_WITH_STACK_CANARIES ?= y CFG_WITH_STATS ?= y CFG_WITH_SOFTWARE_PRNG ?= n -$(call force,CFG_SM_PLATFORM_HANDLER,y) $(call force,CFG_8250_UART,y) $(call force,CFG_ARM32_core,y) $(call force,CFG_GENERIC_BOOT,y) -$(call force,CFG_HWSUPP_MEM_PERM_PXN,y) $(call force,CFG_PM_STUBS,y) +ifeq ($(PLATFORM_FLAVOR),am43xx) +$(call force,CFG_NO_SMP,y) +$(call force,CFG_SECURE_TIME_SOURCE_REE,y) +arm32-platform-cpuarch := cortex-a9 +else +$(call force,CFG_SM_PLATFORM_HANDLER,y) +$(call force,CFG_HWSUPP_MEM_PERM_PXN,y) $(call force,CFG_SECURE_TIME_SOURCE_CNTPCT,y) +arm32-platform-cpuarch := cortex-a15 +endif $(call force,CFG_GIC,y) ifneq ($(CFG_WITH_SOFTWARE_PRNG),y) $(call force,CFG_DRA7_RNG,y) endif # 32-bit flags -arm32-platform-cpuarch := cortex-a15 arm32-platform-cflags += -mcpu=$(arm32-platform-cpuarch) arm32-platform-aflags += -mcpu=$(arm32-platform-cpuarch) core_arm32-platform-aflags += -mfpu=neon diff --git a/core/arch/arm/plat-ti/platform_config.h b/core/arch/arm/plat-ti/platform_config.h index 9e5a4c69..cfd62b09 100644 --- a/core/arch/arm/plat-ti/platform_config.h +++ b/core/arch/arm/plat-ti/platform_config.h @@ -66,6 +66,42 @@ /* RNG */ #define RNG_BASE 0x48090000 +#elif defined(PLATFORM_FLAVOR_am43xx) + +/* Location of protected DDR on the AM43xx platform */ +#define TZDRAM_BASE 0xbdb00000 +#define TZDRAM_SIZE 0x01c00000 + +#define CFG_TEE_CORE_NB_CORE 1 + +#define UART0_BASE 0x44E09000 +#define UART1_BASE 0x48022000 +#define UART2_BASE 0x48024000 +#define UART3_BASE 0x481A6000 +#define UART4_BASE 0x481A8000 +#define UART5_BASE 0x481AA000 + +#define CONSOLE_UART_BASE UART0_BASE +#define CONSOLE_BAUDRATE 115200 +#define CONSOLE_UART_CLK_IN_HZ 48000000 + +#define SCU_BASE 0x48240000 +#define GICD_OFFSET 0x1000 +#define GICD_SIZE 0x1000 +#define GICC_OFFSET 0x0100 +#define GICC_SIZE 0x0100 +#define PL310_OFFSET 0x2000 +#define PL310_SIZE 0x1000 +#define GICD_BASE (SCU_BASE + GICD_OFFSET) +#define GICC_BASE (SCU_BASE + GICC_OFFSET) +#define PL310_BASE (SCU_BASE + PL310_OFFSET) + +#define SECRAM_BASE 0x402F0000 +#define SECRAM_SIZE 0x00100000 + +/* RNG */ +#define RNG_BASE 0x48310000 + #else #error "Unknown platform flavor" #endif |