Skip to content

clk: imx: Register the dram_apb and dram_alt as read-only

Abel Vesa linux-arm-kernel linux-clk lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew
  2. v1 RFC4 patches 1 replySuperseded

Changes in v2 from the cover letter

* allow generic composite clock registration with .is_enabled gate op only

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5clk: Add clk_gate_ro_ops for read-only gate clocksdrivers/clk/clk-gate.c include/linux/clk-provider.h+6 -00 replies
2/5clk: Add CLK_GET_PARENT_NOCACHE flagdrivers/clk/clk.c include/linux/clk-provider.h+18 -140 replies
3/5clk: composite: Allow gate ops with only .is_enabled opdrivers/clk/clk-composite.c+10 -90 replies
4/5clk: imx: composite-8m: Add DRAM clock registration variantdrivers/clk/imx/clk-composite-8m.c drivers/clk/imx/clk.h+18 -10 replies
5/5clk: imx8m: Use dram variant registration for dram clocksdrivers/clk/imx/clk-imx8mm.c drivers/clk/imx/clk-imx8mn.c drivers/clk/imx/clk-imx8mp.c +1 more+8 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] clk: imx: Register the dram_apb and dram_alt as read-only

On i.MX8M platforms the dram_apb and dram_alt are controlled from EL3. So in order to keep track of the actual clock tree in kernel, we need to actually declare the clocks but never write to any of their registes. We do that by registering the clocks with only the ops that read but never write the registers.

Changes since v1:
* allow generic composite clock registration with .is_enabled gate op only

Abel Vesa (5):
clk: Add clk_gate_ro_ops for read-only gate clocks
clk: Add CLK_GET_PARENT_NOCACHE flag
clk: composite: Allow gate ops with only .is_enabled op
clk: imx: composite-8m: Add DRAM clock registration variant
clk: imx8m: Use dram variant registration for dram clocks

 drivers/clk/clk-composite.c        | 19 ++++++++++---------
 drivers/clk/clk-gate.c             |  5 +++++
 drivers/clk/clk.c                  | 31 +++++++++++++++++--------------
 drivers/clk/imx/clk-composite-8m.c | 12 +++++++++++-
 drivers/clk/imx/clk-imx8mm.c       |  4 ++--
 drivers/clk/imx/clk-imx8mn.c       |  4 ++--
 drivers/clk/imx/clk-imx8mp.c       |  4 ++--
 drivers/clk/imx/clk-imx8mq.c       |  4 ++--
 drivers/clk/imx/clk.h              |  7 +++++++
 include/linux/clk-provider.h       |  2 ++
 10 files changed, 60 insertions(+), 32 deletions(-)
Signature · 1 line
2.7.4