board: qca: ipq9574: Add atf crypto fixup support

This changes fixup "qcom,controlled-remotely" property and
"qti,config-pipe-trust-reg" property in the crypto bam node
in ATF boot. This will enable the kernel to do complete bam
pipe initialization.

Change-Id: I454c4e4e68354506dc16b1e72b514264778314e0
Signed-off-by: Karthick Shanmugham <quic_kartshan@quicinc.com>
This commit is contained in:
Karthick Shanmugham 2023-07-14 11:29:29 +05:30 committed by Gerrit - the friendly Code Review server
parent fb2b4f64fc
commit 4f3f613b40

View file

@ -1426,6 +1426,16 @@ void ipq_uboot_fdt_fixup(void)
return; return;
} }
void fdt_fixup_for_atf(void *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 do_dpr(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) int do_dpr(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
{ {
int ret; int ret;