]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
socfpga: Adding DesignWare watchdog support
authorChin Liang See <clsee@altera.com>
Tue, 10 Jun 2014 06:11:04 +0000 (01:11 -0500)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Fri, 4 Jul 2014 22:24:18 +0000 (00:24 +0200)
To enable the DesignWare watchdog support at SOCFPGA
Cyclone V dev kit.

Signed-off-by: Chin Liang See <clsee@altera.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Heiko Schocher <hs@denx.de>
Cc: Tom Rini <trini@ti.com>
arch/arm/include/asm/arch-socfpga/socfpga_base_addrs.h
include/configs/socfpga_cyclone5.h

index f564046bc020d116cf1b1485b5a0a069cc01bdde..f2ecbbdd04d614eecbb073b67f599ffbe6fd20be 100644 (file)
@@ -11,6 +11,7 @@
 #define SOCFPGA_UART0_ADDRESS 0xffc02000
 #define SOCFPGA_UART1_ADDRESS 0xffc03000
 #define SOCFPGA_OSC1TIMER0_ADDRESS 0xffd00000
+#define SOCFPGA_L4WD0_ADDRESS 0xffd02000
 #define SOCFPGA_CLKMGR_ADDRESS 0xffd04000
 #define SOCFPGA_RSTMGR_ADDRESS 0xffd05000
 #define SOCFPGA_SYSMGR_ADDRESS 0xffd08000
index 0254249751032bbc60d3229b1336267876a63de6..34291c7391e2a4fedf4b93b8d0d95910d3b6c1a9 100644 (file)
 
 #define CONFIG_ENV_IS_NOWHERE
 
+/*
+ * L4 Watchdog
+ */
+#define CONFIG_HW_WATCHDOG
+#define CONFIG_HW_WATCHDOG_TIMEOUT_MS  2000
+#define CONFIG_DESIGNWARE_WATCHDOG
+#define CONFIG_DW_WDT_BASE             SOCFPGA_L4WD0_ADDRESS
+/* Clocks source frequency to watchdog timer */
+#define CONFIG_DW_WDT_CLOCK_KHZ                25000
+
+
 /*
  * SPL "Second Program Loader" aka Initial Software
  */
 /* Support for lib/libgeneric.o in SPL binary */
 #define CONFIG_SPL_LIBGENERIC_SUPPORT
 
+/* Support for watchdog */
+#define CONFIG_SPL_WATCHDOG_SUPPORT
+
 #endif /* __CONFIG_H */