]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/firmware/ti_sci.c
firmware: ti_sci: Add support for reboot core service
authorNishanth Menon <nm@ti.com>
Tue, 18 Oct 2016 23:08:37 +0000 (18:08 -0500)
committerTero Kristo <t-kristo@ti.com>
Thu, 27 Oct 2016 09:09:12 +0000 (12:09 +0300)
commit912cffb4ed8612dc99ee0251cc0c9785855162cd
treec5f53aad89c724f524285fbed59a835087237876
parent9f72322050e4762adde66619f048b7317ad12d77
firmware: ti_sci: Add support for reboot core service

Since system controller now has control over SoC power management, it
needs to be explicitly requested to reboot the SoC. Add support for
it.

In some systems however, SoC needs to toggle a GPIO or send event to an
external entity (like a PMIC) for a system reboot to take place. To
facilitate that, we allow for a DT property to determine if the reboot
handler will be registered and further, the service is also made
available to other drivers (such as PMIC driver) to sequence the
additional operation and trigger the SoC reboot as the last step.

Tested-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
drivers/firmware/ti_sci.c
drivers/firmware/ti_sci.h
include/linux/soc/ti/ti_sci_protocol.h