summaryrefslogtreecommitdiff
path: root/include/configs/grapeboard.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/configs/grapeboard.h')
-rw-r--r--include/configs/grapeboard.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/include/configs/grapeboard.h b/include/configs/grapeboard.h
index 3a252b6..cf83c8c 100644
--- a/include/configs/grapeboard.h
+++ b/include/configs/grapeboard.h
@@ -176,27 +176,23 @@
#define CONFIG_PCI_SCAN_SHOW
#define CONFIG_CMD_PCI
-#if 0 /* todo */
/* Mtdparts configuration */
#define CONFIG_MTD_DEVICE
#define CONFIG_MTD_PARTITIONS
-/*#define CONFIG_CMD_MTDPARTS*/
+#define CONFIG_CMD_MTDPARTS
#define CONFIG_USE_SPIFLASH
+#define CONFIG_SPI_FLASH_MTD
#define MTDIDS_DEFAULT \
- "nor0=spi40000000.0"
-
-#define MTDPART_DEFAULT_PARTITIONS \
- "2M@0x0(u-boot)," \
- "256k(env)," \
- "256k(ppa)," \
- "256k(pfe_ucode),"
+ "nor0=qspi@40000000.0"
#define MTDPARTS_DEFAULT \
- "mtdparts=spi40000000.0:" \
- MTDPART_DEFAULT_PARTITIONS \
+ "mtdparts=qspi@40000000.0:" \
+ "2M@0x0(u-boot)," \
+ "256k(env)," \
+ "256k(ppa)," \
+ "256k(pfe_ucode)," \
"-(rootfs)"
-#endif
/* Default environment variables */
#define COMMON_UBOOT_CONFIG \