Skip to content

Commit 4334005

Browse files
committed
plat-qcom: kodiak: enable QFPROM driver
Enable QFPROM driver for Kodiak platform and register the Security Control and Clock Control memory regions required for secure OTP fuse operations. Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@qti.qualcomm.com>
1 parent 1a83993 commit 4334005

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

core/arch/arm/plat-qcom/conf.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ $(call force,CFG_CMD_DB,y)
2828

2929
$(call force,CFG_RPMH_CLIENT,y)
3030

31+
$(call force,CFG_QFPROM,y)
32+
3133
CFG_TZDRAM_START ?= 0x1c300000
3234
CFG_TEE_RAM_VA_SIZE ?= 0x200000
3335
CFG_TA_RAM_VA_SIZE ?= 0x1c00000

core/arch/arm/plat-qcom/main.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ register_phys_mem_pgdir(MEM_AREA_IO_NSEC, AOP_SS_MSG_RAM_START_ADDRESS_BASE,
3030
register_phys_mem_pgdir(MEM_AREA_IO_SEC, RPMH_BASE_ADDR, RPMH_RSC_SIZE);
3131
#endif
3232

33+
#ifdef TCSR_MUTEX_BASE
34+
register_phys_mem_pgdir(MEM_AREA_IO_SEC, TCSR_MUTEX_BASE, TCSR_MUTEX_SIZE);
35+
#endif
36+
37+
#ifdef SECURITY_CONTROL_BASE
38+
register_phys_mem(MEM_AREA_IO_SEC, SECURITY_CONTROL_BASE,
39+
SECURITY_CONTROL_SIZE);
40+
#endif
41+
#ifdef CLK_CTL_BASE
42+
register_phys_mem(MEM_AREA_IO_SEC, CLK_CTL_BASE, CLK_CTL_SIZE);
43+
#endif
44+
3345
register_ddr(DRAM0_BASE, DRAM0_SIZE);
3446
#ifdef DRAM1_BASE
3547
register_ddr(DRAM1_BASE, DRAM1_SIZE);

core/arch/arm/plat-qcom/platform_config.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@
3737
/* RPMH RSC base address */
3838
#define RPMH_BASE_ADDR UL(0x18200000)
3939
#define RPMH_RSC_SIZE UL(0x40000)
40+
41+
/* QFPROM and Security Control */
42+
#define SECURITY_CONTROL_BASE UL(0x00780000)
43+
#define SECURITY_CONTROL_SIZE UL(0x10000)
44+
#define CLK_CTL_BASE UL(0x00100000)
45+
#define CLK_CTL_SIZE UL(0x1F0000)
46+
47+
/* TCSR Hardware Mutex */
48+
#define TCSR_MUTEX_BASE UL(0x01F40000)
49+
#define TCSR_MUTEX_SIZE UL(0x40000)
50+
4051
#endif
4152

4253
#endif /*PLATFORM_CONFIG_H*/

0 commit comments

Comments
 (0)