mpx85xx/fdt: Add cpu-release-addr for all cores
We currently do not add a cpu-release-addr for core 0, this is needed when we want to reset core 0 and later restart it from Linux Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
a2243b84bf
commit
b80d30546e
|
@ -54,18 +54,19 @@ void ft_fixup_cpu(void *blob, u64 memory_limit)
|
||||||
u32 *reg = (u32 *)fdt_getprop(blob, off, "reg", 0);
|
u32 *reg = (u32 *)fdt_getprop(blob, off, "reg", 0);
|
||||||
|
|
||||||
if (reg) {
|
if (reg) {
|
||||||
|
u64 val = *reg * SIZE_BOOT_ENTRY + spin_tbl_addr;
|
||||||
|
val = cpu_to_fdt32(val);
|
||||||
if (*reg == id) {
|
if (*reg == id) {
|
||||||
fdt_setprop_string(blob, off, "status", "okay");
|
fdt_setprop_string(blob, off, "status",
|
||||||
|
"okay");
|
||||||
} else {
|
} else {
|
||||||
u64 val = *reg * SIZE_BOOT_ENTRY + spin_tbl_addr;
|
|
||||||
val = cpu_to_fdt32(val);
|
|
||||||
fdt_setprop_string(blob, off, "status",
|
fdt_setprop_string(blob, off, "status",
|
||||||
"disabled");
|
"disabled");
|
||||||
fdt_setprop_string(blob, off, "enable-method",
|
|
||||||
"spin-table");
|
|
||||||
fdt_setprop(blob, off, "cpu-release-addr",
|
|
||||||
&val, sizeof(val));
|
|
||||||
}
|
}
|
||||||
|
fdt_setprop_string(blob, off, "enable-method",
|
||||||
|
"spin-table");
|
||||||
|
fdt_setprop(blob, off, "cpu-release-addr",
|
||||||
|
&val, sizeof(val));
|
||||||
} else {
|
} else {
|
||||||
printf ("cpu NULL\n");
|
printf ("cpu NULL\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue