Commit 60357991 authored by Dave Gerlach's avatar Dave Gerlach Committed by Nishanth Menon
Browse files

firmware: ti_sci: Introduce Power Management Ops

Introduce power management ops supported by the TISCI
Low Power Mode API [1].

1) TISCI_MSG_LPM_WAKE_REASON
Get which wake up source woke the SoC from Low Power Mode.
The wake up source IDs will be common for all K3 platforms.

2) TISCI_MSG_LPM_SET_DEVICE_CONSTRAINT
Set LPM constraint on behalf of a device. By setting a constraint, the
device ensures that it will not be powered off or reset in the selected
mode.

3) TISCI_MSG_LPM_SET_LATENCY_CONSTRAINT
Set LPM resume latency constraint. By setting a constraint, the host
ensures that the resume time from selected mode will be less than the
constraint value.

[1] https://software-dl.ti.com/tisci/esd/latest/2_tisci_msgs/pm/lpm.html



Signed-off-by: default avatarDave Gerlach <d-gerlach@ti.com>
[g-vlaev@ti.com: LPM_WAKE_REASON and IO_ISOLATION support]
Signed-off-by: default avatarGeorgi Vlaev <g-vlaev@ti.com>
[a-kaur@ti.com: SET_DEVICE_CONSTRAINT support]
Signed-off-by: default avatarAkashdeep Kaur <a-kaur@ti.com>
[vibhore@ti.com: SET_LATENCY_CONSTRAINT support]
Signed-off-by: default avatarVibhore Vardhan <vibhore@ti.com>
Signed-off-by: default avatarKevin Hilman <khilman@baylibre.com>
Reviewed-by: default avatarAkashdeep Kaur <a-kaur@ti.com>
Tested-by: default avatarDhruva Gole <d-gole@ti.com>
Signed-off-by: default avatarMarkus Schneider-Pargmann <msp@baylibre.com>
Tested-by: default avatarKevin Hilman <khilman@baylibre.com>
Tested-by: default avatarRoger Quadros <rogerq@kernel.org>
Acked-by: default avatarDhruva Gole <d-gole@ti.com>
Link: https://lore.kernel.org/r/20241007-tisci-syssuspendresume-v13-4-ed54cd659a49@baylibre.com


Signed-off-by: default avatarNishanth Menon <nm@ti.com>
parent ec24643b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment