summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorvojo <joris.van.vossen@sintecs.nl>2018-02-07 12:24:58 (GMT)
committervojo <joris.van.vossen@sintecs.nl>2018-02-07 12:24:58 (GMT)
commitf6b76fd828c6311dec9a84c2658033d98dd75eee (patch)
tree4a72a281576e7206dca6718a428eeb272eac552b /include
parent0c521ff1a651585741317b4b4dfe99fd242dace2 (diff)
downloadu-boot-f6b76fd828c6311dec9a84c2658033d98dd75eee.tar.xz
mtdparts support for qpsi nor
Diffstat (limited to 'include')
-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 \