summaryrefslogtreecommitdiff
path: root/include/configs/colibri_t20.h
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-08-05 22:47:07 (GMT)
committerTom Warren <twarren@nvidia.com>2015-08-13 20:06:02 (GMT)
commit8c6dcbb63236b4feaf437374637bd977d0072822 (patch)
tree50ccef191ac04ce70eff03a9881230f34d9bac8f /include/configs/colibri_t20.h
parentadf4800d8570a1212be329ab6fcead4c284ede89 (diff)
downloadu-boot-fsl-qoriq-8c6dcbb63236b4feaf437374637bd977d0072822.tar.xz
colibri_t20: enable mtdparts support
Enable mtdparts aka dynamic MTD partition support. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'include/configs/colibri_t20.h')
-rw-r--r--include/configs/colibri_t20.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/configs/colibri_t20.h b/include/configs/colibri_t20.h
index b347935..d0585f6 100644
--- a/include/configs/colibri_t20.h
+++ b/include/configs/colibri_t20.h
@@ -62,6 +62,17 @@
#define CONFIG_TEGRA_NAND
#define CONFIG_SYS_MAX_NAND_DEVICE 1
+/* 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=tegra_nand"
+#define MTDPARTS_DEFAULT "mtdparts=tegra_nand:" \
+ "2m(u-boot)ro," \
+ "1m(u-boot-env)," \
+ "1m(cfgblock)ro," \
+ "-(ubi)"
+
/* Environment in NAND, 64K is a bit excessive but erase block is 512K anyway */
#define CONFIG_ENV_IS_IN_NAND
#define CONFIG_ENV_OFFSET (SZ_2M)
@@ -74,6 +85,9 @@
/* Miscellaneous commands */
#define CONFIG_FAT_WRITE
+#define BOARD_EXTRA_ENV_SETTINGS \
+ "mtdparts=" MTDPARTS_DEFAULT "\0"
+
/* Increase console I/O buffer size */
#undef CONFIG_SYS_CBSIZE
#define CONFIG_SYS_CBSIZE 1024