Message ID | cover.1565633880.git.leonard.crestez@nxp.com |
---|---|
Headers | show |
Series | PM / devfreq: Add initial imx support | expand |
>Add initial support for dynamic frequency switching on pieces of the imx >interconnect fabric. > >All this driver actually does is set a clk rate based on an opp table. > >No attempt is made to map registers or anything clever. > >Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com> >--- > drivers/devfreq/Kconfig | 12 +++ > drivers/devfreq/Makefile | 1 + > drivers/devfreq/imx-devfreq.c | 148 ++++++++++++++++++++++++++++++++++ > 3 files changed, 161 insertions(+) > create mode 100644 drivers/devfreq/imx-devfreq.c > >diff --git a/drivers/devfreq/Kconfig b/drivers/devfreq/Kconfig >index defe1d438710..9088a151bafe 100644 >--- a/drivers/devfreq/Kconfig >+++ b/drivers/devfreq/Kconfig >@@ -90,10 +90,22 @@ config ARM_EXYNOS_BUS_DEVFREQ > Each memory bus group could contain many memoby bus block. It reads > PPMU counters of memory controllers by using DEVFREQ-event device > and adjusts the operating frequencies and voltages with OPP support. > This does not yet operate with optimal voltages. > >+config ARM_IMX_DEVFREQ >+ tristate "i.MX DEVFREQ Driver" >+ depends on ARCH_MXC || COMPILE_TEST >+ select DEVFREQ_GOV_PASSIVE >+ select DEVFREQ_GOV_SIMPLE_ONDEMAND >+ select DEVFREQ_GOV_USERSPACE >+ select PM_OPP Hello, I have a simple question: Does it support ALL ARCH_MXC SoCs? Cheers, MyungJoo
On 8/13/2019 5:33 AM, MyungJoo Ham wrote: >> Add initial support for dynamic frequency switching on pieces of the imx >> interconnect fabric. >> >> All this driver actually does is set a clk rate based on an opp table. >> >> +config ARM_IMX_DEVFREQ >> + tristate "i.MX DEVFREQ Driver" >> + depends on ARCH_MXC || COMPILE_TEST >> + select DEVFREQ_GOV_PASSIVE >> + select DEVFREQ_GOV_SIMPLE_ONDEMAND >> + select DEVFREQ_GOV_USERSPACE >> + select PM_OPP > > Does it support ALL ARCH_MXC SoCs? Only imx8m currently but out of tree we support bus+dram frequency switching for ~10 imx6/7 SOCs, all other than imx7ulp. When imx8 was upstreamed as the first 64-bit imx chip the arm64 maintainers told us to drop stuff like ARCH_FSL_IMX8MM so there is no per-soc kconfig more specific than "ARCH_MXC". I guess we could make it depend on (ARCH_MXC && ARM64) but the ARM64 would eventually be dropped anyway. -- Regards, Leonard