From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philipp Tomsich Date: Mon, 20 Nov 2017 15:06:10 +0100 Subject: [U-Boot] [U-Boot, v3, 1/3] rockchip: make boot_mode related codes reused across all platforms In-Reply-To: <1507705216-10673-1-git-send-email-andy.yan@rock-chips.com> References: <1507705216-10673-1-git-send-email-andy.yan@rock-chips.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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 > Reviewed-by: Simon Glass > --- > > 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