]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: sunxi: support parameterized compatible strings
authorChen-Yu Tsai <wens@csie.org>
Sun, 21 Sep 2014 16:05:18 +0000 (00:05 +0800)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 20 Oct 2014 19:06:59 +0000 (21:06 +0200)
commitb29210682be3459394f58ca13c8826824e6f54d1
treee6389b695cb90c96ad48e125d691b3f46a54b9b6
parent6e8b7e12ad7a1e24b5899b933644456dcd6a3ff2
watchdog: sunxi: support parameterized compatible strings

This patch adds support for hardware parameters tied to compatible
strings, so similar hardware can reuse the driver.

This will be used to support the newer watchdog found in A31 and
later SoCs. Differences in the new hardware include separate
interrupt lines for each watchdog, and corresponding interrupt
control/status registers. Watchdog control registers were also
slightly rearranged.

Also replace ioread32()/iowrite32() with readl()/writel() in various
places changed.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/watchdog/sunxi_wdt.c