platform: sifive: fu540: Use standard value string for cpu node status

Per device tree spec, the standard value string for the "status"
property of a cpu node is either "okay" or "disabled". "masked"
was once used but it is unfortunately a spec violation.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
Bin Meng 2019-07-04 19:30:50 -07:00 committed by Anup Patel
parent ce228ee091
commit e7456399e4
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ static void fu540_modify_dt(void *fdt)
!strcmp(mmu_type, "riscv,sv48")))
continue;
else
fdt_setprop_string(fdt, cpu_offset, "status", "masked");
fdt_setprop_string(fdt, cpu_offset, "status",
"disabled");
memset(cpu_node, 0, sizeof(cpu_node));
}
size = fdt_totalsize(fdt);