Power: Reset: Generalize qnap-poweroff to work on Synology devices.
authorAndrew Lunn <andrew@lunn.ch>
Wed, 19 Feb 2014 20:02:35 +0000 (06:02 +1000)
committerJason Cooper <jason@lakedaemon.net>
Tue, 4 Mar 2014 03:48:41 +0000 (03:48 +0000)
commit200c0a3e404beab02be83e5cbf111d26b9f6ce22
tree4cfcb9d5f37a1ea3435c8d33ad4271572a8f8b07
parentff1f0018cf66080d8e6f59791e552615648a033a
Power: Reset: Generalize qnap-poweroff to work on Synology devices.

The Synology NAS devices use a very similar mechanism to QNAP NAS
devices to power off. Both send a single charactor command to a PIC,
over the second serial port. However the baud rate and the command
differ. Generalize the driver to support this.

Signed-off-by: Ben Peddell <klightspeed@killerwolves.net>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Cc: Anton Vorontsov <anton@enomsg.org>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Documentation/devicetree/bindings/power_supply/qnap-poweroff.txt
drivers/power/reset/qnap-poweroff.c