arm: mvebu: clearfog: Unify DT selection paths
authorJoel Johnson <mrjoel@lixil.net>
Mon, 23 Mar 2020 20:21:35 +0000 (14:21 -0600)
committerStefan Roese <sr@denx.de>
Tue, 14 Apr 2020 11:16:42 +0000 (13:16 +0200)
Unify the location of DT selection into board_late_init instead of
split between detection and static configuration paths.

Signed-off-by: Joel Johnson <mrjoel@lixil.net>
Reviewed-by: Stefan Roese <sr@denx.de>
board/solidrun/clearfog/clearfog.c
include/configs/clearfog.h

index fd9bd95..249ea46 100644 (file)
@@ -245,6 +245,8 @@ int board_late_init(void)
                env_set("fdtfile", "armada-385-clearfog-gtr-l8.dtb");
        else if (IS_ENABLED(CONFIG_TARGET_CLEARFOG_BASE))
                env_set("fdtfile", "armada-388-clearfog-base.dtb");
+       else
+               env_set("fdtfile", "armada-388-clearfog.dtb");
 
        return 0;
 }
index 52945d1..8314956 100644 (file)
 #define CONFIG_EXTRA_ENV_SETTINGS \
        RELOCATION_LIMITS_ENV_SETTINGS \
        LOAD_ADDRESS_ENV_SETTINGS \
-       "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
        "console=ttyS0,115200\0" \
        BOOTENV