]> git.sur5r.net Git - u-boot/commitdiff
gpio: Kconfig: Enable Zynq GPIO driver using kconfig
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Thu, 10 Mar 2016 10:57:39 +0000 (16:27 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 13 Apr 2016 16:29:06 +0000 (18:29 +0200)
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>
arch/arm/Kconfig
drivers/gpio/Kconfig
include/configs/zynq-common.h

index c8e0337893934362b87e6bc72dbfbbd67f9d2074..802d3b430cd6e895311dfbda402c7a70263f5a02 100644 (file)
@@ -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
index f56a60621ff079e0b1fdb33511246dfa7b04f4fb..4d2cc500bfaf906d2b33394c3605c2974fdbc8cb 100644 (file)
@@ -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
index c96b9c52500f4db2b095b27413f2fd3905af24c3..49d9fd059f3cb419859c0674427de2a217f6ba36 100644 (file)
@@ -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