drm/panfrost: Add support for multiple regulators
authorNicolas Boichat <drinkcat@chromium.org>
Fri, 7 Feb 2020 05:26:24 +0000 (13:26 +0800)
committerRob Herring <robh@kernel.org>
Tue, 25 Feb 2020 20:35:31 +0000 (14:35 -0600)
commit3e1399bccf5163c59f41298b4faf768e199f4322
treea82c8b0107ca8156aa65372f3549f3ceda86bd77
parenta9d73b30bb46afb2da40257d680249dc029702d4
drm/panfrost: Add support for multiple regulators

Some GPUs, namely, the bifrost/g72 part on MT8183, have a second
regulator for their SRAM, let's add support for that.

We extend the framework in a generic manner so that we could
support more than 2 regulators, if required.

Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviwed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200207052627.130118-5-drinkcat@chromium.org
drivers/gpu/drm/panfrost/panfrost_device.c
drivers/gpu/drm/panfrost/panfrost_device.h
drivers/gpu/drm/panfrost/panfrost_drv.c