diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2020-02-07 08:26:25 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2020-02-25 23:35:35 +0300 |
commit | 506629c868d0b1d641fc3afa491ddbd85fa1bdc3 (patch) | |
tree | 3b52f7f7f579667bc7905582a9147c35d30c0e34 /drivers/gpu/drm/panfrost/panfrost_drv.c | |
parent | 3e1399bccf5163c59f41298b4faf768e199f4322 (diff) | |
download | linux-506629c868d0b1d641fc3afa491ddbd85fa1bdc3.tar.xz |
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
Diffstat (limited to 'drivers/gpu/drm/panfrost/panfrost_drv.c')
-rw-r--r-- | drivers/gpu/drm/panfrost/panfrost_drv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c index 4d0850752623..a6e162236d67 100644 --- a/drivers/gpu/drm/panfrost/panfrost_drv.c +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c @@ -663,6 +663,8 @@ const char * const default_supplies[] = { "mali" }; static const struct panfrost_compatible default_data = { .num_supplies = ARRAY_SIZE(default_supplies), .supply_names = default_supplies, + .num_pm_domains = 1, /* optional */ + .pm_domain_names = NULL, }; static const struct of_device_id dt_match[] = { |