diff mbox series

[U-Boot,3/8] rockchip: rk3288: move TPL options to generic position

Message ID 20190405083013.5473-4-heiko@sntech.de
State Changes Requested
Delegated to: Kever Yang
Headers show
Series arm-trusted-firmware support for rk3288 | expand

Commit Message

Heiko Stuebner April 5, 2019, 8:30 a.m. UTC
Move the TPL-related options to the generic RK3288 config option
protected by "if TPL" conditionals.

This way board wanting TPL support just need to "select TPL" to
get all necessary options instead of duplicating all of them.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
 arch/arm/mach-rockchip/Kconfig        | 15 +++++++++++++++
 arch/arm/mach-rockchip/rk3288/Kconfig | 15 ---------------
 2 files changed, 15 insertions(+), 15 deletions(-)

Comments

Jagan Teki April 16, 2019, 9:37 a.m. UTC | #1
On Fri, Apr 5, 2019 at 2:04 PM Heiko Stuebner <heiko@sntech.de> wrote:
>
> Move the TPL-related options to the generic RK3288 config option
> protected by "if TPL" conditionals.
>
> This way board wanting TPL support just need to "select TPL" to
> get all necessary options instead of duplicating all of them.
>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> ---

Acked-by: Jagan Teki <jagan@amarulasolutions.com>
diff mbox series

Patch

diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index b9a026abb5..ba11e8a497 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -63,6 +63,21 @@  config ROCKCHIP_RK3288
 	select SPL_BOARD_INIT if SPL
 	select SUPPORT_SPL
 	select SPL
+	select SUPPORT_TPL
+	select ROCKCHIP_BROM_HELPER if TPL
+	select TPL_BOOTROM_SUPPORT if TPL
+	select TPL_CLK if TPL
+	select TPL_DM if TPL
+	select TPL_DRIVERS_MISC_SUPPORT if TPL
+	select TPL_LIBCOMMON_SUPPORT if TPL
+	select TPL_LIBGENERIC_SUPPORT if TPL
+	select TPL_NEEDS_SEPARATE_TEXT_BASE if TPL
+	select TPL_OF_CONTROL if TPL
+	select TPL_OF_PLATDATA if TPL
+	select TPL_RAM if TPL
+	select TPL_REGMAP if TPL
+	select TPL_SERIAL_SUPPORT if TPL
+	select TPL_SYSCON if TPL
 	imply USB_FUNCTION_ROCKUSB
 	imply CMD_ROCKUSB
 	help
diff --git a/arch/arm/mach-rockchip/rk3288/Kconfig b/arch/arm/mach-rockchip/rk3288/Kconfig
index f540b8daec..936faf75ca 100644
--- a/arch/arm/mach-rockchip/rk3288/Kconfig
+++ b/arch/arm/mach-rockchip/rk3288/Kconfig
@@ -98,22 +98,7 @@  config TARGET_POPMETAL_RK3288
 config TARGET_VYASA_RK3288
 	bool "Vyasa-RK3288"
 	select BOARD_LATE_INIT
-	select ROCKCHIP_BROM_HELPER
-	select SUPPORT_TPL
 	select TPL
-	select TPL_BOOTROM_SUPPORT
-	select TPL_CLK
-	select TPL_DM
-	select TPL_DRIVERS_MISC_SUPPORT
-	select TPL_LIBCOMMON_SUPPORT
-	select TPL_LIBGENERIC_SUPPORT
-	select TPL_NEEDS_SEPARATE_TEXT_BASE if SPL
-	select TPL_OF_CONTROL
-	select TPL_OF_PLATDATA
-	select TPL_RAM
-	select TPL_REGMAP
-	select TPL_SERIAL_SUPPORT
-	select TPL_SYSCON
 	help
 	  Vyasa is a RK3288-based development board with 2 USB ports,
 	  HDMI, VGA, micro-SD card, audio, WiFi  and Gigabit Ethernet, It