From: Siva Durga Prasad Paladugu Date: Thu, 10 Mar 2016 10:57:41 +0000 (+0530) Subject: arm: Kconfig: Enable Zynq GPIO driver using kconfig X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cad79a9daf8f89b2a0d9c6e9dfc84782e36e6cc6;p=thirdparty%2Fu-boot.git arm: Kconfig: Enable Zynq GPIO driver using kconfig Enable DM GPIO and ZYNQ GPIO using kconfig instead of the board config file Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index e4d79444ab8..306323f7345 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -555,6 +555,7 @@ config ARCH_ZYNQ select SPL_OF_CONTROL if SPL select DM select DM_ETH + select DM_GPIO select SPL_DM if SPL select DM_MMC select DM_SPI diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index e60e9fd86c3..99c30cdaa0c 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -83,4 +83,11 @@ config VYBRID_GPIO help Say yes here to support Vybrid vf610 GPIOs. +config ZYNQ_GPIO + bool "Zynq GPIO driver" + depends on DM_GPIO && ARCH_ZYNQ + default y + help + Supports GPIO access on Zynq SoC. + endmenu diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index b993d598043..7c7195cbbb3 100644 --- a/include/configs/zynq-common.h +++ b/include/configs/zynq-common.h @@ -39,9 +39,6 @@ #define CONFIG_ARM_DCC #define CONFIG_ZYNQ_SERIAL -#define CONFIG_ZYNQ_GPIO -#define CONFIG_DM_GPIO - /* Ethernet driver */ #if defined(CONFIG_ZYNQ_GEM) # define CONFIG_MII