summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKever Yang <kever.yang@rock-chips.com>2017-07-19 14:56:37 +0300
committerKever Yang <kever.yang@rock-chips.com>2017-07-21 05:28:52 +0300
commit0b5af5ca131c30f916aa96ae64c8f86d4147fcc2 (patch)
tree5c003f3bb74cd5cab95a9ef06bd78d0ede8b492e
parent74b7c2437ed183c9bb11281137f9f82dd763af01 (diff)
downloadu-boot-0b5af5ca131c30f916aa96ae64c8f86d4147fcc2.tar.xz
rockchip: rk3399: correct the env setting
The mmc0(emmc) is the default boot device, so let's use mmc device 0 as default env device. The SPL size in rk3399 is lager than other Rockchip SoC, we need to using a new offset and not to conflict with SPL memory space. Change-Id: I2b2738afda4f6e9340691fef7abb197550ce6fba Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
-rw-r--r--include/configs/evb_rk3399.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/configs/evb_rk3399.h b/include/configs/evb_rk3399.h
index b9fd5b417a..bdb1159854 100644
--- a/include/configs/evb_rk3399.h
+++ b/include/configs/evb_rk3399.h
@@ -10,13 +10,14 @@
#include <configs/rk3399_common.h>
#define CONFIG_ENV_IS_IN_MMC
-#define CONFIG_SYS_MMC_ENV_DEV 1
+#define CONFIG_SYS_MMC_ENV_DEV 0
/*
- * SPL @ 32k for ~36k
- * ENV @ 96k
- * u-boot @ 128K
+ * SPL @ 32k for ~128k
+ * ENV @ 240k
+ * u-boot @ 256K
*/
-#define CONFIG_ENV_OFFSET (96 * 1024)
+#undef CONFIG_ENV_OFFSET
+#define CONFIG_ENV_OFFSET (240 * 1024)
#define SDRAM_BANK_SIZE (2UL << 30)