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)
commite21dd290881b20c9a37e4a79568841e9ffebeb67
treeb1e84451a90dc60a79cf80821c0d49f2f6cfd5c9
parent7282f7645d06bf0afe0a3c11ab92d9392528b819
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