mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
Merge "ipq6018: fdt_fixup: Added rproc auto-restart support"
This commit is contained in:
commit
5cc17efe90
1 changed files with 22 additions and 0 deletions
|
|
@ -1201,6 +1201,28 @@ void ipq_fdt_fixup_socinfo(void *blob)
|
|||
|
||||
void fdt_fixup_auto_restart(void *blob)
|
||||
{
|
||||
int nodeoff, ret;
|
||||
const char *node = "/soc/q6v5_wcss@CD00000";
|
||||
const char *paniconwcssfatal;
|
||||
|
||||
paniconwcssfatal = getenv("paniconwcssfatal");
|
||||
|
||||
if (!paniconwcssfatal)
|
||||
return;
|
||||
|
||||
if (strncmp(paniconwcssfatal, "1", sizeof("1"))) {
|
||||
printf("fixup_auto_restart: invalid variable 'paniconwcssfatal'");
|
||||
} else {
|
||||
nodeoff = fdt_path_offset(blob, node);
|
||||
if (nodeoff < 0) {
|
||||
printf("fixup_auto_restart: unable to find node '%s'\n", node);
|
||||
return;
|
||||
}
|
||||
ret = fdt_delprop(blob, nodeoff, "qca,auto-restart");
|
||||
|
||||
if (ret)
|
||||
printf("fixup_auto_restart: cannot delete property");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue