[PATCH v6 0/3] Move mediatek system clock reset to reset folder
From: Bo-Chen Chen
Date: Fri Oct 21 2022 - 06:48:21 EST
This series move mediatek system clock reset to drivers/reset/mediatek.
Changes for v6:
1. Separate patches.
a. Move data and drivers to reset/mediatek.
b. Implement auxiliary bus driver in clk/mediatek/clk-mtk.c.
c. Implement auxiliary bus interface in reset/mediatek.
2. This version is based on 6.1-rc1.
Changes for v5:
1. Replace reset-mtxxxx.h with reset-mtxxxx.c and after using this,
we don't need to add many "#if #endif" in reset-mediatek-sysclk.c.
2. Use mediatek clock common KConfig to control whether to build in
reset-mtxxxx.c.
3. Rebased on linux-next-1007.
Changes for v4:
1. Rebased oo linux-next-1004.
2. Move reset data which are scattered around the mediatek drivers to
reset-mtxxxx.h.
3. Add reset data of mt6795.
Version for this series:
v5 : https://lore.kernel.org/all/20221007104842.13164-1-rex-bc.chen@xxxxxxxxxxxx/
v4 : https://lore.kernel.org/all/20221005051145.29676-1-rex-bc.chen@xxxxxxxxxxxx/
v3 : https://lore.kernel.org/all/20220929121031.17523-1-rex-bc.chen@xxxxxxxxxxxx/
v2 : https://lore.kernel.org/all/20220923045738.2027-1-rex-bc.chen@xxxxxxxxxxxx/
v1 : https://lore.kernel.org/all/20220922141107.10203-1-rex-bc.chen@xxxxxxxxxxxx/
RFC: https://lore.kernel.org/all/20220527090355.7354-1-rex-bc.chen@xxxxxxxxxxxx/
Bo-Chen Chen (3):
reset: mediatek: Move MediaTek system clock reset to reset/mediatek
clk: mediatek: Add auxiliary bus support for sysclk reset
reset: mediatek: Add auxiliary bus support for sysclk
drivers/clk/mediatek/Kconfig | 2 +
drivers/clk/mediatek/Makefile | 2 +-
drivers/clk/mediatek/clk-mt2701-eth.c | 10 +-
drivers/clk/mediatek/clk-mt2701-g3d.c | 10 +-
drivers/clk/mediatek/clk-mt2701-hif.c | 10 +-
drivers/clk/mediatek/clk-mt2701.c | 22 +-
drivers/clk/mediatek/clk-mt2712.c | 22 +-
drivers/clk/mediatek/clk-mt6795-infracfg.c | 22 +-
drivers/clk/mediatek/clk-mt6795-pericfg.c | 20 +-
drivers/clk/mediatek/clk-mt7622-eth.c | 10 +-
drivers/clk/mediatek/clk-mt7622-hif.c | 12 +-
drivers/clk/mediatek/clk-mt7622.c | 22 +-
drivers/clk/mediatek/clk-mt7629-eth.c | 10 +-
drivers/clk/mediatek/clk-mt7629-hif.c | 12 +-
drivers/clk/mediatek/clk-mt8135.c | 23 +-
drivers/clk/mediatek/clk-mt8173.c | 22 +-
drivers/clk/mediatek/clk-mt8183.c | 15 +-
drivers/clk/mediatek/clk-mt8186-infra_ao.c | 23 +-
drivers/clk/mediatek/clk-mt8192.c | 27 +-
drivers/clk/mediatek/clk-mt8195-infra_ao.c | 28 +-
drivers/clk/mediatek/clk-mtk.c | 62 ++-
drivers/clk/mediatek/clk-mtk.h | 8 +-
drivers/clk/mediatek/reset.c | 233 -----------
drivers/reset/Kconfig | 1 +
drivers/reset/Makefile | 1 +
drivers/reset/mediatek/Kconfig | 6 +
drivers/reset/mediatek/Makefile | 13 +
.../reset/mediatek/reset-mediatek-sysclk.c | 389 ++++++++++++++++++
drivers/reset/mediatek/reset-mt2701.c | 102 +++++
drivers/reset/mediatek/reset-mt2712.c | 42 ++
drivers/reset/mediatek/reset-mt6795.c | 61 +++
drivers/reset/mediatek/reset-mt7622.c | 91 ++++
drivers/reset/mediatek/reset-mt7629.c | 62 +++
drivers/reset/mediatek/reset-mt8135.c | 43 ++
drivers/reset/mediatek/reset-mt8173.c | 43 ++
drivers/reset/mediatek/reset-mt8183.c | 31 ++
drivers/reset/mediatek/reset-mt8186.c | 39 ++
drivers/reset/mediatek/reset-mt8192.c | 43 ++
drivers/reset/mediatek/reset-mt8195.c | 44 ++
.../linux/reset/reset-mediatek-sysclk.h | 61 +--
40 files changed, 1142 insertions(+), 557 deletions(-)
delete mode 100644 drivers/clk/mediatek/reset.c
create mode 100644 drivers/reset/mediatek/Kconfig
create mode 100644 drivers/reset/mediatek/Makefile
create mode 100644 drivers/reset/mediatek/reset-mediatek-sysclk.c
create mode 100644 drivers/reset/mediatek/reset-mt2701.c
create mode 100644 drivers/reset/mediatek/reset-mt2712.c
create mode 100644 drivers/reset/mediatek/reset-mt6795.c
create mode 100644 drivers/reset/mediatek/reset-mt7622.c
create mode 100644 drivers/reset/mediatek/reset-mt7629.c
create mode 100644 drivers/reset/mediatek/reset-mt8135.c
create mode 100644 drivers/reset/mediatek/reset-mt8173.c
create mode 100644 drivers/reset/mediatek/reset-mt8183.c
create mode 100644 drivers/reset/mediatek/reset-mt8186.c
create mode 100644 drivers/reset/mediatek/reset-mt8192.c
create mode 100644 drivers/reset/mediatek/reset-mt8195.c
rename drivers/clk/mediatek/reset.h => include/linux/reset/reset-mediatek-sysclk.h (60%)
--
2.18.0