]> git.ipfire.org Git - people/ms/u-boot.git/commit - include/configs/rk3036_common.h
rockchip: add boot-mode support for rk3288, rk3036
authorJacob Chen <jacob2.chen@rock-chips.com>
Mon, 19 Sep 2016 10:46:28 +0000 (18:46 +0800)
committerSimon Glass <sjg@chromium.org>
Sun, 2 Oct 2016 00:36:55 +0000 (18:36 -0600)
commit67171e13a3e0665b18c657a6704a22ca7900f4c3
tree0924777d9ee7054c55114050d32e06a033814291
parentf48f2b729bf891aa6c1f752d5f8e06e44dd8b0b4
rockchip: add boot-mode support for rk3288, rk3036

rockchip platform have a protocol to pass the the kernel reboot mode to bootloader
by some special registers when system reboot. In bootloader we should read it and take action.

We can only setup boot_mode in board_late_init becasue "setenv" need env setuped.
So add CONFIG_BOARD_LATE_INIT to common header and use a entry "rk_board_late_init"
to replace "board_late_init" in board file.

Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/arm/include/asm/arch-rockchip/boot_mode.h [new file with mode: 0644]
arch/arm/mach-rockchip/rk3036-board.c
arch/arm/mach-rockchip/rk3288-board.c
board/rockchip/kylin_rk3036/kylin_rk3036.c
include/configs/kylin_rk3036.h
include/configs/rk3036_common.h
include/configs/rk3288_common.h