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>
This commit is contained in:
Jeffy Chen
2015-11-17 14:20:30 +08:00
committed by Simon Glass
parent 6ae5860942
commit 3641339eff
4 changed files with 14 additions and 17 deletions

View File

@ -14,7 +14,7 @@
#include "rkcommon.h"
enum {
RKSPI_SPL_HDR_START = RK_CODE1_OFFSET * RK_BLK_SIZE,
RKSPI_SPL_HDR_START = RK_INIT_OFFSET * RK_BLK_SIZE,
RKSPI_SPL_START = RKSPI_SPL_HDR_START + 4,
RKSPI_HEADER_LEN = RKSPI_SPL_START,
RKSPI_SECT_LEN = RK_BLK_SIZE * 4,