aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam Ford <aford173@gmail.com>2017-09-17 20:43:47 -0500
committerTom Rini <trini@konsulko.com>2017-09-29 10:52:22 -0400
commitf4fad7161242b62ad1c79a2dfe558d1598e2e6e6 (patch)
tree4358aa47a7c1c1909a36ae52647c97079569f549 /include
parenta4670f8ebb5b4df6afeb5155fb5b44c1d1d154b9 (diff)
downloadu-boot-f4fad7161242b62ad1c79a2dfe558d1598e2e6e6.zip
u-boot-f4fad7161242b62ad1c79a2dfe558d1598e2e6e6.tar.gz
u-boot-f4fad7161242b62ad1c79a2dfe558d1598e2e6e6.tar.bz2
arm: da850-evm: Enable MTD Parts in SPI Flash
There is a discrepency between U-Boot and Linux on the partition map. This enabes the MTD parts to pass MTD partition information from U-Boot to Linux. Linux already has a pending patch to enable MTD PARTS in davinci_all_defconfig Reviewed-by: Jagan Teki <jagan@openedev.com> Signed-off-by: Adam Ford <aford173@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/da850evm.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/configs/da850evm.h b/include/configs/da850evm.h
index d383c23..0bdf0cb 100644
--- a/include/configs/da850evm.h
+++ b/include/configs/da850evm.h
@@ -249,6 +249,17 @@
#define CONFIG_ENV_SIZE (64 << 10)
#define CONFIG_ENV_OFFSET (512 << 10)
#define CONFIG_ENV_SECT_SIZE (64 << 10)
+#ifdef CONFIG_SPL_BUILD
+#undef CONFIG_SPI_FLASH_MTD
+#endif
+#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
+#define CONFIG_MTD_PARTITIONS /* required for UBI partition support */
+#define MTDIDS_DEFAULT "nor0=spi0.0"
+#define MTDPARTS_DEFAULT "mtdparts=spi0.0:"\
+ "512k(u-boot.ais),"\
+ "64k(u-boot-env),"\
+ "7552k(kernel-spare),"\
+ "64k(MAC-Address)"
#endif
/*