]> git.sur5r.net Git - u-boot/commitdiff
rockchip: firefly: Save the environment on SD card
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Fri, 18 Sep 2015 21:49:12 +0000 (23:49 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 1 Dec 2015 15:07:22 +0000 (08:07 -0700)
Save the environment on the SD card for Firefly in the empty space
between the SPL and the u-boot image.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Acked-by: Simon Glass <sjg@chromium.org>
include/configs/chromebook_jerry.h
include/configs/firefly-rk3288.h
include/configs/rk3288_common.h

index a22b123be6d4a717694d0039059d9fdd93f16460..058325c0b4941237e000b92053ee3f3377ebd4b3 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <configs/rk3288_common.h>
 
+#define CONFIG_ENV_IS_NOWHERE
 #define CONFIG_SPL_SPI_SUPPORT
 #define CONFIG_SPL_SPI_FLASH_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
index a82adc852d17f62a7a9a3bc2821dcb931ee98491..4c5c4ddefd5b21e2b185cc33bde08727384e47b0 100644 (file)
 
 #define CONFIG_SPL_MMC_SUPPORT
 
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_MMC_ENV_DEV 0
+/* SPL @ 32k for ~36k
+ * ENV @ 96k
+ * u-boot @ 128K
+ */
+#define CONFIG_ENV_OFFSET (96 * 1024)
+
 #endif
index 56f72a97731eb1a5718195bf4d4b770decfc5373..a513ac4f04bc550efe397fb5ccf3e0abe7ee0a05 100644 (file)
@@ -11,7 +11,6 @@
 
 #define CONFIG_SYS_NO_FLASH
 #define CONFIG_NR_DRAM_BANKS           1
-#define CONFIG_ENV_IS_NOWHERE
 #define CONFIG_ENV_SIZE                        0x2000
 #define CONFIG_SYS_MAXARGS             16
 #define CONFIG_BAUDRATE                        115200