sysreset: syscon: add support for power off
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 20 May 2019 08:58:39 +0000 (10:58 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Fri, 12 Jul 2019 09:18:53 +0000 (11:18 +0200)
commit486942184a5ac72a0a6d77bbb4527b5baeb901de
treeb158c7d8fb44e6854e244c31e65464a610f11203
parent4048e171d2de7b6eafb52875014a036f97e7dc38
sysreset: syscon: add support for power off

The new type sysreset 'POWER_OFF', introduced by
commit 751fed426f87 ("sysreset: Add a way to find the last reset")
is only supported for "syscon-poweroff" compatible.

For details see Linux binding:
./Documentation/devicetree/bindings/power/reset/syscon-poweroff.txt

This patch removes the support of POWER_OFF for "syscon-reboot"
and keeps only the COLD reset (for command reset support)
and it introduces the compatible "syscon-poweroff"
for the POWER_OFF case.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/sysreset/sysreset_syscon.c