summaryrefslogtreecommitdiff
path: root/common/spl/Kconfig
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-12-23 06:51:53 (GMT)
committerTom Rini <trini@konsulko.com>2017-01-14 21:46:26 (GMT)
commit22802f4e3a0a8ead928a0af06b7719b604a98afb (patch)
tree9033e0ac38202883f80a26c3c5b832c9da44529a /common/spl/Kconfig
parentf417d40fe2f0663c5e98b1e123f6fb982b424450 (diff)
downloadu-boot-22802f4e3a0a8ead928a0af06b7719b604a98afb.tar.xz
spl: move RAM boot support in separate file
Add a new top-level config option so support booting an image stored in RAM. This allows to move the RAM boot support into a sparate file and having a single condition to compile that file. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'common/spl/Kconfig')
-rw-r--r--common/spl/Kconfig12
1 files changed, 10 insertions, 2 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index ea084f4..b1aa148 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -449,9 +449,17 @@ config SPL_POWER_SUPPORT
in drivers/power, drivers/power/pmic and drivers/power/regulator
as part of an SPL build.
+config SPL_RAM_SUPPORT
+ bool "Support booting from RAM"
+ depends on SPL
+ default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
+ help
+ Enable booting of an image in RAM. The image can be preloaded or
+ it can be loaded by SPL directly into RAM (e.g. using USB).
+
config SPL_RAM_DEVICE
bool "Support booting from preloaded image in RAM"
- depends on SPL
+ depends on SPL_RAM_SUPPORT
default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
help
Enable booting of an image already loaded in RAM. The image has to
@@ -558,7 +566,7 @@ choice
config SPL_DFU_RAM
bool "RAM device"
- depends on SPL_DFU_SUPPORT
+ depends on SPL_DFU_SUPPORT && SPL_RAM_SUPPORT
help
select RAM/DDR memory device for loading binary images
(u-boot/kernel) to the selected device partition using