[U-Boot] [PATCH 1/3] rockchip: make boot_mode releated codes reused across all platforms
Simon Glass
sjg at chromium.org
Wed Sep 13 04:26:31 UTC 2017
On 12 September 2017 at 07:57, Andy Yan <andy.yan at rock-chips.com> wrote:
> 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>
>
> ---
>
> arch/arm/include/asm/arch-rockchip/boot_mode.h | 2 ++
> arch/arm/mach-rockchip/Kconfig | 14 +++++++++++
> arch/arm/mach-rockchip/Makefile | 5 +++-
> arch/arm/mach-rockchip/boot_mode.c | 33 ++++++++++++++++++++++++++
> arch/arm/mach-rockchip/rk3036-board.c | 24 -------------------
> arch/arm/mach-rockchip/rk322x-board.c | 24 -------------------
> arch/arm/mach-rockchip/rk3288-board.c | 25 -------------------
> arch/arm/mach-rockchip/rk3399-board.c | 14 +++++++++++
> 8 files changed, 67 insertions(+), 74 deletions(-)
> create mode 100644 arch/arm/mach-rockchip/boot_mode.c
> create mode 100644 arch/arm/mach-rockchip/rk3399-board.c
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list