ipq9574: add dload_warm_reset support

This features skip crashdump path if its set
and disable sdi path

Change-Id: I9e51efc5940920e06671de231ed09f66e2cf4646
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
This commit is contained in:
Vandhiadevan Karunamoorthy 2021-08-18 16:21:45 +05:30 committed by Gerrit - the friendly Code Review server
parent fbc3614174
commit 0488bd0d1f

View file

@ -1345,3 +1345,28 @@ void ipq_uboot_fdt_fixup(void)
} }
return; return;
} }
void fdt_fixup_set_dload_warm_reset(void *blob)
{
int nodeoff, ret;
uint32_t setval = 1;
nodeoff = fdt_path_offset(blob, "/qti,scm_restart_reason");
if (nodeoff < 0) {
printf("fixup_set_dload: unable to find scm_restart_reason node\n");
return;
}
ret = fdt_setprop_u32(blob, nodeoff, "dload_status", setval);
if (ret)
printf("fixup_set_dload: 'dload_status' not set");
ret = fdt_setprop_u32(blob, nodeoff, "dload_warm_reset", setval);
if (ret)
printf("fixup_set_dload: 'dload_warm_reset' not set");
}
void sdi_disable(void)
{
qca_scm_sdi();
}