[PATCH v2 04/10] arm: mvebu: clearfog: Use Pro DT by default
Joel Johnson
mrjoel at lixil.net
Sun Jan 19 08:52:43 CET 2020
Switch to explicitly using the Pro variant DT, which has been
available since Linux 4.11. Also unify the location of DT selection
in board_late_init instead of split between detection and static
configuration paths.
---
v2 changes
- newly added in V2 series based on run-time rebasing
Signed-off-by: Joel Johnson <mrjoel at lixil.net>
---
board/solidrun/clearfog/clearfog.c | 6 ++++--
include/configs/clearfog.h | 1 -
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidrun/clearfog/clearfog.c
index b66f9f61cf..a3c5780730 100644
--- a/board/solidrun/clearfog/clearfog.c
+++ b/board/solidrun/clearfog/clearfog.c
@@ -269,7 +269,7 @@ int checkboard(void)
#if defined (CONFIG_TARGET_CLEARFOG_BASE)
char *board = "ClearFog Base";
#else
- char *board = "ClearFog";
+ char *board = "ClearFog Pro";
#endif
read_tlv_data();
@@ -300,9 +300,11 @@ int board_late_init(void)
env_set("fdtfile", "armada-385-clearfog-gtr-s4.dtb");
else if (sr_product_is("Clearfog GTR L8"))
env_set("fdtfile", "armada-385-clearfog-gtr-l8.dtb");
-#if defined (CONFIG_TARGET_CLEARFOG_BASE)
else
+#if defined (CONFIG_TARGET_CLEARFOG_BASE)
env_set("fdtfile", "armada-388-clearfog-base.dtb");
+#else
+ env_set("fdtfile", "armada-388-clearfog-pro.dtb");
#endif
return 0;
diff --git a/include/configs/clearfog.h b/include/configs/clearfog.h
index 633187d86f..6ca0474461 100644
--- a/include/configs/clearfog.h
+++ b/include/configs/clearfog.h
@@ -134,7 +134,6 @@
#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
--
2.20.1
More information about the U-Boot
mailing list