watchdog: orion: Make RSTOUT register a separate resource
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Mon, 10 Feb 2014 23:00:25 +0000 (20:00 -0300)
committerJason Cooper <jason@lakedaemon.net>
Sat, 22 Feb 2014 03:43:23 +0000 (03:43 +0000)
commit868eb61602d9c020fc9e21b42f3ccd301b36b94d
treeb26c070e5d546b2c4e18f87ec4d1f00237b6331c
parente97662e1e28da0da0702db213931d8f9a580970a
watchdog: orion: Make RSTOUT register a separate resource

In order to support other SoC, it's required to distinguish
the 'control' timer register, from the 'rstout' register
that enables system reset on watchdog expiration.

To prevent a compatibility break, this commit adds a fallback
to a hardcoded RSTOUT address.

Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tested-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Acked-by: Wim Van Sebroeck <wim@iguana.be>
Tested-By: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Documentation/devicetree/bindings/watchdog/marvel.txt
arch/arm/mach-dove/include/mach/bridge-regs.h
arch/arm/mach-kirkwood/include/mach/bridge-regs.h
arch/arm/mach-mv78xx0/include/mach/bridge-regs.h
arch/arm/mach-orion5x/include/mach/bridge-regs.h
arch/arm/plat-orion/common.c
drivers/watchdog/orion_wdt.c