[U-Boot] [PATCH 08/10] k2g: configs: Add support to save env in MMC

Lokesh Vutla lokeshvutla at ti.com
Wed Mar 9 11:09:37 CET 2016


Adding support to save env in MMC on k2g platforms, as it is the
preferred peripheral in saving env.

Signed-off-by: Lokesh Vutla <lokeshvutla at ti.com>
---
 include/configs/k2g_evm.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/configs/k2g_evm.h b/include/configs/k2g_evm.h
index ba084c1..2c70df1 100644
--- a/include/configs/k2g_evm.h
+++ b/include/configs/k2g_evm.h
@@ -61,6 +61,12 @@
 #define CONFIG_OMAP_HSMMC
 #define CONFIG_CMD_MMC
 
+#undef CONFIG_ENV_IS_IN_NAND
+#define CONFIG_ENV_IS_IN_FAT
+#define FAT_ENV_INTERFACE		"mmc"
+#define FAT_ENV_DEVICE_AND_PART		"0:1"
+#define FAT_ENV_FILE			"uboot.env"
+
 #define CONFIG_SF_DEFAULT_BUS		1
 #define CONFIG_SF_DEFAULT_CS		0
 
-- 
2.1.4



More information about the U-Boot mailing list