microblaze: Added Kconfig support for CONFIG_XILINX_GPIO
authorVipul Kumar <vipul.kumar@xilinx.com>
Wed, 28 Feb 2018 06:02:22 +0000 (11:32 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 1 Mar 2018 14:43:45 +0000 (15:43 +0100)
This patch added Kconfig support for CONFIG_XILINX_GPIO
and enabled it in respective defconfig.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
configs/microblaze-generic_defconfig
drivers/gpio/Kconfig
include/configs/microblaze-generic.h

index ac494043d463b4421c47f021be68f6375d317297..699dc447f0ff6d6f6cd539b78312db1cc3e848e1 100644 (file)
@@ -46,6 +46,7 @@ CONFIG_BOOTP_BOOTPATH=y
 CONFIG_BOOTP_GATEWAY=y
 CONFIG_BOOTP_HOSTNAME=y
 CONFIG_SPL_DM=y
+CONFIG_XILINX_GPIO=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_PHY_ATHEROS=y
 CONFIG_PHY_BROADCOM=y
index 34d4409116fc5b12816320f8b5a1ab8d8cd11a3d..cc75aece6a110f782748a6857d7a4b3d4c1aac0d 100644 (file)
@@ -183,6 +183,11 @@ config SANDBOX_GPIO_COUNT
          of 'anonymous' GPIOs that do not belong to any device or bank.
          Select a suitable value depending on your needs.
 
+config XILINX_GPIO
+       bool "Xilinx GPIO driver"
+       help
+         This config enable the Xilinx GPIO driver for Microblaze.
+
 config CMD_TCA642X
        bool "tca642x - Command to access tca642x state"
        help
index fe9aaaec1db9c5452b11f350276307823c9c9cf5..73c3c2ae485c79a1e10ce8609df10a2083157c1a 100644 (file)
@@ -41,7 +41,6 @@
 
 /* gpio */
 #ifdef XILINX_GPIO_BASEADDR
-# define CONFIG_XILINX_GPIO
 # define CONFIG_SYS_GPIO_0_ADDR                XILINX_GPIO_BASEADDR
 #endif