Skip to content

Meson clock driver

Beniamino Galvani linux-amlogic u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ARM: dts: update gxbb-clkc.h from Linux 4.14include/dt-bindings/clock/gxbb-clkc.h+75 -01 reply
2/4ARM: meson: add clock measurement functionarch/arm/include/asm/arch-meson/clock.h arch/arm/mach-meson/Makefile arch/arm/mach-meson/clock.c+80 -12 replies
3/4clk: add Amlogic meson clock driverarch/arm/mach-meson/Kconfig drivers/clk/Makefile drivers/clk/clk_meson.c+199 -08 replies
4/4meson: use the clock driverarch/arm/include/asm/arch-meson/gxbb.h arch/arm/include/asm/arch-meson/i2c.h board/amlogic/odroid-c2/odroid-c2.c +2 more+19 -293 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchNeil ArmstrongSimon Glass
1/4R-b
2/4R-b
3/4R-b R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] Meson clock driver

Hi,

this is a basic clock driver for u-boot that supports enabling/disabling clock gates and getting their frequency. With this, some hardcoded initializations can be removed from the board code, and drivers can use the information from device tree to initialize clocks.

Beniamino Galvani (4):
ARM: dts: update gxbb-clkc.h from Linux 4.14
ARM: meson: add clock measurement function
clk: add Amlogic meson clock driver
meson: use the clock driver

 arch/arm/include/asm/arch-meson/clock.h |  34 ++++++
 arch/arm/include/asm/arch-meson/gxbb.h  |  10 --
 arch/arm/include/asm/arch-meson/i2c.h   |  11 --
 arch/arm/mach-meson/Kconfig             |   2 +
 arch/arm/mach-meson/Makefile            |   2 +-
 arch/arm/mach-meson/clock.c             |  45 ++++++++
 board/amlogic/odroid-c2/odroid-c2.c     |   4 +-
 board/amlogic/p212/p212.c               |   3 +-
 drivers/clk/Makefile                    |   1 +
 drivers/clk/clk_meson.c                 | 196 ++++++++++++++++++++++++++++++++
 drivers/i2c/meson_i2c.c                 |  20 +++-
 include/dt-bindings/clock/gxbb-clkc.h   |  75 ++++++++++++
 12 files changed, 373 insertions(+), 30 deletions(-)
 create mode 100644 arch/arm/include/asm/arch-meson/clock.h
 delete mode 100644 arch/arm/include/asm/arch-meson/i2c.h
 create mode 100644 arch/arm/mach-meson/clock.c
 create mode 100644 drivers/clk/clk_meson.c
Signature · 1 line
2.14.3