diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2019-07-05 05:30:50 +0300 |
---|---|---|
committer | Anup Patel <anup.patel@wdc.com> | 2019-07-22 08:44:05 +0300 |
commit | e7456399e439cf8c2f8c44264c0988218b2b6ac5 (patch) | |
tree | 562fa5ba731a9e4f5ca0b8777ac3007b7e7884f2 /platform/sifive | |
parent | ce228ee0919deb9957192d723eecc8aaae2697c6 (diff) | |
download | opensbi-e7456399e439cf8c2f8c44264c0988218b2b6ac5.tar.xz |
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>
Diffstat (limited to 'platform/sifive')
-rw-r--r-- | platform/sifive/fu540/platform.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/sifive/fu540/platform.c b/platform/sifive/fu540/platform.c index 46b48b8..ee90790 100644 --- a/platform/sifive/fu540/platform.c +++ b/platform/sifive/fu540/platform.c @@ -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); |