[PATCH v2 00/11] clk: imx: Trivial cleanups for clk_hw based API
From: Abel Vesa
Date: Fri Nov 22 2019 - 06:18:36 EST
These changes are cleanups for the clk_hw based API i.MX clock drivers switch
longterm effort. As mentioned in the commit messages, the end goal here is to
have all the i.MX drivers use clk_hw based API only.
I've put these all in a single patchset since they do not impact in any way
the expected behavior of the drivers and they are quite obvious trivial ones.
More patches to follow for the older i.MX platforms but those might not be as
harmless (and trivial) as these ones.
Changes since v1:
- added a patch that takes care of the register function handling when the
clk based API helpers are used, as suggested by Leonard Crestez.
- Renamed the SCCG to SSCG, as suggested by Leonard Crestez.
Abel Vesa (11):
clk: imx: Add correct failure handling for clk based helpers
clk: imx: Rename the SCCG to SSCG
clk: imx: Replace all the clk based helpers with macros
clk: imx: pllv1: Switch to clk_hw based API
clk: imx: pllv2: Switch to clk_hw based API
clk: imx: imx7ulp composite: Rename to show is clk_hw based
clk: imx: Rename sccg and frac pll register to suggest clk_hw
clk: imx: Rename the imx_clk_pllv4 to imply it's clk_hw based
clk: imx: Rename the imx_clk_pfdv2 to imply it's clk_hw based
clk: imx: Rename the imx_clk_divider_gate to imply it's clk_hw based
clk: imx7up: Rename the clks to hws
drivers/clk/imx/Makefile | 2 +-
drivers/clk/imx/clk-composite-7ulp.c | 2 +-
drivers/clk/imx/clk-divider-gate.c | 2 +-
drivers/clk/imx/clk-frac-pll.c | 7 +-
drivers/clk/imx/clk-imx7ulp.c | 182 ++++++------
drivers/clk/imx/clk-imx8mq.c | 6 +-
drivers/clk/imx/clk-pfdv2.c | 2 +-
drivers/clk/imx/clk-pllv1.c | 14 +-
drivers/clk/imx/clk-pllv2.c | 14 +-
drivers/clk/imx/clk-pllv4.c | 2 +-
drivers/clk/imx/clk-sccg-pll.c | 549 -----------------------------------
drivers/clk/imx/clk-sscg-pll.c | 549 +++++++++++++++++++++++++++++++++++
drivers/clk/imx/clk.h | 102 ++++---
13 files changed, 724 insertions(+), 709 deletions(-)
delete mode 100644 drivers/clk/imx/clk-sccg-pll.c
create mode 100644 drivers/clk/imx/clk-sscg-pll.c
--
2.7.4