[PATCH 0/3] watchdog: new driver for STMP3xxx/MX23/MX28
w.sang at pengutronix.de
Thu Dec 8 12:19:40 EST 2011
Introduce a new user of the watchdog framework :) This is a rewritten driver
for STMP and imx23/28 (the old one was not compilable anymore due to the
missing mach). Please read the patch descriptions to understand why I think a
rewrite was necessary. The first patch adds an accessor routine to the
RTC-driver which can hopefully go via the watchdog-tree as well. The second
patch adds the new driver, the third removes the old one.
I hope this can make it for 3.3; the old driver was broken (= not compilable)
anyhow, so there cannot be any regression. Tested on a MX28EVK.
Changes since V1:
* don't use EXPORT_SYMBOL for the callback into the RTC anymore.
Now, the callback is provided via platform_data to make sure it is
private between RTC and watchdog.
* use more helpers to reduce driver size (module_platform_driver, pm_ops)
Wolfram Sang (3):
rtc: stmp3xxx: add wdt-accessor function
watchdog: add new driver for STMP3xxx and i.MX23/28
watchdog: remove old STMP3XXX driver
drivers/rtc/rtc-stmp3xxx.c | 64 ++++++++
drivers/watchdog/Kconfig | 13 +-
drivers/watchdog/Makefile | 2 +-
drivers/watchdog/stmp3xxx_rtc_wdt.c | 139 ++++++++++++++++
drivers/watchdog/stmp3xxx_wdt.c | 297 -----------------------------------
include/linux/stmp3xxx_rtc_wdt.h | 15 ++
6 files changed, 226 insertions(+), 304 deletions(-)
create mode 100644 drivers/watchdog/stmp3xxx_rtc_wdt.c
delete mode 100644 drivers/watchdog/stmp3xxx_wdt.c
create mode 100644 include/linux/stmp3xxx_rtc_wdt.h
More information about the linux-arm-kernel