soc: rockchip: power-domain: add support for sub-power domains
authorElaine Zhang <zhangqing@rock-chips.com>
Wed, 9 Mar 2016 21:22:55 +0000 (05:22 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 28 Mar 2016 10:57:45 +0000 (12:57 +0200)
commit6be05b5ec16132f3df3f1d857ab01e30f726b542
tree716cedfd84392ae1e91b640a595a653ddde019a9
parent1fe767a56c32730a947fc2bfcac5d14490bde6ff
soc: rockchip: power-domain: add support for sub-power domains

This patch adds support for making one power domain a sub-domain of
other domain. This is useful for modeling power dependences,
which needs to have more than one power domain enabled to be operational.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
[restructured error handling in subdomain-addition]
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/soc/rockchip/pm_domains.c