]> git.sur5r.net Git - u-boot/commitdiff
spl: move SYS_OS_BASE to Kconfig
authorHeiko Schocher <hs@denx.de>
Thu, 6 Oct 2016 05:55:16 +0000 (07:55 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 15 Oct 2016 12:12:27 +0000 (08:12 -0400)
Move SYS_OS_BASE to Kconfig and cleanup existing
uses.

Signed-off-by: Heiko Schocher <hs@denx.de>
[trini: Also migrate a4m2k]
Signed-off-by: Tom Rini <trini@konsulko.com>
common/spl/Kconfig
configs/a3m071_defconfig
configs/a4m2k_defconfig
configs/microblaze-generic_defconfig
include/configs/a3m071.h
include/configs/microblaze-generic.h

index 74f7abc06b3418333641931a76447affd4569709..bb99f1fcff4b4ba3ae909be3d3134323741f6c84 100644 (file)
@@ -389,6 +389,16 @@ config SPL_OS_BOOT
          Enable booting directly to an OS from SPL.
          for more info read doc/README.falcon
 
+if SPL_OS_BOOT
+config SYS_OS_BASE
+       hex "addr, where OS is found"
+       depends on SPL && SPL_NOR_SUPPORT
+       help
+         Specify the address, where the OS image is found, which
+         gets booted.
+
+endif # SPL_OS_BOOT
+
 config SPL_POST_MEM_SUPPORT
        bool "Support POST drivers"
        depends on SPL
index 5356489099d6a0debbea033bdf34079190479a3d..ae696b5bdb6c6d63435f84db79d6197b53a3246c 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_BOOTDELAY=3
 CONFIG_SPL=y
 CONFIG_SPL_NOR_SUPPORT=y
 CONFIG_SPL_OS_BOOT=y
+CONFIG_SYS_OS_BASE=0xfc200000
 CONFIG_HUSH_PARSER=y
 CONFIG_LOOPW=y
 # CONFIG_CMD_SETEXPR is not set
index c54689d1ed8a3e302c848ec00d84bc1f1afaf751..144291e15e8635ddce55172d28811ec17583d4b9 100644 (file)
@@ -12,6 +12,7 @@ CONFIG_BOOTDELAY=3
 CONFIG_SPL=y
 CONFIG_SPL_NOR_SUPPORT=y
 CONFIG_SPL_OS_BOOT=y
+CONFIG_SYS_OS_BASE=0xfc200000
 CONFIG_HUSH_PARSER=y
 CONFIG_LOOPW=y
 # CONFIG_CMD_SETEXPR is not set
index bc97f60ade0aa29c3d60e3843f98342aa8c9317c..3dbf48a4029229b4eeb42fa31b4d1da443c56e59 100644 (file)
@@ -16,6 +16,7 @@ CONFIG_SPL=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 CONFIG_SPL_NOR_SUPPORT=y
 CONFIG_SPL_OS_BOOT=y
+CONFIG_SYS_OS_BASE=0x2c060000
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="U-Boot-mONStR> "
 CONFIG_CMD_ASKENV=y
index 93be3d6edc8afae69892f09c8a9181a06b405d41..ee75785781d8903d0955fe37c944b5e080c18adb 100644 (file)
 
 #undef CONFIG_BOOTARGS
 
-#define CONFIG_SYS_OS_BASE     0xfc200000
 #define CONFIG_SYS_FDT_BASE    0xfc1e0000
 #define CONFIG_SYS_FDT_SIZE    (16<<10)
 
index 32b0c62376f9945490235baa884b25bfccaaaf2f..2a7006f3282bfcd901647b139e5875b78b6bd84a 100644 (file)
 
 /* for booting directly linux */
 
-#define CONFIG_SYS_OS_BASE             (CONFIG_SYS_FLASH_BASE + \
-                                        0x60000)
 #define CONFIG_SYS_FDT_BASE            (CONFIG_SYS_FLASH_BASE + \
                                         0x40000)
 #define CONFIG_SYS_FDT_SIZE            (16<<10)