Skip to contentSkip to conversation

microblaze: Moved U-boot headers to Kconfig

PATCH New Vipul Kumar 2 participants 5 messages Feb 16, 2018 – Feb 26, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover microblaze: Moved U-boot headers to Kconfig

This seris of patch moved microblaze u-boot headers to the kconfig and enabled it in respective defconfig.
These are the configs:
-CONFIG_XILINX_GPIO
-CONFIG_XILINX_TB_WATCHDOG

Vipul Kumar (2):
microblaze: Added Kconfig support for CONFIG_XILINX_GPIO
microblaze: wdt: Added Kconfig support for CONFIG_XILINX_TB_WATCHDOG

 configs/microblaze-generic_defconfig | 2 ++
 drivers/gpio/Kconfig                 | 5 +++++
 drivers/watchdog/Kconfig             | 6 ++++++
 include/configs/microblaze-generic.h | 2 --
 4 files changed, 13 insertions(+), 2 deletions(-)

--
2.7.4

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.

#1 lore raw

PATCH 1/2 microblaze: Added Kconfig support for CONFIG_XILINX_GPIO

This patch added Kconfig support for CONFIG_XILINX_GPIO and enabled it in respective defconfig.

---
 configs/microblaze-generic_defconfig | 1 +
 drivers/gpio/Kconfig                 | 5 +++++
 include/configs/microblaze-generic.h | 1 -
 3 files changed, 6 insertions(+), 1 deletion(-)
configs/microblaze-generic_defconfig +1 -0
index ca68a81..e707b9f 100644
@@ -42,6 +42,7 @@ CONFIG_SPL_OF_CONTROL=y
 CONFIG_OF_EMBED=y
 CONFIG_NETCONSOLE=y
 CONFIG_SPL_DM=y
+CONFIG_XILINX_GPIO=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_PHY_ATHEROS=y
 CONFIG_PHY_BROADCOM=y
drivers/gpio/Kconfig +5 -0
index 34d4409..f35c2e7 100644
@@ -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 "Enable Xilinx GPIO driver"
+       help
+         This config enable the Xilinx GPIO driver for Microblaze.
+
 config CMD_TCA642X
        bool "tca642x - Command to access tca642x state"
        help
include/configs/microblaze-generic.h +0 -1
index a065dd3..de33583 100644
@@ -41,7 +41,6 @@
 
 /* gpio */
 #ifdef XILINX_GPIO_BASEADDR
-# define CONFIG_XILINX_GPIO
 # define CONFIG_SYS_GPIO_0_ADDR                XILINX_GPIO_BASEADDR
 #endif
 

--
2.7.4

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.

#2 lore raw

PATCH 1/2 microblaze: Added Kconfig support for CONFIG_XILINX_GPIO

Quoted 28 lines · Vipul Kumar

This patch added Kconfig support for CONFIG_XILINX_GPIO and enabled it in respective defconfig.

---
 configs/microblaze-generic_defconfig | 1 +
 drivers/gpio/Kconfig                 | 5 +++++
 include/configs/microblaze-generic.h | 1 -
 3 files changed, 6 insertions(+), 1 deletion(-)
configs/microblaze-generic_defconfig +1 -0
index ca68a81..e707b9f 100644
@@ -42,6 +42,7 @@ CONFIG_SPL_OF_CONTROL=y
 CONFIG_OF_EMBED=y
 CONFIG_NETCONSOLE=y
 CONFIG_SPL_DM=y
+CONFIG_XILINX_GPIO=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_PHY_ATHEROS=y
 CONFIG_PHY_BROADCOM=y
drivers/gpio/Kconfig +0 -0
index 34d4409..f35c2e7 100644

drivers/gpio/Kconfig config SANDBOX_GPIO_COUNT · line 187

Quoted 5 lines
drivers/gpio/Kconfig +2 -0
@@ -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 "Enable Xilinx GPIO driver"

Remove "Enable" from description.

M

Quoted 19 lines
drivers/gpio/Kconfig +3 -0
+	help
+	  This config enable the Xilinx GPIO driver for Microblaze.
+
 config CMD_TCA642X
 	bool "tca642x - Command to access tca642x state"
 	help
include/configs/microblaze-generic.h +0 -1
index a065dd3..de33583 100644
@@ -41,7 +41,6 @@
 
 /* gpio */
 #ifdef XILINX_GPIO_BASEADDR
-# define CONFIG_XILINX_GPIO
 # define CONFIG_SYS_GPIO_0_ADDR		XILINX_GPIO_BASEADDR
 #endif
 
#3 lore raw

PATCH 2/2 microblaze: wdt: Added Kconfig support for CONFIG_XILINX_TB_WATCHDOG

In reply to Vipul Kumar

This patch added Kconfig support for CONFIG_XILINX_TB_WATCHDOG and enabled it in respective defconfig.

---
 configs/microblaze-generic_defconfig | 1 +
 drivers/watchdog/Kconfig             | 6 ++++++
 include/configs/microblaze-generic.h | 1 -
 3 files changed, 7 insertions(+), 1 deletion(-)
configs/microblaze-generic_defconfig +1 -0
index e707b9f..47d4204 100644
@@ -59,3 +59,4 @@ CONFIG_XILINX_AXIEMAC=y
 CONFIG_XILINX_EMACLITE=y
 CONFIG_SYS_NS16550=y
 CONFIG_XILINX_UARTLITE=y
+CONFIG_XILINX_TB_WATCHDOG=y
drivers/watchdog/Kconfig +6 -0
index fc46b67..bd209fa 100644
@@ -78,4 +78,10 @@ config WDT_ORION
           Select this to enable Orion watchdog timer, which can be found on some
           Marvell Armada chips.
 
+config XILINX_TB_WATCHDOG
+       bool "Xilinx watchdog timer support"
+       depends on MICROBLAZE && !SPL_BUILD
+       help
+         Available for Xilinx Axi platforms to service timebase watchdog timer.
+
 endmenu
include/configs/microblaze-generic.h +0 -1
index de33583..a4d911d 100644
@@ -50,7 +50,6 @@
 # define CONFIG_WATCHDOG_IRQ           XILINX_WATCHDOG_IRQ
 # ifndef CONFIG_SPL_BUILD
 #  define CONFIG_HW_WATCHDOG
-#  define CONFIG_XILINX_TB_WATCHDOG
 # endif
 #endif
 

--
2.7.4

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.

#4 lore raw

PATCH 2/2 microblaze: wdt: Added Kconfig support for CONFIG_XILINX_TB_WATCHDOG

Quoted 25 lines · Vipul Kumar

This patch added Kconfig support for CONFIG_XILINX_TB_WATCHDOG and enabled it in respective defconfig.

---
 configs/microblaze-generic_defconfig | 1 +
 drivers/watchdog/Kconfig             | 6 ++++++
 include/configs/microblaze-generic.h | 1 -
 3 files changed, 7 insertions(+), 1 deletion(-)
configs/microblaze-generic_defconfig +1 -0
index e707b9f..47d4204 100644
@@ -59,3 +59,4 @@ CONFIG_XILINX_AXIEMAC=y
 CONFIG_XILINX_EMACLITE=y
 CONFIG_SYS_NS16550=y
 CONFIG_XILINX_UARTLITE=y
+CONFIG_XILINX_TB_WATCHDOG=y
drivers/watchdog/Kconfig +0 -0
index fc46b67..bd209fa 100644

drivers/watchdog/Kconfig config WDT_ORION · line 83

Quoted 6 lines
drivers/watchdog/Kconfig +3 -0
@@ -78,4 +78,10 @@ config WDT_ORION
 	   Select this to enable Orion watchdog timer, which can be found on some
 	   Marvell Armada chips.
 
+config XILINX_TB_WATCHDOG
+	bool "Xilinx watchdog timer support"
+	depends on MICROBLAZE && !SPL_BUILD

You should also add there select HW_WATCHDOG.

Thanks,
Michal

Quoted 17 lines
drivers/watchdog/Kconfig +3 -0
+	help
+	  Available for Xilinx Axi platforms to service timebase watchdog timer.
+
 endmenu
include/configs/microblaze-generic.h +0 -1
index de33583..a4d911d 100644
@@ -50,7 +50,6 @@
 # define CONFIG_WATCHDOG_IRQ		XILINX_WATCHDOG_IRQ
 # ifndef CONFIG_SPL_BUILD
 #  define CONFIG_HW_WATCHDOG
-#  define CONFIG_XILINX_TB_WATCHDOG
 # endif
 #endif