[U-Boot] [PATCH 1/2] stm32mp1: Add UBIFS boot capability
Patrick Delaunay
patrick.delaunay at st.com
Fri Jun 21 13:39:55 UTC 2019
Add support for boot from NAND in generic ditribution command.
Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
---
include/configs/stm32mp1.h | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h
index 1d385e0..8388f2b 100644
--- a/include/configs/stm32mp1.h
+++ b/include/configs/stm32mp1.h
@@ -77,6 +77,10 @@
/*MMC SD*/
#define CONFIG_SYS_MMC_MAX_DEVICE 3
+/* NAND support */
+#define CONFIG_SYS_NAND_ONFI_DETECTION
+#define CONFIG_SYS_MAX_NAND_DEVICE 1
+
/* Ethernet need */
#ifdef CONFIG_DWC_ETH_QOS
#define CONFIG_SYS_NONCACHED_MEMORY (1 * SZ_1M) /* 1M */
@@ -91,11 +95,9 @@
#if !defined(CONFIG_SPL_BUILD)
-/* NAND support */
-#define CONFIG_SYS_NAND_ONFI_DETECTION
-#define CONFIG_SYS_MAX_NAND_DEVICE 1
#define BOOT_TARGET_DEVICES(func) \
func(MMC, mmc, 1) \
+ func(UBIFS, ubifs, 0) \
func(MMC, mmc, 0) \
func(MMC, mmc, 2) \
func(PXE, pxe, na)
--
2.7.4
More information about the U-Boot
mailing list