soc: ti: ti_sci_pm_domains: Add support for exclusive and shared access
authorLokesh Vutla <lokeshvutla@ti.com>
Tue, 27 Aug 2019 03:00:41 +0000 (20:00 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Tue, 27 Aug 2019 03:00:41 +0000 (20:00 -0700)
commit23013399a2252e9f592c2c52a62b213d3ef09217
treeeee557b2b06078a1ba3a9e330a851fd80f40c7e6
parent9e465988228667b61e26ae7f68ca37a85821c86d
soc: ti: ti_sci_pm_domains: Add support for exclusive and shared access

TISCI protocol supports for enabling the device either with exclusive
permissions for the requesting host or with sharing across the hosts.
There are certain devices which are exclusive to Linux context and
there are certain devices that are shared across different host contexts.
So add support for getting this information from DT by increasing
the power-domain cells to 2.

For keeping the DT backward compatibility intact, defaulting the
device permissions to set the exclusive flag set. In this case the
power-domain-cells is 1.

Reviewed-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/soc/ti/ti_sci_pm_domains.c