summaryrefslogtreecommitdiff
path: root/tools/rkcommon.h
diff options
context:
space:
mode:
authorJeffy Chen <jeffy.chen@rock-chips.com>2015-11-17 14:20:30 +0800
committerSimon Glass <sjg@chromium.org>2015-12-01 08:07:22 -0700
commit3641339eff7d45342a5d3443ed7c057c5c62ae29 (patch)
treee6f2b5f2a2de0de5e9192e6bbe8b3eebfcb99ba2 /tools/rkcommon.h
parent6ae5860942f4eb053e9b8c7e2673eaa7d648082d (diff)
downloadu-boot-imx-3641339eff7d45342a5d3443ed7c057c5c62ae29.zip
u-boot-imx-3641339eff7d45342a5d3443ed7c057c5c62ae29.tar.gz
u-boot-imx-3641339eff7d45342a5d3443ed7c057c5c62ae29.tar.bz2
rockchip: Add support for rk's second level loader
The Rockchip boot ROM could load & run an initial spl loader, and continue to load a second level boot-loader(which stored right after the initial loader) when it returns. Modify idblock generation code to support it. Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/rkcommon.h')
-rw-r--r--tools/rkcommon.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/rkcommon.h b/tools/rkcommon.h
index 39b1d52..0fc1e96 100644
--- a/tools/rkcommon.h
+++ b/tools/rkcommon.h
@@ -10,7 +10,8 @@
enum {
RK_BLK_SIZE = 512,
- RK_CODE1_OFFSET = 4,
+ RK_INIT_OFFSET = 4,
+ RK_MAX_BOOT_SIZE = 512 << 10,
};
/**