]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm: Kconfig: Enable Zynq GPIO driver using kconfig
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Thu, 10 Mar 2016 10:57:41 +0000 (16:27 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 10 Mar 2016 19:33:38 +0000 (20:33 +0100)
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 e4d79444ab8459abd8cdf02460bb7eaff75c6ab0..306323f734546b099e6ebe536dba1de48711a96a 100644 (file)
@@ -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
index e60e9fd86c39a0068689079448555aea3deb4ff9..99c30cdaa0cb556af29447947d712edd7832f3fa 100644 (file)
@@ -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
index b993d59804347b2c187ecdc0705393c4977ab9af..7c7195cbbb30711acb265f61e8246073b6632659 100644 (file)
@@ -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