Skip to content

Commit d9fa3df

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 and the qfprom driver behind it must come up with it too. 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 Reviewed-by: Sachin Grover <sgrover@qti.qualcomm.com>
1 parent 2ae9bf7 commit d9fa3df

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +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_QFPROM,y)
12-
endif
13-
1410
CFG_QCOM_PAS_PTA ?= y
1511

1612
ifeq ($(CFG_QCOM_PAS_PTA),y)
@@ -20,7 +16,18 @@ ifeq ($(CFG_QCOM_PAS_PTA),y)
2016
CFG_RESERVED_VASPACE_SIZE ?= (256 * 1024 * 1024)
2117
CFG_IN_TREE_EARLY_TAS += qcom_pas/cff7d191-7ca0-4784-af13-48223b9a4fbe
2218
CFG_QCOM_PAS_AUTH ?= y
23-
CFG_PAS_MD_SLOTS = 8
2419
endif
2520

2621
CFG_QCOM_HWKM ?= y
22+
23+
ifeq ($(CFG_QCOM_PAS_AUTH),y)
24+
$(call force,CFG_QCOM_FUSE_PTA,y)
25+
CFG_PAS_MD_SLOTS = 8
26+
# This chip's OEM_CONFIG2 fuse row has a per-root-cert hash function
27+
# select bit; targets without it always use SHA-384.
28+
$(call force,CFG_QCOM_SEGMENT_HASH_SELECT,y)
29+
endif
30+
31+
ifneq ($(filter y,$(CFG_QCOM_QFPROM_FUSEPROV) $(CFG_QCOM_FUSE_PTA)),)
32+
$(call force,CFG_QCOM_QFPROM,y)
33+
endif

0 commit comments

Comments
 (0)