summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJustin Waters <justin.waters@timesys.com>2013-07-11 09:55:02 -0400
committerTom Rini <trini@ti.com>2013-07-30 09:21:42 -0400
commit8c6ede1fd21d4c132aba31a0f1cef2a478bafe96 (patch)
treefdddf93aff20be33d263d6153c73ec9ab9dd2cb3 /include
parent341d2c0e13d8bb177504b7ca16f2e6f555f78d4f (diff)
downloadtalos-obmc-uboot-8c6ede1fd21d4c132aba31a0f1cef2a478bafe96.tar.gz
talos-obmc-uboot-8c6ede1fd21d4c132aba31a0f1cef2a478bafe96.zip
am335x_evm: Add support for eMMC environment
Some boards, such as the BeagleBone Black, have an eMMC chip intstead of NAND. We can use the eMMC boot partition to store the environment, since it isn't used for anything else. This allows us to have a configurable environment on those boards. Signed-off-by: Justin Waters <justin.waters@timesys.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/am335x_evm.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 049a8e4265..e32066d786 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -502,7 +502,12 @@
"512k(u-boot),128k(u-boot-env1)," \
"128k(u-boot-env2),3464k(kernel)," \
"-(rootfs)"
-#endif /* SPI support */
+#elif defined(CONFIG_EMMC_BOOT)
+#undef CONFIG_ENV_IS_NOWHERE
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_MMC_ENV_DEV 1
+#define CONFIG_SYS_MMC_ENV_PART 2
+#endif
/* Unsupported features */
#undef CONFIG_USE_IRQ
OpenPOWER on IntegriCloud