]> git.karo-electronics.de Git - karo-tx-linux.git/commit
watchdog: orion: Introduce a SoC-specific RSTOUT mapping
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Sat, 15 Mar 2014 18:17:57 +0000 (15:17 -0300)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 26 May 2014 20:51:54 +0000 (22:51 +0200)
commit09b21284379136eaa0736b6ff50277a20c737512
tree1611e709c80561041bc85ba34d7e0af85af0a2b7
parentf8c138800f55d9c8cb2bb81bb075ecd13c14d2c4
watchdog: orion: Introduce a SoC-specific RSTOUT mapping

Separate the RSTOUT register mapping for the different compatible strings
supported by the driver. This allows to use devm_ioremap on SoC variants that
share the RSTOUT register, and devm_ioremap_resource (which requests the MMIO
region) on SoCs that have a dedicated RSTOUT register.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Tested-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/orion_wdt.c