Skip to content

Commit ab96976

Browse files
committed
plat-qcom: hoya: lemans: wire up fuse PTA and QFPROM for PAS authentication
Signature authentication reads fuses at runtime, so CFG_QCOM_PAS_AUTH alone is not enough: the fuse PTA, the qfprom driver behind it, and the CMD_DB/RPMH client its write path needs must all come up with it. Fold the existing fuse-provisioning enable into the same block so it and the new fuse-PTA consumer share one QFPROM enable and cannot drift apart. Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@qti.qualcomm.com> Assisted-by: Claude:sonnet-5
1 parent 42ea804 commit ab96976

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

core/arch/arm/plat-qcom/hoya/lemans/target.mk

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ ifneq ($(CFG_INSECURE),y)
77
CFG_QCOM_QFPROM_FUSEPROV ?= y
88
endif
99

10-
ifeq ($(CFG_QCOM_QFPROM_FUSEPROV),y)
11-
$(call force,CFG_QCOM_CMD_DB,y)
12-
$(call force,CFG_QCOM_RPMH_CLIENT,y)
13-
$(call force,CFG_QCOM_QFPROM,y)
14-
endif
15-
1610
CFG_QCOM_PAS_PTA ?= y
1711

1812
ifeq ($(CFG_QCOM_PAS_PTA),y)
@@ -26,3 +20,16 @@ CFG_PAS_MD_SLOTS = 8
2620
endif
2721

2822
CFG_QCOM_HWKM ?= y
23+
24+
ifeq ($(CFG_QCOM_PAS_AUTH),y)
25+
$(call force,CFG_QCOM_FUSE_PTA,y)
26+
endif
27+
28+
ifneq ($(filter y,$(CFG_QCOM_QFPROM_FUSEPROV) $(CFG_QCOM_FUSE_PTA)),)
29+
$(call force,CFG_QCOM_QFPROM,y)
30+
endif
31+
32+
ifeq ($(CFG_QCOM_QFPROM),y)
33+
$(call force,CFG_QCOM_CMD_DB,y)
34+
$(call force,CFG_QCOM_RPMH_CLIENT,y)
35+
endif

0 commit comments

Comments
 (0)