This is a continuation of an earlier series to enable the use of the
common clock framework to set the clocks used by the driver. This gets
rid of some conflicts, most notably commit bfc778cb93a ("driver: pwm:
pwm-imx: get and enable per/ipg clock using dm"), which would cause a
linker failure if CONFIG_CLK and CONFIG_IPUV3 were enabled
simultaneously. But, more importantly, this is how things _should_ be
done when we have CCF.

When making these changes, I considered adding driver support for the
LDB, which might have been a cleaner approach. Ultimately, I decided
against it since this is an old SoC, it would have required more work,
and in the end, all we need is the LDB to supply the clock when using
the synchronous external clock mode. I **hope** I got all the clocks
right.

Please let me know what you think!

Br,
Brian


Brian Ruley (5):
  clk: imx6q: apply clang-format
  clk: imx6q: add ipu and ldb clocks and dependencies
  pwm: pwm-imx: enable ipg or per clks only if CONFIG_CLK enabled
  video: imx: ipuv3: move clock code to legacy
  video: imx: ipuv3: use clock framework

 drivers/clk/imx/clk-imx6q.c        | 410 +++++++++++++++++++++++++----
 drivers/clk/imx/clk.h              |   9 +
 drivers/pwm/pwm-imx.c              |  48 ++--
 drivers/video/imx/Kconfig          |   7 +
 drivers/video/imx/Makefile         |   1 +
 drivers/video/imx/ipu.h            |  60 ++++-
 drivers/video/imx/ipu_clk_legacy.c | 310 ++++++++++++++++++++++
 drivers/video/imx/ipu_common.c     | 372 +++++---------------------
 drivers/video/imx/ipu_disp.c       | 142 ++++++++--
 drivers/video/imx/mxc_ipuv3_fb.c   |  17 ++
 10 files changed, 950 insertions(+), 426 deletions(-)
 create mode 100644 drivers/video/imx/ipu_clk_legacy.c

-- 
2.39.5

base-commit: b5213bbfdcb1812be510427857827ee8becb9f8f
branch: video-imx-dm-clk-fix

Reply via email to