]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panfrost: Enable devfreq to work without regulator
authorSteven Price <steven.price@arm.com>
Fri, 16 Aug 2019 09:31:05 +0000 (10:31 +0100)
committerRob Herring <robh@kernel.org>
Mon, 19 Aug 2019 16:37:02 +0000 (11:37 -0500)
commit2e2b2e69dd9d63417f67c360a728796b0bcb6da1
treeb1e84451a90dc60a79cf80821c0d49f2f6cfd5c9
parentb11e1b24f72fa4a0a22a5eaa87cb7cba10de3edb
drm/panfrost: Enable devfreq to work without regulator

If there is no regulator defined for the GPU then still control the
frequency using the supplied clock.

Some boards have clock control but no (direct) control of the regulator.
For example the HiKey960 uses a mailbox protocol to a MCU to control
frequencies and doesn't directly control the voltage. This patch allows
frequency control of the GPU on this system.

Signed-off-by: Steven Price <steven.price@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190816093107.30518-1-steven.price@arm.com
drivers/gpu/drm/panfrost/panfrost_devfreq.c