]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/configs/microblaze-generic.h
watchdog: Add support for Xilinx Microblaze watchdog
[people/ms/u-boot.git] / include / configs / microblaze-generic.h
index 8c0353a15db95b9967e2ab8c421fb5041aadb623..0c4e7193ba7605cecb606c226fdd9938486ee72e 100644 (file)
 #  define CONFIG_SYS_TIMER_0_IRQ       XILINX_TIMER_IRQ
 #endif
 
+/* watchdog */
+#if defined(XILINX_WATCHDOG_BASEADDR) && defined(XILINX_WATCHDOG_IRQ)
+# define CONFIG_WATCHDOG_BASEADDR      XILINX_WATCHDOG_BASEADDR
+# define CONFIG_WATCHDOG_IRQ           XILINX_WATCHDOG_IRQ
+# define CONFIG_HW_WATCHDOG
+# define CONFIG_XILINX_TB_WATCHDOG
+#endif
+
 /*
  * memory layout - Example
  * CONFIG_SYS_TEXT_BASE = 0x1200_0000; defined in config.mk