]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
corstone1000: Convert to text file environment
authorTom Rini <trini@konsulko.com>
Wed, 22 Jun 2022 15:25:52 +0000 (11:25 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 23 Jun 2022 01:30:05 +0000 (21:30 -0400)
Convert this platform to using the text file environment rather than
defining CONFIG_EXTRA_ENV_SETTINGS.

Signed-off-by: Tom Rini <trini@konsulko.com>
board/armltd/corstone1000/corstone1000.env [new file with mode: 0644]
include/configs/corstone1000.h

diff --git a/board/armltd/corstone1000/corstone1000.env b/board/armltd/corstone1000/corstone1000.env
new file mode 100644 (file)
index 0000000..b24ff07
--- /dev/null
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+
+usb_pgood_delay=250
+boot_bank_flag=0x08002000
+kernel_addr_bank_0=0x083EE000
+kernel_addr_bank_1=0x0936E000
+retrieve_kernel_load_addr=
+       if itest.l *${boot_bank_flag} == 0; then
+               setenv kernel_addr $kernel_addr_bank_0;
+       else
+               setenv kernel_addr $kernel_addr_bank_1;
+       fi;
+kernel_addr_r=0x88200000
index eba5cba0fba8852c6d5bc6a7a4913d55f17874f8..38d7fe8d0d428d72233cf0e5390f703e07b7bee2 100644 (file)
 
 #define CONFIG_SYS_SDRAM_BASE  PHYS_SDRAM_1
 
-#define CONFIG_EXTRA_ENV_SETTINGS                                                      \
-                               "usb_pgood_delay=250\0"                                 \
-                               "boot_bank_flag=0x08002000\0"                           \
-                               "kernel_addr_bank_0=0x083EE000\0"                       \
-                               "kernel_addr_bank_1=0x0936E000\0"                       \
-                               "retrieve_kernel_load_addr="                            \
-                                       "if itest.l *${boot_bank_flag} == 0; then "     \
-                                           "setenv kernel_addr $kernel_addr_bank_0;"   \
-                                       "else "                                         \
-                                           "setenv kernel_addr $kernel_addr_bank_1;"   \
-                                       "fi;"                                           \
-                                       "\0"                                            \
-                               "kernel_addr_r=0x88200000\0"
-
 #endif