]> 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)
commit37c702bbc87fb5ec9e6da4710d6ea7813abe543f
treeb1e84451a90dc60a79cf80821c0d49f2f6cfd5c9
parent3ec76f27f11d300fdc61fcd2957ae00e890ae129
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