]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
rockchip: config: sync the ENV offset from rockchip legacy U-Boot
authorKever Yang <kever.yang@rock-chips.com>
Tue, 31 Oct 2017 07:52:19 +0000 (15:52 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 7 Nov 2017 08:16:56 +0000 (09:16 +0100)
Using the ENV offset from rockchip legacy U-Boot for all SoCs,
the offset is 4MB-32KB

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
include/configs/rockchip-common.h

index 96b5fce46f24e7dbc02961b54502936cb3423216..3fc1b7153b7fe66985289ca05907829dc57c1840 100644 (file)
 
 #endif
 
-#if CONFIG_IS_ENABLED(ROCKCHIP_BACK_TO_BROM)
-/* SPL @ 32k for 34k
- * u-boot directly after @ 68k for 400k or so
- * ENV @ 992k
- */
-#define CONFIG_ENV_OFFSET ((1024-32) * 1024)
-#else
-/* SPL @ 32k for ~36k
- * ENV @ 96k
- * u-boot @ 128K
+/*
+ * Rockchip SoCs use fixed ENV 32KB@(4MB-32KB)
  */
-#define CONFIG_ENV_OFFSET (96 * 1024)
-#endif
+#define CONFIG_ENV_OFFSET      (SZ_4M - SZ_32K)
 
 #define CONFIG_DISPLAY_BOARDINFO_LATE