From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philipp Tomsich Date: Tue, 07 Nov 2017 15:18:48 +0100 Subject: [U-Boot] [U-Boot, v5, 15/18] rockchip: rk3188: use boot0 hook to load up SPL in 2 steps In-Reply-To: <1507645279-25188-16-git-send-email-philipp.tomsich@theobroma-systems.com> References: <1507645279-25188-16-git-send-email-philipp.tomsich@theobroma-systems.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > For the RK3188, the BROM will attempt to load up the first stage > image (SPL for the RK3188) in two steps: first 1KB to offset 0x800 > in the SRAM and then the remainder to offset 0xc00 in the SRAM. > It always enters at 0x804, though. > > With this changeset, the RK3188 boot removes the TPL (stub) stage and > builds a single SPL binary that utilizes the early back-to-bootrom via > the boot0-hook. > > Consequently, the passing of the saved boot params via pmu->os_reg[2] > is also removed. > > Signed-off-by: Philipp Tomsich > --- > > Changes in v5: None > Changes in v4: > - after merging the 'back-to-bootrom' series with the 'boot0-hook' > series, this drops the TPL stub and builds only a single SPL image > that uses the 'early back-to-bootrom' logic originally implemented > by Pawel for the RK3066. > - changes the SPL_STACK_BASE to +0x800 (from +0x804), as the boot0 > hook already reserves the space for the SPL magic (previously > inserted by mkimage) > > Changes in v3: None > Changes in v2: > - [added in v2] chain back_to_bootrom calls for SPL, first returning > to the TPL (using the same mechanism) and the to the BROM from the > TPL > > arch/arm/mach-rockchip/Kconfig | 2 +- > arch/arm/mach-rockchip/Makefile | 1 - > arch/arm/mach-rockchip/rk3188-board-spl.c | 10 ---- > arch/arm/mach-rockchip/rk3188-board-tpl.c | 86 ------------------------------- > doc/README.rockchip | 10 ++-- > include/configs/rk3188_common.h | 12 ++--- > 6 files changed, 9 insertions(+), 112 deletions(-) > delete mode 100644 arch/arm/mach-rockchip/rk3188-board-tpl.c > Applied to u-boot-rockchip/next, thanks!