Skip to content

Add Amlogic meson8b clock gates

Alexander Müller linux-amlogic linux-clk 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 posting 2/20 of 6 patches 0 repliesNew
  2. v5 Latest6 patches 0 repliesNew
  3. v4 posting 1/26 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v36 patches0 repliesSuperseded
v27 patches0 repliesSuperseded
v17 patches0 repliesSuperseded

Changes in v5 from the cover letter

- Rebased to linux-clk/clk-meson-gxbb-ao branch

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6clk: meson: Rename meson8b-clkc.c to reflect gxbb naming conventiondrivers/clk/meson/Makefile drivers/clk/meson/meson8b.c+1 -10 replies
2/6meson: clk: Move register definitions to meson8b.hdrivers/clk/meson/meson8b.c drivers/clk/meson/meson8b.h+41 -160 replies
3/6meson: clk: Rename register names according to Amlogic datasheetdrivers/clk/meson/meson8b.c drivers/clk/meson/meson8b.h+18 -190 replies
4/6clk: meson: Copy meson8b CLKID defines to private header filedrivers/clk/meson/meson8b.c drivers/clk/meson/meson8b.h include/dt-bindings/clock/meson8b-clkc.h+107 -30 replies
5/6gxbb: clk: Adjust MESON_GATE macro to be shared with meson8bdrivers/clk/meson/clkc.h drivers/clk/meson/gxbb.c+82 -820 replies
6/6meson: clk: Add support for clock gatesdrivers/clk/meson/meson8b.c drivers/clk/meson/meson8b.h+254 -00 replies

Reviews trailers per patch

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

Read the v5 thread

Cover letter [PATCH v5 0/6] Add Amlogic meson8b clock gates

This patch series adds support for the Amlogic meson8b clock gates. The Amlogic U-Boot disables most of them at boot. In order to enable ethernet, USB and other components it's mandatory to enable the clock gates when loading the corresponding drivers.

The meson8b clock gate support is based on the previous work done for Amlogic gxbb currently available in clk-next.

Changes since v4:
- Rebased to linux-clk/clk-meson-gxbb-ao branch

Changes since v3:
- Include include/dt-bindings/clock/meson8b-clkc.h to prevent code duplicates

Changes since v2:
- Added commit description for patch 2
- Changed CLK_NR_CLOCKS macro to constant int
- Moved back MESON_GATE macro to share it between gxbb and meson8b

Changes since v1:
- Fixed GXBB spelling
- Moved newly introduced CLKID defines to private header
- Moved CLK_NR_CLKS define from DT binding to private header
- Rebased to linux-amlogic/v4.7/integ making Kconfig select obsolete

Alexander M?ller (6):
clk: meson: Rename meson8b-clkc.c to reflect gxbb naming convention
meson: clk: Move register definitions to meson8b.h
meson: clk: Rename register names according to Amlogic datasheet
clk: meson: Copy meson8b CLKID defines to private header file
gxbb: clk: Adjust MESON_GATE macro to be shared with meson8b
meson: clk: Add support for clock gates

 drivers/clk/meson/Makefile                      |   2 +-
 drivers/clk/meson/clkc.h                        |   2 +-
 drivers/clk/meson/gxbb.c                        | 162 ++++++-------
 drivers/clk/meson/{meson8b-clkc.c => meson8b.c} | 293 +++++++++++++++++++++---
 drivers/clk/meson/meson8b.h                     | 151 ++++++++++++
 include/dt-bindings/clock/meson8b-clkc.h        |   2 -
 6 files changed, 497 insertions(+), 115 deletions(-)
 rename drivers/clk/meson/{meson8b-clkc.c => meson8b.c} (51%)
 create mode 100644 drivers/clk/meson/meson8b.h
Signature · 1 line
2.5.0