[U-Boot] [PATCH] common: add new boot media kconfig entry
Peng Fan
van.freenix at gmail.com
Wed Jun 15 08:15:44 CEST 2016
Add CONFIG_{SD|NOR|NAND|ONENAND|SPI|QSPI|SATA}_BOOT kconfig entries.
SoCs supports loading U-Boot from different medias to DRAM, such as
i.MX6/7 supports loading U-Boot to DRAM from sd/emmc/nand/qspi/spi/sata
and etc. For i.MX, imximage will generate different IVT headers according
to boot medias.
Signed-off-by: Peng Fan <peng.fan at nxp.com>
Cc: Simon Glass <sjg at chromium.org>
Cc: Heiko Schocher <hs at denx.de>
Cc: Joe Hershberger <joe.hershberger at ni.com>
Cc: Bin Meng <bmeng.cn at gmail.com>
Cc: Christophe Ricard <christophe-h.ricard at st.com>
Cc: Nikita Kiryanov <nikita at compulab.co.il>
Cc: Francois Retief <fgretief at spaceteq.co.za>
Cc: Tom Rini <trini at konsulko.com>
---
common/Kconfig | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/common/Kconfig b/common/Kconfig
index 4d17b10..a41b670 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -97,6 +97,52 @@ config BOOTSTAGE_STASH_SIZE
endmenu
+menu "Boot media"
+
+config SD_BOOT
+ bool "Boot from SD"
+ default n
+ help
+ U-Boot image is stored in SD card.
+
+config NOR_BOOT
+ bool "Boot from NOR"
+ default n
+ help
+ U-Boot image is stored in NOR flash.
+
+config NAND_BOOT
+ bool "Boot from NAND"
+ default n
+ help
+ U-Boot image is stored in NAND flash.
+
+config ONENAND_BOOT
+ bool "Boot from ONENAND"
+ default n
+ help
+ U-Boot image is stored in ONENAND flash.
+
+config SPI_BOOT
+ bool "Boot from SPI"
+ default n
+ help
+ U-Boot image is stored in SPI flash.
+
+config QSPI_BOOT
+ bool "Boot from QSPI"
+ default n
+ help
+ U-Boot image is stored in QSPI flash.
+
+config SATA_BOOT
+ bool "Boot from SATA"
+ default n
+ help
+ U-Boot image is stored in SATA.
+
+endmenu
+
config BOOTDELAY
int "delay in seconds before automatically booting"
default 0
--
2.6.2
More information about the U-Boot
mailing list