summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2015-11-02 11:04:00 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2016-02-17 10:54:06 +0100
commit41bfdd3af2388f666bf863f01286dc3e33b75365 (patch)
tree4405424891d7e4dacaec70965619f65e68a399c4
parent963dfa7a510e62d246a62a346b8cec4817bb4428 (diff)
mx7dsabresd: add NAND/UBI to config
-rw-r--r--configs/mx7dsabresd_defconfig2
-rw-r--r--include/configs/mx7dsabresd.h22
2 files changed, 23 insertions, 1 deletions
diff --git a/configs/mx7dsabresd_defconfig b/configs/mx7dsabresd_defconfig
index 5a6412229c..ba0155d762 100644
--- a/configs/mx7dsabresd_defconfig
+++ b/configs/mx7dsabresd_defconfig
@@ -1,4 +1,4 @@
-CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx7dsabresd/imximage.cfg,MX7D"
+CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx7dsabresd/imximage.cfg,MX7D,IMX_NAND"
CONFIG_ARM=y
CONFIG_TARGET_MX7DSABRESD=y
CONFIG_SYS_MALLOC_F=y
diff --git a/include/configs/mx7dsabresd.h b/include/configs/mx7dsabresd.h
index 385cafac0d..a443e37f25 100644
--- a/include/configs/mx7dsabresd.h
+++ b/include/configs/mx7dsabresd.h
@@ -166,6 +166,7 @@
"\0" \
"initrd_addr=0x83800000\0" \
"initrd_high=0xffffffff\0" \
+ "mtdparts=" MTDPARTS_DEFAULT "\0" \
"bootcmd_mfg=run mfgtool_args;bootz ${loadaddr} ${initrd_addr} ${fdt_addr};\0" \
#if defined(CONFIG_SYS_BOOT_NAND)
@@ -302,6 +303,8 @@
#define CONFIG_ENV_SIZE SZ_8K
+#define CONFIG_SYS_USE_NAND
+
#ifdef CONFIG_SYS_BOOT_QSPI
#define CONFIG_SYS_USE_QSPI
#define CONFIG_ENV_IS_IN_SPI_FLASH
@@ -314,6 +317,7 @@
#ifdef CONFIG_SYS_USE_NAND
#define CONFIG_CMD_NAND
+#define CONFIG_CMD_WRITEBCB
#define CONFIG_CMD_NAND_TRIMFFS
/* NAND stuff */
@@ -323,6 +327,24 @@
#define CONFIG_SYS_NAND_5_ADDR_CYCLE
#define CONFIG_SYS_NAND_ONFI_DETECTION
+/* UBI stuff */
+#define CONFIG_RBTREE
+#define CONFIG_LZO
+#define CONFIG_CMD_UBI
+#define CONFIG_MTD_UBI_FASTMAP
+#define CONFIG_CMD_UBIFS /* increases size by almost 60 KB */
+
+/* Dynamic MTD partition support */
+#define CONFIG_CMD_MTDPARTS /* Enable 'mtdparts' command line support */
+#define CONFIG_MTD_PARTITIONS
+#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
+#define MTDIDS_DEFAULT "nand0=gpmi-nand"
+#define MTDPARTS_DEFAULT "mtdparts=gpmi-nand:" \
+ "128k(mx7-bcb)ro," \
+ "1408k(u-boot)ro," \
+ "512k(u-boot-env)," \
+ "-(ubi)"
+
/* DMA stuff, needed for GPMI/MXS NAND support */
#define CONFIG_APBH_DMA
#define CONFIG_APBH_DMA_BURST