ARM: iop32x: request and issue reset using gpio
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 9 Sep 2013 12:45:47 +0000 (14:45 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 20 Sep 2013 21:03:57 +0000 (23:03 +0200)
commit7111f8780fcf770d8624d758fd240e585adf7d3c
tree89237602dae060cb483153be7bc4f8cc44810a76
parente9004f5039b3840089cb1cb0fe558a81e2bb55f0
ARM: iop32x: request and issue reset using gpio

As the IOP GPIO driver supports gpiolib we can use the standard
GPIO calls to issue a reset of the machine instead of using the
custom gpio_line_set/config calls. Also request the GPIO when
initializing the machine.

Cc: Lennert Buytenhek <kernel@wantstofly.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Mikael Pettersson <mikpe@it.uu.se>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-iop32x/n2100.c