Skip to contentSkip to conversation

microblaze: wdt: Added Kconfig support for CONFIG_XILINX_TB_WATCHDOG

PATCH New Vipul Kumar 2 participants 2 messages Mar 7, 2018 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 microblaze: wdt: Added Kconfig support for CONFIG_XILINX_TB_WATCHDOG

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

---
Changes in v3:
- Removed select hw_watchdog
- Branch: u-boot-microblaze/kconfig

---
 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 699dc44..fba3820 100644
@@ -63,3 +63,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 73c3c2a..391b26a 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.

#1 lore raw

PATCH v3 1/1 microblaze: wdt: Added Kconfig support for CONFIG_XILINX_TB_WATCHDOG

Quoted 29 lines · Vipul Kumar

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

---
Changes in v3:
- Removed select hw_watchdog
- Branch: u-boot-microblaze/kconfig

---
 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 699dc44..fba3820 100644
@@ -63,3 +63,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

Again this !SPL_BUILD is not working.

Quoted 10 lines
drivers/watchdog/Kconfig +3 -0
+	help
+	  Available for Xilinx Axi platforms to service timebase watchdog timer.
+
 endmenu
include/configs/microblaze-generic.h +0 -0
index 73c3c2a..391b26a 100644

include/configs/microblaze-generic.h line 55

Quoted 7 lines
include/configs/microblaze-generic.h +0 -1
@@ -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
 

Thanks,
Michal