]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: sifive: Set default fdtfile names
authorDimitri John Ledkov <dimitri.ledkov@canonical.com>
Wed, 16 Jun 2021 15:39:06 +0000 (16:39 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 6 Jul 2021 05:48:48 +0000 (13:48 +0800)
Set default fdtfile names for unleashed and unmatched boards, as used
in the upstream Linux kernel. This allows sysboot command to find and
load appropriate dtb for the matching kernel from universal stock
Ubuntu RISC-V rootfs images based on fdtdir setting in extlinux.conf.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
cc: Paul Walmsley <paul.walmsley@sifive.com>
cc: Palmer Dabbelt <palmer@dabbelt.com>
cc: Anup Patel <anup.patel@wdc.com>
cc: Atish Patra <atish.patra@wdc.com>
cc: Pragnesh Patel <pragnesh.patel@sifive.com>
cc: Green Wan <green.wan@sifive.com>

configs/sifive_unleashed_defconfig
configs/sifive_unmatched_defconfig
include/configs/sifive-unleashed.h
include/configs/sifive-unmatched.h

index 5bf40cee08c32b18d9439ce730b0c0dac95f87b5..d665c8f5d9499e5412996bf33aa34a824670e4e4 100644 (file)
@@ -14,6 +14,7 @@ CONFIG_RISCV_SMODE=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT=y
 CONFIG_SPL_LOAD_FIT_ADDRESS=0x84000000
+CONFIG_DEFAULT_FDT_FILE="sifive/hifive-unleashed-a00.dtb"
 CONFIG_DISPLAY_CPUINFO=y
 CONFIG_DISPLAY_BOARDINFO=y
 CONFIG_MISC_INIT_R=y
index 4c2650486727a153d7abcdb52467c693285eda55..44edfd297430bacca27cc572c7ddd84f74479336 100644 (file)
@@ -14,6 +14,7 @@ CONFIG_RISCV_SMODE=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT=y
 CONFIG_SPL_LOAD_FIT_ADDRESS=0x84000000
+CONFIG_DEFAULT_FDT_FILE="sifive/hifive-unmatched-a00.dtb"
 CONFIG_DISPLAY_CPUINFO=y
 CONFIG_DISPLAY_BOARDINFO=y
 CONFIG_DISPLAY_BOARDINFO_LATE=y
index 0d69d1c5482382b724e7f40a630f5b09f11c60aa..b6c29f8c6044cdc36924a320a0df24c8a5fc2319 100644 (file)
@@ -75,6 +75,7 @@
        "type_guid_gpt_loader2=" TYPE_GUID_LOADER2 "\0" \
        "type_guid_gpt_system=" TYPE_GUID_SYSTEM "\0" \
        "partitions=" PARTS_DEFAULT "\0" \
+       "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
        BOOTENV \
        BOOTENV_SF
 
index 4fad69bb199ddc6cbbaaa928f8db9185154cb501..80cfd41cebcb51bd5ab8562797c43bc2fc9d6dfb 100644 (file)
@@ -73,6 +73,7 @@
        "type_guid_gpt_loader2=" TYPE_GUID_LOADER2 "\0" \
        "type_guid_gpt_system=" TYPE_GUID_SYSTEM "\0" \
        "partitions=" PARTS_DEFAULT "\0" \
+       "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
        BOOTENV
 
 #define CONFIG_PREBOOT \