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)
committerArnd Bergmann <arnd@arndb.de>
Wed, 4 Sep 2019 18:44:35 +0000 (20:44 +0200)
commitde8a618f30e8436b8b6f344604225990325fef91
treeecf429cd194f792f611a33c92be8bc86f4c8654c
parent7a800c418c684372146f98f857d632caa30125f4
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>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/soc/ti/ti_sci_pm_domains.c