Skip to contentSkip to conversation

configs: Enable CONFIG_SPL_MTD_SUPPORT

PATCH New Jagan Teki 1 participant 1 message Feb 16, 2016 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore

Jagan Teki

author
#0 lore raw

PATCH v7 73/76 configs: Enable CONFIG_SPL_MTD_SUPPORT

Since SPI-NOR is driven by MTD core, so the SPL need to use the MTD as well.

Cc Simon Glass <[email protected]>
Cc Bin Meng <[email protected]>
Cc Mugunthan V N <[email protected]>
Cc Michal Simek <[email protected]>
Cc Siva Durga Prasad Paladugu <[email protected]>

---
Changes v7:
- Remove duplicate define on CONFIG_SPL_MTD_SUPPORT for zynq

 include/configs/P1010RDB.h             | 1 +
 include/configs/P1022DS.h              | 1 +
 include/configs/T102xQDS.h             | 1 +
 include/configs/T102xRDB.h             | 1 +
 include/configs/T104xRDB.h             | 1 +
 include/configs/T208xQDS.h             | 1 +
 include/configs/T208xRDB.h             | 1 +
 include/configs/am335x_evm.h           | 1 +
 include/configs/at91sam9n12ek.h        | 1 +
 include/configs/at91sam9x5ek.h         | 1 +
 include/configs/bav335x.h              | 1 +
 include/configs/cgtqmx6eval.h          | 1 +
 include/configs/chromebook_jerry.h     | 1 +
 include/configs/clearfog.h             | 1 +
 include/configs/cm_fx6.h               | 1 +
 include/configs/cm_t43.h               | 1 +
 include/configs/da850evm.h             | 2 ++
 include/configs/db-88f6820-gp.h        | 1 +
 include/configs/db-mv784mp-gp.h        | 1 +
 include/configs/dra7xx_evm.h           | 1 +
 include/configs/ds414.h                | 1 +
 include/configs/maxbcm.h               | 1 +
 include/configs/omapl138_lcdk.h        | 1 +
 include/configs/ot1200.h               | 1 +
 include/configs/p1_p2_rdb_pc.h         | 1 +
 include/configs/pcm051.h               | 1 +
 include/configs/sama5d2_xplained.h     | 1 +
 include/configs/sama5d3xek.h           | 1 +
 include/configs/sama5d4_xplained.h     | 1 +
 include/configs/sama5d4ek.h            | 1 +
 include/configs/siemens-am33x-common.h | 1 +
 include/configs/socfpga_common.h       | 1 +
 include/configs/taurus.h               | 1 +
 include/configs/theadorable.h          | 1 +
 include/configs/ti_armv7_keystone2.h   | 1 +
 include/configs/tseries.h              | 1 +
 36 files changed, 37 insertions(+)
include/configs/P1010RDB.h +1 -0
index a76630a..ec311fc 100644
@@ -62,6 +62,7 @@
 #define CONFIG_SPL_SERIAL_SUPPORT
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_FLASH_MINIMAL
 #define CONFIG_SPL_FLUSH_IMAGE
 #define CONFIG_SPL_TARGET		"u-boot-with-spl.bin"
include/configs/P1022DS.h +1 -0
index c8e7524..d4c17f9 100644
@@ -51,6 +51,7 @@
 #define CONFIG_SPL_SERIAL_SUPPORT
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_FLASH_MINIMAL
 #define CONFIG_SPL_FLUSH_IMAGE
 #define CONFIG_SPL_TARGET		"u-boot-with-spl.bin"
include/configs/T102xQDS.h +1 -0
index 999fce2..569af49 100644
@@ -81,6 +81,7 @@
 #define CONFIG_RESET_VECTOR_ADDRESS		0x200FFC
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_FLASH_MINIMAL
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_SIZE	(768 << 10)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_DST		(0x00200000)
include/configs/T102xRDB.h +1 -0
index 0ad1ce7..643eae0 100644
@@ -88,6 +88,7 @@
 #define CONFIG_RESET_VECTOR_ADDRESS		0x30000FFC
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_FLASH_MINIMAL
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_SIZE	(768 << 10)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_DST		(0x30000000)
include/configs/T104xRDB.h +1 -0
index b81c194..4132814 100644
@@ -74,6 +74,7 @@ $(SRCTREE)/board/freescale/t104xrdb/t1042d4_rcw.cfg
 #define	CONFIG_RESET_VECTOR_ADDRESS		0x30000FFC
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_FLASH_MINIMAL
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_SIZE	(768 << 10)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_DST		(0x30000000)
include/configs/T208xQDS.h +1 -0
index 76a9f93..05c123c 100644
@@ -91,6 +91,7 @@
 #define	CONFIG_RESET_VECTOR_ADDRESS		0x200FFC
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_FLASH_MINIMAL
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_SIZE	(768 << 10)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_DST		(0x00200000)
include/configs/T208xRDB.h +1 -0
index a71f430..5269741 100644
@@ -80,6 +80,7 @@
 #define        CONFIG_RESET_VECTOR_ADDRESS             0x200FFC
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_FLASH_MINIMAL
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_SIZE       (768 << 10)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_DST                (0x00200000)
include/configs/am335x_evm.h +1 -0
index e4d53e4..db30727 100644
@@ -438,6 +438,7 @@
 #undef CONFIG_SPL_OS_BOOT		/* Not supported by existing map */
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x20000
 
include/configs/at91sam9n12ek.h +1 -0
index f7f3733..03f5c9f 100644
@@ -281,6 +281,7 @@
 #elif CONFIG_SYS_USE_SPIFLASH
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x8400
 
include/configs/at91sam9x5ek.h +1 -0
index 1eb7a86..63a4256 100644
@@ -283,6 +283,7 @@
 #elif CONFIG_SYS_USE_SPIFLASH
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x8400
 
include/configs/bav335x.h +1 -0
index 0431f78..a881eee 100644
@@ -552,6 +552,7 @@ DEFAULT_LINUX_BOOT_ENV \
 #undef CONFIG_SPL_OS_BOOT		/* Not supported by existing map */
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x20000
 
include/configs/cgtqmx6eval.h +1 -0
index 0f50f34..f973ffb 100644
@@ -22,6 +22,7 @@
 #define CONFIG_SPL_MMC_SUPPORT
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	(64 * 1024)
 #define CONFIG_SPL_SPI_LOAD
 #include "imx6_spl.h"
include/configs/chromebook_jerry.h +1 -0
index b3c1bc8..a8243b1 100644
@@ -17,6 +17,7 @@
 #define CONFIG_ENV_IS_NOWHERE
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SPI_NOR_MISC
 
include/configs/clearfog.h +1 -0
index 1880dc7..10c24d7 100644
@@ -146,6 +146,7 @@
 /* SPL related SPI defines */
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SPL_SPI_BUS		0
 #define CONFIG_SPL_SPI_CS		0
include/configs/cm_fx6.h +1 -0
index d70041c..2001836 100644
@@ -235,6 +235,7 @@
 #define CONFIG_SYS_MONITOR_LEN	(CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS / 2 * 1024)
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	(64 * 1024)
 #define CONFIG_SPL_SPI_LOAD
 
include/configs/cm_t43.h +1 -0
index 1b7a396..9d94373 100644
@@ -169,6 +169,7 @@
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	(256 * 1024)
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 
 #endif	/* __CONFIG_CM_T43_H */
include/configs/da850evm.h +2 -0
index ea319a3..db55f5b 100644
@@ -151,6 +151,7 @@
 #ifdef CONFIG_USE_SPIFLASH
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x8000
 #define CONFIG_SYS_SPI_U_BOOT_SIZE	0x40000
@@ -359,6 +360,7 @@
 #define CONFIG_SYS_SPL_MALLOC_SIZE	CONFIG_SYS_MALLOC_LEN
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SPL_SERIAL_SUPPORT
 #define CONFIG_SPL_LIBCOMMON_SUPPORT
include/configs/db-88f6820-gp.h +1 -0
index 32fba11..1255c8b 100644
@@ -146,6 +146,7 @@
 /* SPL related SPI defines */
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SPL_SPI_BUS		0
 #define CONFIG_SPL_SPI_CS		0
include/configs/db-mv784mp-gp.h +1 -0
index 3749280..5a88fed 100644
@@ -136,6 +136,7 @@
 /* SPL related SPI defines */
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SPL_SPI_BUS		0
 #define CONFIG_SPL_SPI_CS		0
include/configs/dra7xx_evm.h +1 -0
index bb1a426..359c3ba 100644
@@ -186,6 +186,7 @@
 #define CONFIG_TI_EDMA3
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SYS_SPI_U_BOOT_OFFS     0x40000
 
 #define CONFIG_SUPPORT_EMMC_BOOT
include/configs/ds414.h +1 -0
index 02c2cd0..334f61b 100644
@@ -140,6 +140,7 @@
 /* SPL related SPI defines */
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SPL_SPI_BUS		0
 #define CONFIG_SPL_SPI_CS		0
include/configs/maxbcm.h +1 -0
index 0b6031e..aa006e8 100644
@@ -99,6 +99,7 @@
 /* SPL related SPI defines */
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SPL_SPI_BUS		0
 #define CONFIG_SPL_SPI_CS		0
include/configs/omapl138_lcdk.h +1 -0
index 790fe5b..27af5c7 100644
@@ -99,6 +99,7 @@
 #ifdef CONFIG_USE_SPIFLASH
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x8000
 #define CONFIG_SYS_SPI_U_BOOT_SIZE	0x30000
include/configs/ot1200.h +1 -0
index ae20e54..2165562 100644
@@ -88,6 +88,7 @@
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_LIBCOMMON_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SYS_SPI_U_BOOT_OFFS     (64 * 1024)
 #define CONFIG_SPL_SPI_LOAD
 #endif
include/configs/p1_p2_rdb_pc.h +1 -0
index d5b6e50..53bd57f 100644
@@ -218,6 +218,7 @@
 #define CONFIG_SPL_SERIAL_SUPPORT
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_FLASH_MINIMAL
 #define CONFIG_SPL_FLUSH_IMAGE
 #define CONFIG_SPL_TARGET		"u-boot-with-spl.bin"
include/configs/pcm051.h +1 -0
index ad3a478..3583152 100644
@@ -131,6 +131,7 @@
 #ifdef CONFIG_SPI_BOOT
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x20000
 #define CONFIG_SYS_SPI_U_BOOT_SIZE	0x40000
include/configs/sama5d2_xplained.h +1 -0
index 7d1dbdf..b4146f7 100644
@@ -153,6 +153,7 @@
 #elif CONFIG_SYS_USE_SERIALFLASH
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x8000
 
include/configs/sama5d3xek.h +1 -0
index efd02fe..02df0f2 100644
@@ -207,6 +207,7 @@
 #elif CONFIG_SYS_USE_SERIALFLASH
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x8000
 
include/configs/sama5d4_xplained.h +1 -0
index 8252046..486e4e0 100644
@@ -168,6 +168,7 @@
 #elif CONFIG_SYS_USE_SERIALFLASH
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x8000
 
include/configs/sama5d4ek.h +1 -0
index e6e7e61..98368a7 100644
@@ -166,6 +166,7 @@
 #elif CONFIG_SYS_USE_SERIALFLASH
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x8000
 
include/configs/siemens-am33x-common.h +1 -0
index eb3d85f..7c030c8 100644
@@ -159,6 +159,7 @@
 
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x20000
 
include/configs/socfpga_common.h +1 -0
index 765bec2..694e95c 100644
@@ -370,6 +370,7 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
 /* SPL QSPI boot support */
 #ifdef CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x40000
 #endif
include/configs/taurus.h +1 -0
index 06ee51c..6dda72c 100644
@@ -167,6 +167,7 @@
 #undef CONFIG_SPL_OS_BOOT		/* Not supported by existing map */
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x20000
 
include/configs/theadorable.h +1 -0
index 5809975..4bbf017 100644
@@ -158,6 +158,7 @@
 /* SPL related SPI defines */
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SPL_SPI_BUS		0
 #define CONFIG_SPL_SPI_CS		0
include/configs/ti_armv7_keystone2.h +1 -0
index ba2aa58..c283555 100644
@@ -53,6 +53,7 @@
 					SPL_MALLOC_F_SIZE + \
 					CONFIG_SPL_STACK_SIZE - 4)
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	CONFIG_SPL_PAD_TO
include/configs/tseries.h +1 -0
index 9a18039..cc18810 100644
@@ -270,6 +270,7 @@ MMCARGS
 
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_NOR_SUPPORT
+#define CONFIG_SPL_MTD_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x20000
 #undef CONFIG_ENV_IS_NOWHERE
Signature · 1 line
1.9.1