Angus Ainslie
129f5102d2
clk: imx8m: reduce rate table duplication
...
Re-factor the imx8m[nmpq] rate tables into the common pll1416x clock
driver.
43cdaa1567ad3 ("clk: imx8mm: Move 1443X/1416X PLL clock structure to common place")
Signed-off-by: Angus Ainslie <angus@akkea.ca >
Tested-by: Adam Ford <aford173@gmail.com > #imx8mm-beacon
2022-04-12 17:33:55 +02:00
Tommaso Merciai
e2d074cead
clk: imx8mm: add pwm clocks support
...
Add clocks support for the PWM controllers. This is ported from
Linux v5.17-rc8.
Signed-off-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com >
2022-04-12 17:33:55 +02:00
Sean Anderson
682e73d235
clk: Use generic CCF ops where possible
...
This converts most CCF drivers to use generic ops. imx6q is the only
outlier, where we retain the existing functionality by moving the check to
request().
Signed-off-by: Sean Anderson <seanga2@gmail.com >
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com >
Reviewed-by: Peng Fan <peng.fan@nxp.com >
Link: https://lore.kernel.org/r/20220320203446.740178-2-seanga2@gmail.com
[ fixed missing include for at91 ]
Signed-off-by: Sean Anderson <seanga2@gmail.com >
2022-03-30 14:18:56 -04:00
Frieder Schrempf
ef62fff269
clk: imx8mm: Add SPI clocks
...
Add the clocks for the ECSPI controllers. This is ported from
Linux v5.13-rc4.
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de >
2021-07-10 16:03:01 +02:00
Peng Fan
ec04ae4217
clk: imx8m: drop clk settings
...
We use non-dm code to configure the clk settings in order to simplify
dm clk driver in future, so remove the duplicated code from clk driver
Signed-off-by: Peng Fan <peng.fan@nxp.com >
2020-07-14 15:23:47 +08:00
Ye Li
4b6548d17d
clk: imx8mm/8mn: Add USB clocks
...
Add USB relevant clocks to support usb clock settings for both
DM USB host and gadget drivers
Signed-off-by: Ye Li <ye.li@nxp.com >
Signed-off-by: Peng Fan <peng.fan@nxp.com >
2020-07-14 15:23:47 +08:00
Peng Fan
a65409420d
clk: imx8mm: Add qspi clock
...
Add qspi clock
Signed-off-by: Peng Fan <peng.fan@nxp.com >
2020-07-14 15:23:47 +08:00
Peng Fan
7ddb4ef3e1
clk: imx8mm: fix clk set parent
...
Fix clk set parent, so we could still have correct clocks after
parent changing.
Signed-off-by: Peng Fan <peng.fan@nxp.com >
2020-07-14 15:23:47 +08:00
Simon Glass
f7ae49fc4f
common: Drop log.h from common header
...
Move this header out of the common header.
Signed-off-by: Simon Glass <sjg@chromium.org >
2020-05-18 21:19:18 -04:00
Sean Anderson
90cbfa50c2
clk: Fix error checking of dev_read_addr_ptr
...
dev_read_addr_ptr returns NULL on error, not FDT_ADDR_T_NONE.
Signed-off-by: Sean Anderson <seanga2@gmail.com >
2020-01-26 12:03:06 +01:00
Frieder Schrempf
f5edb0d86d
clk: imx: imx8mm: Fix the first root clock in imx8mm_ahb_sels[]
...
The 24MHz oscillator clock is referenced by "clock-osc-24m" and not
"osc_24m".
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de >
Reviewed-by: Peng Fan <peng.fan@nxp.com >
2019-12-06 13:57:42 +01:00
Peng Fan
ddf66d2159
clk: imx: imx8mm: add set_parent callback
...
Add set_parent callback, then assigned-clock-parents in dts could
be work.
Signed-off-by: Peng Fan <peng.fan@nxp.com >
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de >
Tested-by: Frieder Schrempf <frieder.schrempf@kontron.de >
2019-11-05 10:27:18 +01:00
Peng Fan
3bdd558737
clk: imx8mm: add enet clk
...
Add enet ref/timer/PHY_REF/root clk which are required to make enet
function well.
Signed-off-by: Peng Fan <peng.fan@nxp.com >
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de >
Tested-by: Frieder Schrempf <frieder.schrempf@kontron.de >
2019-11-05 10:27:18 +01:00
Peng Fan
f62ec5c4bb
clk: imx: add i.MX8MM clk driver
...
Add i.MX8MM clk driver support.
Signed-off-by: Peng Fan <peng.fan@nxp.com >
2019-08-22 00:10:15 +02:00