firmware: ti_sci: Add helper apis to manage resources
authorLokesh Vutla <lokeshvutla@ti.com>
Tue, 30 Apr 2019 10:12:21 +0000 (15:42 +0530)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 1 May 2019 09:41:33 +0000 (10:41 +0100)
commit032a1ec549a79711078d26b6bcbba9d435822059
treedfd299977e4e331c26ee296b92ee6a97917bc8c1
parent754c9477ae78727d31692c76190b5567c567f435
firmware: ti_sci: Add helper apis to manage resources

Each resource with in the device can be uniquely identified as defined
by TISCI. Since this is generic across the devices, resource allocation
also can be made generic instead of each client driver handling the
resource. So add helper apis to manage the resource.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/firmware/ti_sci.c
include/linux/soc/ti/ti_sci_protocol.h