rockchip: make boot_mode related codes reused across all platforms
authorAndy Yan <andy.yan@rock-chips.com>
Wed, 11 Oct 2017 07:00:16 +0000 (15:00 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 21 Nov 2017 22:57:23 +0000 (23:57 +0100)
commite3067793c3109744a445f692395b9a3bac778e48
tree1dc5a165f762ecec55797c3f26efa085066e3661
parent11f12c17d72499292f6e219ebbf8062faedcc5bb
rockchip: make boot_mode related codes reused across all platforms

setup_boot_mode function use the same logic but different
mode register address across all the rockchip platforms,
so it's better to make this function reused across all the
platforms, and let the mode register address setting from
the config file.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
arch/arm/include/asm/arch-rockchip/boot_mode.h
arch/arm/mach-rockchip/Kconfig
arch/arm/mach-rockchip/Makefile
arch/arm/mach-rockchip/boot_mode.c [new file with mode: 0644]
arch/arm/mach-rockchip/rk3036-board.c
arch/arm/mach-rockchip/rk3188-board.c
arch/arm/mach-rockchip/rk322x-board.c
arch/arm/mach-rockchip/rk3288-board.c
arch/arm/mach-rockchip/rk3399-board.c [new file with mode: 0644]