summaryrefslogtreecommitdiff
path: root/include/configs/rockchip-common.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-02-11 10:38:21 -0500
committerTom Rini <trini@konsulko.com>2017-02-11 10:38:21 -0500
commitb16f6804b4378c6d2f6b05ece0d3ae1c36ac4308 (patch)
tree741f5604aeb9edc636cdf36f62bed3d83e004f08 /include/configs/rockchip-common.h
parentf1cc97764be4383d2aeb56d5ba5415439a1d5c97 (diff)
parent6f2797645562e85c407aab3e9a757bfd61a027fe (diff)
downloadu-boot-b16f6804b4378c6d2f6b05ece0d3ae1c36ac4308.tar.gz
Merge git://git.denx.de/u-boot-rockchip
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 9e71b3f78d..fd930c101e 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_ */