[PATCH v6 0/3] Add a clock driver for the imx8mq

Angus Ainslie angus at akkea.ca
Tue Mar 29 15:52:21 CEST 2022


This is a DM clock driver for the imx8mq based on the linux kernel
driver and the u-boot imx8mm clock driver.

It also removes some code duplication in the imx8m[nmp] clock drivers.

Changes since v5

Added UART clocks
Added video clocks
Added DRAM clocks

Changes since v4

Rebased onto [1] so patch 4 of 4 was dropped.
Added CLK_COMPOSITE_CCF
Fixed const* clock definitions

Changes since v3:

Fixed driver spelling
Moved rate macros out of the header into the dot c

Changes since v2:

Added kernel commit IDs
Re-factored rate table code to remove duplication
Remove duplicate code by creating a common clk-imx8m

Changes since v1:

More verbose clock driver description
Added forgotten dt-bindings
Synced PLL frequencies with mainline kernel

[1] https://patchwork.ozlabs.org/project/uboot/patch/20220320203446.740178-2-seanga2@gmail.com/

Angus Ainslie (3):
  dt-bindings: imx8mq-clock: add mainline definitions
  clk: imx8mq: Add a clock driver for the imx8mq
  clk: imx8m: reduce rate table duplication

 drivers/clk/imx/Kconfig                  |  18 +
 drivers/clk/imx/Makefile                 |   2 +
 drivers/clk/imx/clk-imx8mm.c             |  60 +--
 drivers/clk/imx/clk-imx8mn.c             |  60 +--
 drivers/clk/imx/clk-imx8mp.c             |  65 +--
 drivers/clk/imx/clk-imx8mq.c             | 505 +++++++++++++++++++++++
 drivers/clk/imx/clk-pll14xx.c            |  61 +++
 drivers/clk/imx/clk.h                    |   4 +
 include/dt-bindings/clock/imx8mq-clock.h |  16 +-
 9 files changed, 625 insertions(+), 166 deletions(-)
 create mode 100644 drivers/clk/imx/clk-imx8mq.c

-- 
2.25.1



More information about the U-Boot mailing list