Add Xilinx watchdog timer driver
PATCH 1/1 Add Xilinx watchdog timer driver
Watchdog timer device driver for Xilinx xps_timebase_wdt compatible ip cores. It takes watchdog timer configuration from device tree and it needs that its parent has defined the property "clock-frecuency".
It is compatible with watchdog timer kernel API, so user apps like watchdogd may talk with it.
--- drivers/watchdog/Kconfig | 14 ++ drivers/watchdog/Makefile | 3 + drivers/watchdog/of_xilinx_wdt.c | 433 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 450 nsertions(+), 0 deletions(-) create mode 100644 drivers/watchdog/of_xilinx_wdt.c
drivers/watchdog/Kconfig +14 -0
@@ -881,6 +881,20 @@ config M54xx_WATCHDOG To compile this driver as a module, choose M here: the module will be called m54xx_wdt. +# MicroBlaze Architecture + +config XILINX_WATCHDOG + tristate "Xilinx Watchdog timer" + depends on MICROBLAZE + ---help--- + Watchdog driver for the xps_timebase_wdt ip core. + + IMPORTANT: The xps_timebase_wdt parent must have the property + "clock-frequency" at device tree. + + To compile this driver as a module, choose M here: the + module will be called of_xilinx_wdt. + # MIPS Architecture config ATH79_WDT
drivers/watchdog/Makefile +3 -0
@@ -109,6 +109,9 @@ obj-$(CONFIG_INTEL_SCU_WATCHDOG) += intel_scu_watchdog.o # M68K Architecture obj-$(CONFIG_M54xx_WATCHDOG) += m54xx_wdt.o +# MicroBlaze Architecture +obj-$(CONFIG_XILINX_WATCHDOG) += of_xilinx_wdt.o + # MIPS Architecture obj-$(CONFIG_ATH79_WDT) += ath79_wdt.o obj-$(CONFIG_BCM47XX_WDT) += bcm47xx_wdt.o
drivers/watchdog/of_xilinx_wdt.c new file +433 -0
433 lines not on this page · raw message
--
1.7.0.4
Participe en Universidad 2012, del 13 al 17 de febrero de 2012. Habana, Cuba: http://www.congresouniversidad.cu
Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
Participe en el Segundo Congreso Medio Ambiente Construido y Desarrollo Sustentable (MACDES 2011) del 6 al 9 de diciembre de 2011, Hotel Nacional, Habana, Cuba: http://macdes.cujae.edu.cu
Hi Alejandro,
Quoted 6 lines
Watchdog timer device driver for Xilinx
xps_timebase_wdtcompatible ip cores. It takes watchdog timer configuration from device tree and it needs that its parent has defined the property "clock-frecuency".
It is compatible with watchdog timer kernel API, so user apps like watchdogd may talk with it.
Quoted 7 lines
Signed-off-by Alejandro Cabrera <[email protected]>--- drivers/watchdog/Kconfig | 14 ++ drivers/watchdog/Makefile | 3 + drivers/watchdog/of_xilinx_wdt.c | 433 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 450 nsertions(+), 0 deletions(-) create mode 100644 drivers/watchdog/of_xilinx_wdt.c
Added to linux-2.6-watchdog-next. (Made 1 small change: misc_deregister should be called before iounmap en release_region).
Kind regards,
Wim.