[U-Boot] [PATCH V2] ARM: tegra: refactor common Kconfig options

From: Stephen Warren swarren@nvidia.com
This makes it easier to select common options in a single place, rather than having to add them separately for different SoCs or architectures.
The lists of select statements are now also sorted for easy searching.
Signed-off-by: Stephen Warren swarren@nvidia.com Reviewed-by: Simon Glass sjg@chromium.org --- v2: Rebase on latest Kconfig changes in u-boot/master. --- arch/arm/mach-tegra/Kconfig | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-)
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig index de2454e691d2..75b9208a33e3 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig @@ -1,18 +1,27 @@ if TEGRA
-config TEGRA_ARMV7_COMMON - bool "Tegra 32-bit" - select SUPPORT_SPL - select SPL - select OF_CONTROL - select CPU_V7 +config TEGRA_COMMON + bool "Tegra common options" select DM - select DM_SPI_FLASH - select DM_SERIAL - select DM_I2C - select DM_SPI select DM_GPIO + select DM_I2C select DM_KEYBOARD + select DM_SERIAL + select DM_SPI + select DM_SPI_FLASH + select OF_CONTROL + +config TEGRA_ARMV7_COMMON + bool "Tegra 32-bit common options" + select CPU_V7 + select SPL + select SUPPORT_SPL + select TEGRA_COMMON + +config TEGRA_ARMV8_COMMON + bool "Tegra 64-bit common options" + select ARM64 + select TEGRA_COMMON
choice prompt "Tegra SoC select" @@ -36,14 +45,7 @@ config TEGRA124
config TEGRA210 bool "Tegra210 family" - select OF_CONTROL - select ARM64 - select DM - select DM_SPI_FLASH - select DM_SERIAL - select DM_I2C - select DM_SPI - select DM_GPIO + select TEGRA_ARMV8_COMMON
endchoice

Hi,
On 23 November 2015 at 10:32, Stephen Warren swarren@wwwdotorg.org wrote:
From: Stephen Warren swarren@nvidia.com
This makes it easier to select common options in a single place, rather than having to add them separately for different SoCs or architectures.
The lists of select statements are now also sorted for easy searching.
Signed-off-by: Stephen Warren swarren@nvidia.com Reviewed-by: Simon Glass sjg@chromium.org
v2: Rebase on latest Kconfig changes in u-boot/master.
arch/arm/mach-tegra/Kconfig | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-)
Acked-by: Simon Glass sjg@chromium.org
I plan to pick this up along with the driver model PCI series for Tegra. Tom please let me know if you would rather grab this.
Regards, Simon

On Mon, Nov 23, 2015 at 11:38:30AM -0700, Simon Glass wrote:
Hi,
On 23 November 2015 at 10:32, Stephen Warren swarren@wwwdotorg.org wrote:
From: Stephen Warren swarren@nvidia.com
This makes it easier to select common options in a single place, rather than having to add them separately for different SoCs or architectures.
The lists of select statements are now also sorted for easy searching.
Signed-off-by: Stephen Warren swarren@nvidia.com Reviewed-by: Simon Glass sjg@chromium.org
v2: Rebase on latest Kconfig changes in u-boot/master.
arch/arm/mach-tegra/Kconfig | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-)
Acked-by: Simon Glass sjg@chromium.org
I plan to pick this up along with the driver model PCI series for Tegra. Tom please let me know if you would rather grab this.
Works for me, thanks.

Simon,
-----Original Message----- From: Tom Rini [mailto:trini@konsulko.com] Sent: Monday, November 23, 2015 12:08 PM To: Simon Glass sjg@chromium.org Cc: Stephen Warren swarren@wwwdotorg.org; U-Boot Mailing List <u- boot@lists.denx.de>; Tom Warren TWarren@nvidia.com; Stephen Warren swarren@nvidia.com Subject: Re: [PATCH V2] ARM: tegra: refactor common Kconfig options
- PGP Signed by an unknown key
On Mon, Nov 23, 2015 at 11:38:30AM -0700, Simon Glass wrote:
Hi,
On 23 November 2015 at 10:32, Stephen Warren swarren@wwwdotorg.org
wrote:
From: Stephen Warren swarren@nvidia.com
This makes it easier to select common options in a single place, rather than having to add them separately for different SoCs or
architectures.
The lists of select statements are now also sorted for easy searching.
Signed-off-by: Stephen Warren swarren@nvidia.com Reviewed-by: Simon Glass sjg@chromium.org
v2: Rebase on latest Kconfig changes in u-boot/master.
arch/arm/mach-tegra/Kconfig | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-)
Acked-by: Simon Glass sjg@chromium.org
I plan to pick this up along with the driver model PCI series for Tegra. Tom please let me know if you would rather grab this.
Works for me, thanks.
If you (perhaps) meant me (for Tegra), it also works for me to have this go in via DM. ;)
Thanks
Tom -- nvpublic
-- Tom
- Unknown Key
- 0x56D6FECD

On Mon, Nov 23, 2015 at 07:40:25PM +0000, Tom Warren wrote:
Simon,
-----Original Message----- From: Tom Rini [mailto:trini@konsulko.com] Sent: Monday, November 23, 2015 12:08 PM To: Simon Glass sjg@chromium.org Cc: Stephen Warren swarren@wwwdotorg.org; U-Boot Mailing List <u- boot@lists.denx.de>; Tom Warren TWarren@nvidia.com; Stephen Warren swarren@nvidia.com Subject: Re: [PATCH V2] ARM: tegra: refactor common Kconfig options
- PGP Signed by an unknown key
On Mon, Nov 23, 2015 at 11:38:30AM -0700, Simon Glass wrote:
Hi,
On 23 November 2015 at 10:32, Stephen Warren swarren@wwwdotorg.org
wrote:
From: Stephen Warren swarren@nvidia.com
This makes it easier to select common options in a single place, rather than having to add them separately for different SoCs or
architectures.
The lists of select statements are now also sorted for easy searching.
Signed-off-by: Stephen Warren swarren@nvidia.com Reviewed-by: Simon Glass sjg@chromium.org
v2: Rebase on latest Kconfig changes in u-boot/master.
arch/arm/mach-tegra/Kconfig | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-)
Acked-by: Simon Glass sjg@chromium.org
I plan to pick this up along with the driver model PCI series for Tegra. Tom please let me know if you would rather grab this.
Works for me, thanks.
If you (perhaps) meant me (for Tegra), it also works for me to have this go in via DM. ;)
oops, thanks :)
participants (4)
-
Simon Glass
-
Stephen Warren
-
Tom Rini
-
Tom Warren