mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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:
parent
fbc3614174
commit
0488bd0d1f
1 changed files with 25 additions and 0 deletions
|
|
@ -1345,3 +1345,28 @@ void ipq_uboot_fdt_fixup(void)
|
|||
}
|
||||
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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue