]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
am335x_evm: Add support for eMMC environment
authorJustin Waters <justin.waters@timesys.com>
Thu, 11 Jul 2013 13:55:02 +0000 (09:55 -0400)
committerTom Rini <trini@ti.com>
Tue, 30 Jul 2013 13:21:42 +0000 (09:21 -0400)
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>
include/configs/am335x_evm.h

index 049a8e4265e6f152022d7c74c1956549a021e882..e32066d786500b9953dc6ec1ddf4ec9e10a7814f 100644 (file)
                                        "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