On 13-02-19, 03:09, Anson Huang wrote: > On NXP's i.MX SoCs with system controller inside, CPU frequency > scaling can ONLY be done by system controller firmware, and it > can ONLY be requested from secure mode, so Linux cpufreq driver has > to call ARM SMC to trap to ARM-Trusted-Firmware to request system > controller firmware to do CPU frequency scaling. > > This patch adds i.MX system controller cpufreq driver support, > when doing CPU frequency scaling, cpufreq driver will do ARM SMC > call and trap to ARM-Trusted-Firmware, then SIP(silicon provider) > service will communicate with system controller for CPU frequenct > scaling. > > Signed-off-by: Anson Huang <Anson.Huang@xxxxxxx> > --- > drivers/cpufreq/Kconfig.arm | 9 ++ > drivers/cpufreq/Makefile | 1 + > drivers/cpufreq/imx-sc-cpufreq.c | 183 +++++++++++++++++++++++++++++++++++++++ > 3 files changed, 193 insertions(+) > create mode 100644 drivers/cpufreq/imx-sc-cpufreq.c Why can't you use cpufreq-dt driver like everyone else ? -- viresh