]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: socfpga: config: Make CONFIG_SPI_FLASH_MTD useful
authorMarek Vasut <marex@denx.de>
Fri, 24 Jul 2015 04:15:14 +0000 (06:15 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 8 Aug 2015 12:14:10 +0000 (14:14 +0200)
Enable the mtdparts command and related options to make support
for SPI NOR MTD useful in any way. With the mtdparts command in
place, it is possible to use partition of the SPI NOR in U-Boot.

Signed-off-by: Marek Vasut <marex@denx.de>
include/configs/socfpga_common.h

index 9ee4a75eb1388c5ec26e2cff565e586904a942aa..5ca45a90c7902e6d50af9ae202d829c56ab6fddf 100644 (file)
@@ -199,6 +199,10 @@ unsigned int cm_get_l4_sp_clk_hz(void);
 #define CONFIG_SPI_FLASH_SPANSION      /* Spansion flash */
 #ifndef CONFIG_SPL_BUILD
 #define CONFIG_SPI_FLASH_MTD
+#define CONFIG_CMD_MTDPARTS
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITIONS
+#define MTDIDS_DEFAULT                 "nor0=ff705000.spi"
 #endif
 /* QSPI reference clock */
 #ifndef __ASSEMBLY__