summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>2016-03-10 16:27:39 +0530
committerMichal Simek <michal.simek@xilinx.com>2016-04-13 18:29:06 +0200
commit2978ae23fa252659ccfae9c794105a5d7e1ffc76 (patch)
treed33fcf8bbbf74056711dcf677fdd29d7f9688bb9
parent68c7026e8d410295bc281128d8c14edef291461d (diff)
downloadtalos-obmc-uboot-2978ae23fa252659ccfae9c794105a5d7e1ffc76.tar.gz
talos-obmc-uboot-2978ae23fa252659ccfae9c794105a5d7e1ffc76.zip
gpio: 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 <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r--arch/arm/Kconfig1
-rw-r--r--drivers/gpio/Kconfig7
-rw-r--r--include/configs/zynq-common.h2
3 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index c8e0337893..802d3b430c 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -579,6 +579,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 f56a60621f..4d2cc500bf 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -136,4 +136,11 @@ config MVEBU_GPIO
help
Say yes here to support Marvell MVEBU (Armada XP/38x) 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 c96b9c5250..49d9fd059f 100644
--- a/include/configs/zynq-common.h
+++ b/include/configs/zynq-common.h
@@ -39,8 +39,6 @@
#define CONFIG_ARM_DCC
#define CONFIG_ZYNQ_SERIAL
-#define CONFIG_ZYNQ_GPIO
-
/* Ethernet driver */
#if defined(CONFIG_ZYNQ_GEM)
# define CONFIG_MII
OpenPOWER on IntegriCloud