summaryrefslogtreecommitdiffstats
path: root/include/configs/socfpga_common.h
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-07-24 06:15:14 +0200
committerMarek Vasut <marex@denx.de>2015-08-08 14:14:10 +0200
commit55b4312b905a64e33e518bd5f99193196fcdc500 (patch)
tree9a4e60bf4b9457635038bbe32eff6cb7d6247171 /include/configs/socfpga_common.h
parent4c6d8b91fa8fbe95516c0c804ca5ef491d493b41 (diff)
downloadblackbird-obmc-uboot-55b4312b905a64e33e518bd5f99193196fcdc500.tar.gz
blackbird-obmc-uboot-55b4312b905a64e33e518bd5f99193196fcdc500.zip
arm: socfpga: config: Make CONFIG_SPI_FLASH_MTD useful
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>
Diffstat (limited to 'include/configs/socfpga_common.h')
-rw-r--r--include/configs/socfpga_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index 9ee4a75eb1..5ca45a90c7 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -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__
OpenPOWER on IntegriCloud