platform: sifive/fu540: Replace cpu0 node fix-up with the new helper
authorBin Meng <bmeng.cn@gmail.com>
Tue, 17 Mar 2020 14:59:49 +0000 (07:59 -0700)
committerAnup Patel <anup@brainfault.org>
Wed, 18 Mar 2020 05:26:43 +0000 (10:56 +0530)
commit3f1c847d1fec852a2b98ee408e4193d70949acd4
treeda73d67b646210e72105bbec2b5510621437ad9a
parentdd9439fbace2196c24d90b9274a6014418d5b413
platform: sifive/fu540: Replace cpu0 node fix-up with the new helper

This replaces the FU540 specific cpu0 node "status" property fix-up
with the newly introduced generic fdt_cpu_fixup() helper.

Unlike previous logic, the helper routine does not test the "mmu-type"
property to determine which node we should fix up, instead it uses
sbi_platform_hart_disabled() API.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
platform/sifive/fu540/platform.c