Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions core/arch/arm/plat-qcom/conf.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ CFG_QCOM_RAMBLUR_TA_WINDOW_ID ?= 2

$(call force,CFG_QCOM_PRNG,y)

$(call force,CFG_CMD_DB,y)

$(call force,CFG_RPMH_CLIENT,y)

$(call force,CFG_QFPROM,y)

$(call force,CFG_QFPROM_FUSEPROV,y)

CFG_TZDRAM_START ?= 0x1c300000
CFG_TEE_RAM_VA_SIZE ?= 0x200000
CFG_TA_RAM_VA_SIZE ?= 0x1c00000
Expand Down
21 changes: 21 additions & 0 deletions core/arch/arm/plat-qcom/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,27 @@ register_phys_mem_pgdir(MEM_AREA_IO_NSEC, GENI_UART_REG_BASE,
register_phys_mem_pgdir(MEM_AREA_IO_SEC, GICD_BASE, GIC_DIST_REG_SIZE);
register_phys_mem_pgdir(MEM_AREA_IO_SEC, GICR_BASE, GIC_DIST_REG_SIZE);

#ifdef AOP_SS_MSG_RAM_START_ADDRESS_BASE
register_phys_mem_pgdir(MEM_AREA_IO_NSEC, AOP_SS_MSG_RAM_START_ADDRESS_BASE,
AOP_SS_MSG_RAM_START_ADDRESS_BASE_SIZE);
#endif

#ifdef RPMH_BASE_ADDR
register_phys_mem_pgdir(MEM_AREA_IO_SEC, RPMH_BASE_ADDR, RPMH_RSC_SIZE);
#endif

#ifdef TCSR_MUTEX_BASE
register_phys_mem_pgdir(MEM_AREA_IO_SEC, TCSR_MUTEX_BASE, TCSR_MUTEX_SIZE);
#endif

#ifdef SECURITY_CONTROL_BASE
register_phys_mem(MEM_AREA_IO_SEC, SECURITY_CONTROL_BASE,
SECURITY_CONTROL_SIZE);
#endif
#ifdef CLK_CTL_BASE
register_phys_mem(MEM_AREA_IO_SEC, CLK_CTL_BASE, CLK_CTL_SIZE);
#endif

register_ddr(DRAM0_BASE, DRAM0_SIZE);
#ifdef DRAM1_BASE
register_ddr(DRAM1_BASE, DRAM1_SIZE);
Expand Down
22 changes: 22 additions & 0 deletions core/arch/arm/plat-qcom/platform_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,28 @@
/* GIC related constants */
#define GICD_BASE UL(0x17a00000)
#define GICR_BASE UL(0x17a60000)

/* AOP MSG RAM */
#define AOP_SS_MSG_RAM_START_ADDRESS_BASE UL(0x0C300000)
#define AOP_SS_MSG_RAM_START_ADDRESS_BASE_SIZE UL(0x00100000)

/* RPMH RSC base address */
#define RPMH_BASE_ADDR UL(0x18200000)
#define RPMH_RSC_SIZE UL(0x40000)

/* QFPROM and Security Control */
#define SECURITY_CONTROL_BASE UL(0x00780000)
#define SECURITY_CONTROL_SIZE UL(0x10000)
#define CLK_CTL_BASE UL(0x00100000)
#define CLK_CTL_SIZE UL(0x1F0000)

/* TCSR Hardware Mutex */
#define TCSR_MUTEX_BASE UL(0x01F40000)
#define TCSR_MUTEX_SIZE UL(0x40000)

/* QFPROM Fuse Provisioning */
#define CFG_SEC_ELF_DDR_ADDR UL(0x808FF000)
#define CFG_SEC_ELF_DDR_SIZE UL(0x1000)
#endif

#endif /*PLATFORM_CONFIG_H*/
Loading