[U-Boot] [RFC 0/8] i.MX: Add initial CLK support

Jagan Teki jagan at amarulasolutions.com
Mon Jul 9 18:30:01 UTC 2018


One of the blocking area where fec_mxc is unlikely
to move dm can be CLK support, this series trying
to add support for it and concentrated on ENET clocking
for i.MX6QDL and i.MX6UL.

I've verified this on i.MX6QDL, but the reason for
sending this is an 'RFC' is there are some quite few
issues with existing fec_mxc driver regarding mdio handling.
The dm vs non-dm code in fec_mxc looks very uncomfortable
to read and add new support, so I would like create one
separate dm driver to make dm related changes if all agree?

know issues:
- CLK driver still using enable_fec_anatop_clock function
  to set the clock, but if we handling this in CLK we need
  anatop via OF_LIVE. will try this next version
- fec_mxc is passing input ref clock, ENET_50MHZ. don't
  know how to make this dynamic, or this based on MII or 
  any other feature, need help.
- ipu_common has legacy clk support, since may boards are using
  ipu_common better to handle this via CLK so-that move to CLK
  become easy and meaningful.  

patch 1, clk/kconfig ordering

patch 2, sample i.MX6QDL DM CLK template

patch 3, 4 Implement ENET clocks for i.MX6QDL and i.MX6UL

patch 5, add generic_clk_valid function

patch 6, add CLK support in fec_mxc.c

patch 7,8 enable CLK support on engicam boards

Jagan Teki (8):
  clk: Kconfig: Ascending order to sub directiory kconfigs
  clk: Add DM CLK driver template for i.MX6QDL
  clk: imx: imx6q: Implement ENET clocks
  clk: imx: imx6ul: Implement ENET clocks
  clk: Add generic_clk_valid
  net: fec_mxc: Add clock support via CLK
  imx6ul: engicam: Enable CLK_IMX
  configs: icorem6_rqs: Enable CLK_IMX

 arch/arm/mach-imx/mx6/Kconfig       |  2 +
 configs/imx6qdl_icore_rqs_defconfig |  1 +
 drivers/clk/Kconfig                 |  9 +--
 drivers/clk/Makefile                |  1 +
 drivers/clk/imx/Kconfig             | 25 ++++++++
 drivers/clk/imx/Makefile            |  8 +++
 drivers/clk/imx/clk_imx6q.c         | 89 +++++++++++++++++++++++++++
 drivers/clk/imx/clk_imx6ul.c        | 95 +++++++++++++++++++++++++++++
 drivers/net/fec_mxc.c               | 58 ++++++++++++++++++
 drivers/net/fec_mxc.h               |  6 ++
 drivers/video/ipu_common.c          |  8 +++
 include/clk-uclass.h                | 10 +++
 12 files changed, 308 insertions(+), 4 deletions(-)
 create mode 100644 drivers/clk/imx/Kconfig
 create mode 100644 drivers/clk/imx/Makefile
 create mode 100644 drivers/clk/imx/clk_imx6q.c
 create mode 100644 drivers/clk/imx/clk_imx6ul.c

-- 
2.17.1



More information about the U-Boot mailing list