summaryrefslogtreecommitdiff
path: root/include/configs/rockchip-common.h
diff options
context:
space:
mode:
authorJacob Chen <jacob2.chen@rock-chips.com>2017-01-17 04:19:38 (GMT)
committerSimon Glass <sjg@chromium.org>2017-02-09 19:10:59 (GMT)
commit3d1bf166bf1ea93bbf19cd26b25fdcfe805aa58d (patch)
treea4fc7c1845177cb2b7cf4b0cda64510d8fc10d4d /include/configs/rockchip-common.h
parentf568ac219c8db716df1726b383a70553407ca77e (diff)
downloadu-boot-3d1bf166bf1ea93bbf19cd26b25fdcfe805aa58d.tar.xz
rockchip: configs: move env offset to common header
To reduce redundant code. Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/configs/rockchip-common.h')
-rw-r--r--include/configs/rockchip-common.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h
index 9e71b3f..fd930c1 100644
--- a/include/configs/rockchip-common.h
+++ b/include/configs/rockchip-common.h
@@ -31,4 +31,18 @@
#endif
+#ifdef CONFIG_ROCKCHIP_SPL_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
+ */
+#define CONFIG_ENV_OFFSET (96 * 1024)
+#endif
+
#endif /* _ROCKCHIP_COMMON_H_ */