]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit6ce5b2397c23a046072c1092cc786aca19800617
tree1dc5a165f762ecec55797c3f26efa085066e3661
parent0baa6772e378d9287b42aa81b20bc047dad8586d
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]