[U-Boot] [U-Boot, v3, 1/3] rockchip: make boot_mode related codes reused across all platforms
Philipp Tomsich
philipp.tomsich at theobroma-systems.com
Mon Nov 20 14:06:10 UTC 2017
> 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 at rock-chips.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v3:
> - add support for rk3188
>
> Changes in v2:
> - correct the rk322x boot mode register address
> - make the help text more clear
>
> arch/arm/include/asm/arch-rockchip/boot_mode.h | 2 ++
> arch/arm/mach-rockchip/Kconfig | 15 ++++++++++++
> arch/arm/mach-rockchip/Makefile | 6 +++++
> arch/arm/mach-rockchip/boot_mode.c | 33 ++++++++++++++++++++++++++
> arch/arm/mach-rockchip/rk3036-board.c | 24 -------------------
> arch/arm/mach-rockchip/rk3188-board.c | 1 +
> arch/arm/mach-rockchip/rk322x-board.c | 24 -------------------
> arch/arm/mach-rockchip/rk3288-board.c | 25 -------------------
> arch/arm/mach-rockchip/rk3399-board.c | 14 +++++++++++
> 9 files changed, 71 insertions(+), 73 deletions(-)
> create mode 100644 arch/arm/mach-rockchip/boot_mode.c
> create mode 100644 arch/arm/mach-rockchip/rk3399-board.c
>
Acked-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
More information about the U-Boot
mailing list