From: Przemyslaw Marczak
Date: Wed, 2 Dec 2015 12:42:12 +0000 (+0100)
Subject: TMP: odroid-xu3::add checkboard to use the same DTB for XU3/XU3L
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a4aa7ddfcd51904678a34e421639cbd5eaefc90;p=platform%2Fkernel%2Fu-boot.git
TMP: odroid-xu3::add checkboard to use the same DTB for XU3/XU3L
This U-Boot detects Odroid board's version (XU3/XU3L)
to load proper fdtfile based on this info.
But until tizen boot image doesn't include the FDT for XU3Lite,
the same file must be used for XU3 and XU3L.
This commit adds environment script 'checkboard', to set fdtfile name.
Signed-off-by: Przemyslaw Marczak
---
diff --git a/include/configs/odroid_xu3.h b/include/configs/odroid_xu3.h
index d1e3cb26be..7420c4a1ff 100644
--- a/include/configs/odroid_xu3.h
+++ b/include/configs/odroid_xu3.h
@@ -151,7 +151,14 @@
EXYNOS_FDTFILE_SETTING \
MEM_LAYOUT_ENV_SETTINGS \
PLATFORM_BOOT_INFO \
- "checkboard=\0" \
+ "checkboard=" \
+ "if test ${boardname} = odroidxu3-lite; then; " \
+ "setenv fdtfile exynos5422-odroidxu3.dtb;" \
+ "echo;echo ' '@@@@@ !Warning! @@@@@;" \
+ "echo ' 'Detected Odroid XU3-Lite;" \
+ "echo ' 'Overwriting $'{'fdtfile'}' to exynos5422-odroidxu3.dtb;" \
+ "echo ' 'To prevent this, run: env delete checkboard;echo;" \
+ "fi;\0" \
"bootdelay=0\0" \
"rootfstype=ext4\0" \
"console=" CONFIG_DEFAULT_CONSOLE \