]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
configs: dragonboard410c: Save environment data on eMMC
authorJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Mon, 6 Nov 2017 13:16:38 +0000 (14:16 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 17 Nov 2017 12:44:13 +0000 (07:44 -0500)
Save the environment data at the end of the boot partition on emmc

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
arch/arm/dts/dragonboard410c-uboot.dtsi
configs/dragonboard410c_defconfig
include/configs/dragonboard410c.h

index cc2c175e847002aa2b5054efc951ee8cccc6aa22..c3475c422767bb7da7d23e311c404b0097766ce5 100644 (file)
@@ -6,6 +6,13 @@
  * SPDX-License-Identifier:    GPL-2.0+
  */
 
+/ {
+       config {
+               u-boot,mmc-env-partition = "boot";
+       };
+};
+
+
 &pm8916_gpios {
        usb_hub_reset_pm {
                gpios = <&pm8916_gpios 2 0>;
index a85aa74207b5b6d144fcb9af18b86f4786f42cff..4c04544d0715890501f01658ec09b670ddb74efd 100644 (file)
@@ -43,3 +43,5 @@ CONFIG_USB_ETHER_ASIX88179=y
 CONFIG_USB_ETHER_MCS7830=y
 CONFIG_USB_ETHER_SMSC95XX=y
 CONFIG_OF_LIBFDT_OVERLAY=y
+CONFIG_OF_CONTROL=y
+CONFIG_ENV_IS_IN_MMC=y
index 6b5d59d36352b6b84b10f867a43470cfa8e64149..d2447b27d8adcdf26fe6373823007a331fbc6928 100644 (file)
@@ -100,6 +100,7 @@ REFLASH(dragonboard/u-boot.img, 8)\
        BOOTENV
 
 #define CONFIG_ENV_SIZE                        0x2000
+#define CONFIG_SYS_MMC_ENV_DEV         0       /* mmc0 = emmc, mmc1 = sd */
 #define CONFIG_ENV_VARS_UBOOT_CONFIG
 
 /* Size of malloc() pool */