On Wed, Mar 16, 2022 at 09:54:34PM +0100, Marek Vasut wrote: > On 3/16/22 16:27, Tommaso Merciai wrote: > > Add function enable_pwm_clk into in clock_imx8mm.c. This > > function first configure, then enable pwm clock from clock control > > register. The following configuration is used: > > > > source(0) -> 24 MHz ref clock > > div(0) -> no division for this clock > > > > References: > > - iMX8MMRM.pdf p 303 > > > > Signed-off-by: Tommaso Merciai <tommaso.merc...@amarulasolutions.com> > > --- > > Changes since v1: > > - Fix enable_pwm_clk function implementation. Now is generic for all pwm > > clks > > > > arch/arm/mach-imx/imx8m/clock_imx8mm.c | 53 ++++++++++++++++++++++++++ > > 1 file changed, 53 insertions(+) > > Why is this not in drivers/clk/imx/ DM driver ?
Hi Marek, All function that enable/configure clk from CCGR are in arch/arm/mach-imx/imx8m/clock_imx8mm.c. For that I continue to put here the implementation. After we can port the clk dm part to manipulate clock in drivers/clk/imx/ DM driver. What do you think about? Let me know. Thanks, Tommaso -- Tommaso Merciai Embedded Linux Engineer tommaso.merc...@amarulasolutions.com __________________________________ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 i...@amarulasolutions.com www.amarulasolutions.com