ARM: tegra: convert CONFIG_TEGRA_GPIO to Kconfig
Future chips will contain different GPIO HW. This change will enable future SoC support to select the appropriate GPIO driver for their HW, in a future-looking fashion, using Kconfig. TEGRA_GPIO is not simply selected by TEGRA_COMMON (even though all current Tegra chips used this GPIO HW) to simplify the later addition of support for Tegra SoCs that use different GPIO HW. Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
This commit is contained in:
parent
e6bf0ca0e2
commit
601800be22
@ -22,6 +22,7 @@ config TEGRA_ARMV7_COMMON
|
|||||||
select SPL
|
select SPL
|
||||||
select SUPPORT_SPL
|
select SUPPORT_SPL
|
||||||
select TEGRA_COMMON
|
select TEGRA_COMMON
|
||||||
|
select TEGRA_GPIO
|
||||||
|
|
||||||
config TEGRA_ARMV8_COMMON
|
config TEGRA_ARMV8_COMMON
|
||||||
bool "Tegra 64-bit common options"
|
bool "Tegra 64-bit common options"
|
||||||
@ -50,6 +51,7 @@ config TEGRA124
|
|||||||
|
|
||||||
config TEGRA210
|
config TEGRA210
|
||||||
bool "Tegra210 family"
|
bool "Tegra210 family"
|
||||||
|
select TEGRA_GPIO
|
||||||
select TEGRA_ARMV8_COMMON
|
select TEGRA_ARMV8_COMMON
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
@ -109,6 +109,13 @@ config SANDBOX_GPIO_COUNT
|
|||||||
of 'anonymous' GPIOs that do not belong to any device or bank.
|
of 'anonymous' GPIOs that do not belong to any device or bank.
|
||||||
Select a suitable value depending on your needs.
|
Select a suitable value depending on your needs.
|
||||||
|
|
||||||
|
config TEGRA_GPIO
|
||||||
|
bool "Tegra20..210 GPIO driver"
|
||||||
|
depends on DM_GPIO
|
||||||
|
help
|
||||||
|
Support for the GPIO controller contained in NVIDIA Tegra20 through
|
||||||
|
Tegra210.
|
||||||
|
|
||||||
config GPIO_UNIPHIER
|
config GPIO_UNIPHIER
|
||||||
bool "UniPhier GPIO"
|
bool "UniPhier GPIO"
|
||||||
depends on ARCH_UNIPHIER
|
depends on ARCH_UNIPHIER
|
||||||
|
@ -111,7 +111,6 @@
|
|||||||
CONFIG_SYS_INIT_RAM_SIZE - \
|
CONFIG_SYS_INIT_RAM_SIZE - \
|
||||||
GENERATED_GBL_DATA_SIZE)
|
GENERATED_GBL_DATA_SIZE)
|
||||||
|
|
||||||
#define CONFIG_TEGRA_GPIO
|
|
||||||
#define CONFIG_CMD_ENTERRCM
|
#define CONFIG_CMD_ENTERRCM
|
||||||
|
|
||||||
/* Defines for SPL */
|
/* Defines for SPL */
|
||||||
|
Loading…
Reference in New Issue
Block a user