drm/panfrost: Add support for multiple power domains
authorNicolas Boichat <drinkcat@chromium.org>
Fri, 7 Feb 2020 05:26:25 +0000 (13:26 +0800)
committerRob Herring <robh@kernel.org>
Tue, 25 Feb 2020 20:35:35 +0000 (14:35 -0600)
commit506629c868d0b1d641fc3afa491ddbd85fa1bdc3
tree3b52f7f7f579667bc7905582a9147c35d30c0e34
parent3e1399bccf5163c59f41298b4faf768e199f4322
drm/panfrost: Add support for multiple power domains

When there is a single power domain per device, the core will
ensure the power domain is switched on (so it is technically
equivalent to having not power domain specified at all).

However, when there are multiple domains, as in MT8183 Bifrost
GPU, we need to handle them in driver code.

Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200207052627.130118-6-drinkcat@chromium.org
drivers/gpu/drm/panfrost/panfrost_device.c
drivers/gpu/drm/panfrost/panfrost_device.h
drivers/gpu/drm/panfrost/panfrost_drv.c