summaryrefslogtreecommitdiffstats
path: root/include/configs/omap5_uevm.h
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-04-05 06:21:45 +0000
committerTom Rini <trini@ti.com>2013-04-08 11:40:56 -0400
commit9552ee3ea96e650eb8aecd9ff8cce7dd6db7bb5f (patch)
tree1c2505bb2bde4282e51ed001f7831da62ac1c07d /include/configs/omap5_uevm.h
parentc3d2c24f6cebd115cdc577e13520045a30ca5dc6 (diff)
downloadblackbird-obmc-uboot-9552ee3ea96e650eb8aecd9ff8cce7dd6db7bb5f.tar.gz
blackbird-obmc-uboot-9552ee3ea96e650eb8aecd9ff8cce7dd6db7bb5f.zip
omap5_uevm.h: Move uEVM-specific choices to omap5_uevm.h
The omap5_uevm platform has eMMC, and it makes sense to say that our default env storage shall reside there. Other platforms may not, so move this choice to the EVM config. In addition, we should provide some way to partition the flash for later usage, so take advantage of the GPT partition table support code and allow that to be setup with some reasonable defaults. Cc: Sricharan R <r.sricharan@ti.com> Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'include/configs/omap5_uevm.h')
-rw-r--r--include/configs/omap5_uevm.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/configs/omap5_uevm.h b/include/configs/omap5_uevm.h
index 22a8e13f48..e490523d6e 100644
--- a/include/configs/omap5_uevm.h
+++ b/include/configs/omap5_uevm.h
@@ -28,6 +28,12 @@
#ifndef __CONFIG_OMAP5_EVM_H
#define __CONFIG_OMAP5_EVM_H
+/* Define the default GPT table for eMMC */
+#define PARTS_DEFAULT \
+ "uuid_disk=${uuid_gpt_disk};" \
+ "name=u-boot,size=1792KiB,uuid=${uuid_gpt_u-boot};" \
+ "name=rootfs,size=-,uuid=${uuid_gpt_rootfs}"
+
#include <configs/omap5_common.h>
/* TWL6035 */
@@ -35,6 +41,18 @@
#define CONFIG_TWL6035_POWER
#endif
+/* MMC ENV related defines */
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_MMC_ENV_DEV 1 /* SLOT2: eMMC(1) */
+#define CONFIG_ENV_OFFSET 0xE0000
+#define CONFIG_CMD_SAVEENV
+
+/* Enhance our eMMC support / experience. */
+#define CONFIG_CMD_GPT
+#define CONFIG_EFI_PARTITION
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_CMD_PART
+
#define CONFIG_SYS_PROMPT "OMAP5430 EVM # "
#endif /* __CONFIG_OMAP5_EVM_H */
OpenPOWER on IntegriCloud