OSDN Git Service

cpufreq: add driver for Raspberry Pi
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Wed, 12 Jun 2019 18:24:56 +0000 (20:24 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 13 Jun 2019 03:28:22 +0000 (08:58 +0530)
commitd3df18a97e586702920337056540267807b23f8e
tree0a431d6334bd5f5f70656f4241aaf7bc3419cb11
parente6abacabb5acb6315e0e9560b2cb50a4d55b6e09
cpufreq: add driver for Raspberry Pi

Raspberry Pi's firmware offers and interface though which update it's
performance requirements. It allows us to request for specific runtime
frequencies, which the firmware might or might not respect, depending on
the firmware configuration and thermals.

As the maximum and minimum frequencies are configurable in the firmware
there is no way to know in advance their values. So the Raspberry Pi
cpufreq driver queries them, builds an opp frequency table to then
launch cpufreq-dt.

Also, as the firmware interface might be configured as a module, making
the cpu clock unavailable during init, this implements a full fledged
driver, as opposed to most drivers registering cpufreq-dt, which only
make use of an init routine.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Acked-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Acked-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/Kconfig.arm
drivers/cpufreq/Makefile
drivers/cpufreq/raspberrypi-cpufreq.c [new file with mode: 0644]