power: reset: read priority from device tree
authorStefan Agner <stefan@agner.ch>
Mon, 1 Dec 2014 10:22:17 +0000 (11:22 +0100)
committerStefan Agner <stefan@agner.ch>
Mon, 1 Dec 2014 16:57:07 +0000 (17:57 +0100)
commit55f8d6d30d058df8cf581f610e6cf5060791a0b1
tree8ce7251a784a4c2acbde01167de1a930226f0000
parent1b691d429bdeb5e8c2101abe97588e355934c142
power: reset: read priority from device tree

This patch adds an optional property which allows to specify the
reset source priority. This priority is used by the kernel restart
handler call chain to sort out the proper reset/restart method.
Depending on the power design of a board or other machine/board
specific peculiarity, it is not possible to pick a generic priority.
Documentation/devicetree/bindings/power/reset/syscon-reboot.txt
drivers/power/reset/syscon-reboot.c