summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorDerald D. Woods <woods.technical@gmail.com>2018-02-26 17:52:57 -0600
committerTom Rini <trini@konsulko.com>2018-03-13 21:59:27 -0400
commitebf6e265ac62a4fbcd05e0b82edf4f1cce9c8fa0 (patch)
tree6a8fd9ff840789eb1a43ebb39ab5601fd39b7c7f /board
parent2c9afab9ac17cb1d7c0861ec6d3f078e878dce13 (diff)
ARM: omap3: beagle: Set 'mtdids' and 'mtdparts' in board file
BeagleBoard 'xM' does not really have NAND. CONFIG_MTDIDS_DEFAULT and CONFIG_MTDPARTS_DEFAULT can/should be empty for 'xM'. This commit sets the defined values if they exist. Signed-off-by: Derald D. Woods <woods.technical@gmail.com>
Diffstat (limited to 'board')
-rw-r--r--board/ti/beagle/beagle.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
index d8402f26752..1d552647335 100644
--- a/board/ti/beagle/beagle.c
+++ b/board/ti/beagle/beagle.c
@@ -521,6 +521,14 @@ int misc_init_r(void)
if (generate_fake_mac)
omap_die_id_usbethaddr();
+#if defined(CONFIG_MTDIDS_DEFAULT) && defined(CONFIG_MTDPARTS_DEFAULT)
+ if (strlen(CONFIG_MTDIDS_DEFAULT))
+ env_set("mtdids", CONFIG_MTDIDS_DEFAULT);
+
+ if (strlen(CONFIG_MTDPARTS_DEFAULT))
+ env_set("mtdparts", CONFIG_MTDPARTS_DEFAULT);
+#endif
+
return 0;
}