[PATCH v2 4/9] arm: imx: imx8mm: add enable_pwm_clk function
Tommaso Merciai
tommaso.merciai at amarulasolutions.com
Thu Mar 17 08:39:27 CET 2022
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.merciai at 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.merciai at amarulasolutions.com
__________________________________
Amarula Solutions SRL
Via Le Canevare 30, 31100 Treviso, Veneto, IT
T. +39 042 243 5310
info at amarulasolutions.com
www.amarulasolutions.com
More information about the U-Boot
mailing list