From 8ac1dd64dedf47c2ad5e5a61eb75c2d2b4bd1f71 Mon Sep 17 00:00:00 2001 From: Poovendhan Selvaraj Date: Tue, 17 Oct 2023 14:55:54 +0530 Subject: [PATCH] board: arm: ipq6018: Add atf crypto fixup support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This changes fixup to '0' in "qcom,controlled-remotely" property and '2' in "qti,config-pipe-trust-reg" property in the crypto bam node if ATF is enabled. This will enable the kernel to do complete bam pipe initialization. Change-Id: Idd9523f523c3099ff9ab79a894bec11f6d7a6552 Signed-off-by: Poovendhan Selvaraj --- board/qca/arm/ipq6018/ipq6018.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/board/qca/arm/ipq6018/ipq6018.c b/board/qca/arm/ipq6018/ipq6018.c index 0531106654..1233cd8070 100644 --- a/board/qca/arm/ipq6018/ipq6018.c +++ b/board/qca/arm/ipq6018/ipq6018.c @@ -1286,6 +1286,12 @@ void fdt_fixup_for_atf(void *blob) parse_fdt_fixup("/soc/qcom_q6v5_wcss@CD00000%qcom,nosecure%1", blob); parse_fdt_fixup("/soc/qcom_q6v5_wcss@CD00000%qca,wcss-aon-reset-seq%1", blob); } + if (fdt_path_offset(blob, "/soc/dma@704000") >= 0) { + parse_fdt_fixup("/soc/dma@704000%qcom,controlled-remotely%0", + blob); + parse_fdt_fixup("/soc/dma@704000%qti,config-pipe-trust-reg%2", + blob); + } } int get_soc_hw_version(void)