mbox series

[v2,0/4] clk: meson: rework drivers dependencies

Message ID 20190201125841.26785-1-jbrunet@baylibre.com (mailing list archive)
Headers show
Series clk: meson: rework drivers dependencies | expand

Message

Jerome Brunet Feb. 1, 2019, 12:58 p.m. UTC
The goal of this patchset to clean-up the dependencies between
the controllers and the different clock drivers provided in the meson
directory. The expected result is that each controllers can pick the
the clock drivers they need, without necessarily pulling everything.

This is becoming important as we are adding more and more controllers
to support new amlogic SoC.

Patch 1 and 2 are out of the meson directory but have been acked by
Stephen.

Changes since v1 [0]:
 * Squashed patch 4 to 14
 * Sort Makefile alphanumerically

[0]: https://lkml.kernel.org/r/20190128180430.28689-1-jbrunet@baylibre.com

Jerome Brunet (4):
  clk: export some clk_hw function symbols for module drivers
  clk: meson: use CONFIG_ARCH_MESON to enter meson clk directory
  clk: meson: axg-audio does not require syscon
  clk: meson: rework and clean drivers dependencies

 drivers/clk/Makefile                          |   2 +-
 drivers/clk/clk.c                             |   3 +
 drivers/clk/meson/Kconfig                     |  84 +++++++---
 drivers/clk/meson/Makefile                    |  27 ++--
 drivers/clk/meson/axg-aoclk.c                 |   4 +-
 drivers/clk/meson/axg-audio.c                 |   5 +-
 drivers/clk/meson/axg.c                       |   5 +-
 drivers/clk/meson/clk-dualdiv.c               |  10 +-
 drivers/clk/meson/clk-dualdiv.h               |  33 ++++
 drivers/clk/meson/clk-input.c                 |   7 +-
 drivers/clk/meson/clk-input.h                 |  19 +++
 drivers/clk/meson/clk-mpll.c                  |  12 +-
 drivers/clk/meson/clk-mpll.h                  |  30 ++++
 drivers/clk/meson/clk-phase.c                 |  75 ++++++++-
 drivers/clk/meson/clk-phase.h                 |  26 ++++
 drivers/clk/meson/clk-pll.c                   |  13 +-
 drivers/clk/meson/clk-pll.h                   |  43 ++++++
 drivers/clk/meson/clk-regmap.c                |   5 +
 drivers/clk/meson/clk-regmap.h                |  15 ++
 drivers/clk/meson/clk-triphase.c              |  68 --------
 drivers/clk/meson/clkc.h                      | 146 ------------------
 drivers/clk/meson/gxbb-aoclk.c                |   4 +-
 drivers/clk/meson/gxbb.c                      |   5 +-
 drivers/clk/meson/meson-aoclk.c               |   2 +
 drivers/clk/meson/meson-aoclk.h               |   5 +-
 drivers/clk/meson/meson8b.c                   |   3 +-
 drivers/clk/meson/parm.h                      |  46 ++++++
 drivers/clk/meson/sclk-div.c                  |  10 +-
 .../clk/meson/{clkc-audio.h => sclk-div.h}    |  16 +-
 drivers/clk/meson/vid-pll-div.c               |  10 +-
 drivers/clk/meson/vid-pll-div.h               |  20 +++
 31 files changed, 470 insertions(+), 283 deletions(-)
 create mode 100644 drivers/clk/meson/clk-dualdiv.h
 create mode 100644 drivers/clk/meson/clk-input.h
 create mode 100644 drivers/clk/meson/clk-mpll.h
 create mode 100644 drivers/clk/meson/clk-phase.h
 create mode 100644 drivers/clk/meson/clk-pll.h
 delete mode 100644 drivers/clk/meson/clk-triphase.c
 delete mode 100644 drivers/clk/meson/clkc.h
 create mode 100644 drivers/clk/meson/parm.h
 rename drivers/clk/meson/{clkc-audio.h => sclk-div.h} (54%)
 create mode 100644 drivers/clk/meson/vid-pll-div.h

Comments

Neil Armstrong Feb. 2, 2019, 4:47 p.m. UTC | #1
Hi,

Le 01/02/2019 13:58, Jerome Brunet a écrit :
> The goal of this patchset to clean-up the dependencies between
> the controllers and the different clock drivers provided in the meson
> directory. The expected result is that each controllers can pick the
> the clock drivers they need, without necessarily pulling everything.
> 
> This is becoming important as we are adding more and more controllers
> to support new amlogic SoC.
> 
> Patch 1 and 2 are out of the meson directory but have been acked by
> Stephen.
> 
> Changes since v1 [0]:
>  * Squashed patch 4 to 14
>  * Sort Makefile alphanumerically
> 
> [0]: https://lkml.kernel.org/r/20190128180430.28689-1-jbrunet@baylibre.com
> 
> Jerome Brunet (4):
>   clk: export some clk_hw function symbols for module drivers
>   clk: meson: use CONFIG_ARCH_MESON to enter meson clk directory
>   clk: meson: axg-audio does not require syscon
>   clk: meson: rework and clean drivers dependencies
> 
>  drivers/clk/Makefile                          |   2 +-
>  drivers/clk/clk.c                             |   3 +
>  drivers/clk/meson/Kconfig                     |  84 +++++++---
>  drivers/clk/meson/Makefile                    |  27 ++--
>  drivers/clk/meson/axg-aoclk.c                 |   4 +-
>  drivers/clk/meson/axg-audio.c                 |   5 +-
>  drivers/clk/meson/axg.c                       |   5 +-
>  drivers/clk/meson/clk-dualdiv.c               |  10 +-
>  drivers/clk/meson/clk-dualdiv.h               |  33 ++++
>  drivers/clk/meson/clk-input.c                 |   7 +-
>  drivers/clk/meson/clk-input.h                 |  19 +++
>  drivers/clk/meson/clk-mpll.c                  |  12 +-
>  drivers/clk/meson/clk-mpll.h                  |  30 ++++
>  drivers/clk/meson/clk-phase.c                 |  75 ++++++++-
>  drivers/clk/meson/clk-phase.h                 |  26 ++++
>  drivers/clk/meson/clk-pll.c                   |  13 +-
>  drivers/clk/meson/clk-pll.h                   |  43 ++++++
>  drivers/clk/meson/clk-regmap.c                |   5 +
>  drivers/clk/meson/clk-regmap.h                |  15 ++
>  drivers/clk/meson/clk-triphase.c              |  68 --------
>  drivers/clk/meson/clkc.h                      | 146 ------------------
>  drivers/clk/meson/gxbb-aoclk.c                |   4 +-
>  drivers/clk/meson/gxbb.c                      |   5 +-
>  drivers/clk/meson/meson-aoclk.c               |   2 +
>  drivers/clk/meson/meson-aoclk.h               |   5 +-
>  drivers/clk/meson/meson8b.c                   |   3 +-
>  drivers/clk/meson/parm.h                      |  46 ++++++
>  drivers/clk/meson/sclk-div.c                  |  10 +-
>  .../clk/meson/{clkc-audio.h => sclk-div.h}    |  16 +-
>  drivers/clk/meson/vid-pll-div.c               |  10 +-
>  drivers/clk/meson/vid-pll-div.h               |  20 +++
>  31 files changed, 470 insertions(+), 283 deletions(-)
>  create mode 100644 drivers/clk/meson/clk-dualdiv.h
>  create mode 100644 drivers/clk/meson/clk-input.h
>  create mode 100644 drivers/clk/meson/clk-mpll.h
>  create mode 100644 drivers/clk/meson/clk-phase.h
>  create mode 100644 drivers/clk/meson/clk-pll.h
>  delete mode 100644 drivers/clk/meson/clk-triphase.c
>  delete mode 100644 drivers/clk/meson/clkc.h
>  create mode 100644 drivers/clk/meson/parm.h
>  rename drivers/clk/meson/{clkc-audio.h => sclk-div.h} (54%)
>  create mode 100644 drivers/clk/meson/vid-pll-div.h
> 

Applied to next/drivers for Linux 5.1-rc1

Neil