[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230711142114.751632-1-ulf.hansson@linaro.org>
Date: Tue, 11 Jul 2023 16:21:14 +0200
From: Ulf Hansson <ulf.hansson@...aro.org>
To: Arnd Bergmann <arnd@...db.de>, Olof Johansson <olof@...om.net>
Cc: Ulf Hansson <ulf.hansson@...aro.org>, linux-pm@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>,
linux-mediatek@...ts.infradead.org
Subject: [PATCH v2 07/18] soc: mediatek: Move power-domain drivers to the genpd dir
To simplify with maintenance let's move the mediatek power-domain drivers
to the new genpd directory. Going forward, patches are intended to be
managed through a separate git tree, according to MAINTAINERS.
Cc: Matthias Brugger <matthias.bgg@...il.com>
Cc: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
Cc: <linux-mediatek@...ts.infradead.org>
Signed-off-by: Ulf Hansson <ulf.hansson@...aro.org>
---
drivers/genpd/Makefile | 1 +
drivers/genpd/mediatek/Makefile | 3 +++
drivers/{soc => genpd}/mediatek/mt6795-pm-domains.h | 0
drivers/{soc => genpd}/mediatek/mt8167-pm-domains.h | 0
drivers/{soc => genpd}/mediatek/mt8173-pm-domains.h | 0
drivers/{soc => genpd}/mediatek/mt8183-pm-domains.h | 0
drivers/{soc => genpd}/mediatek/mt8186-pm-domains.h | 0
drivers/{soc => genpd}/mediatek/mt8188-pm-domains.h | 0
drivers/{soc => genpd}/mediatek/mt8192-pm-domains.h | 0
drivers/{soc => genpd}/mediatek/mt8195-pm-domains.h | 0
drivers/{soc => genpd}/mediatek/mtk-pm-domains.c | 0
drivers/{soc => genpd}/mediatek/mtk-pm-domains.h | 0
drivers/{soc => genpd}/mediatek/mtk-scpsys.c | 0
drivers/soc/mediatek/Makefile | 2 --
14 files changed, 4 insertions(+), 2 deletions(-)
create mode 100644 drivers/genpd/mediatek/Makefile
rename drivers/{soc => genpd}/mediatek/mt6795-pm-domains.h (100%)
rename drivers/{soc => genpd}/mediatek/mt8167-pm-domains.h (100%)
rename drivers/{soc => genpd}/mediatek/mt8173-pm-domains.h (100%)
rename drivers/{soc => genpd}/mediatek/mt8183-pm-domains.h (100%)
rename drivers/{soc => genpd}/mediatek/mt8186-pm-domains.h (100%)
rename drivers/{soc => genpd}/mediatek/mt8188-pm-domains.h (100%)
rename drivers/{soc => genpd}/mediatek/mt8192-pm-domains.h (100%)
rename drivers/{soc => genpd}/mediatek/mt8195-pm-domains.h (100%)
rename drivers/{soc => genpd}/mediatek/mtk-pm-domains.c (100%)
rename drivers/{soc => genpd}/mediatek/mtk-pm-domains.h (100%)
rename drivers/{soc => genpd}/mediatek/mtk-scpsys.c (100%)
diff --git a/drivers/genpd/Makefile b/drivers/genpd/Makefile
index 6b9e9fe907f3..1a0a56925756 100644
--- a/drivers/genpd/Makefile
+++ b/drivers/genpd/Makefile
@@ -3,3 +3,4 @@ obj-y += actions/
obj-y += amlogic/
obj-y += apple/
obj-y += bcm/
+obj-y += mediatek/
diff --git a/drivers/genpd/mediatek/Makefile b/drivers/genpd/mediatek/Makefile
new file mode 100644
index 000000000000..8cde09e654b3
--- /dev/null
+++ b/drivers/genpd/mediatek/Makefile
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0-only
+obj-$(CONFIG_MTK_SCPSYS) += mtk-scpsys.o
+obj-$(CONFIG_MTK_SCPSYS_PM_DOMAINS) += mtk-pm-domains.o
diff --git a/drivers/soc/mediatek/mt6795-pm-domains.h b/drivers/genpd/mediatek/mt6795-pm-domains.h
similarity index 100%
rename from drivers/soc/mediatek/mt6795-pm-domains.h
rename to drivers/genpd/mediatek/mt6795-pm-domains.h
diff --git a/drivers/soc/mediatek/mt8167-pm-domains.h b/drivers/genpd/mediatek/mt8167-pm-domains.h
similarity index 100%
rename from drivers/soc/mediatek/mt8167-pm-domains.h
rename to drivers/genpd/mediatek/mt8167-pm-domains.h
diff --git a/drivers/soc/mediatek/mt8173-pm-domains.h b/drivers/genpd/mediatek/mt8173-pm-domains.h
similarity index 100%
rename from drivers/soc/mediatek/mt8173-pm-domains.h
rename to drivers/genpd/mediatek/mt8173-pm-domains.h
diff --git a/drivers/soc/mediatek/mt8183-pm-domains.h b/drivers/genpd/mediatek/mt8183-pm-domains.h
similarity index 100%
rename from drivers/soc/mediatek/mt8183-pm-domains.h
rename to drivers/genpd/mediatek/mt8183-pm-domains.h
diff --git a/drivers/soc/mediatek/mt8186-pm-domains.h b/drivers/genpd/mediatek/mt8186-pm-domains.h
similarity index 100%
rename from drivers/soc/mediatek/mt8186-pm-domains.h
rename to drivers/genpd/mediatek/mt8186-pm-domains.h
diff --git a/drivers/soc/mediatek/mt8188-pm-domains.h b/drivers/genpd/mediatek/mt8188-pm-domains.h
similarity index 100%
rename from drivers/soc/mediatek/mt8188-pm-domains.h
rename to drivers/genpd/mediatek/mt8188-pm-domains.h
diff --git a/drivers/soc/mediatek/mt8192-pm-domains.h b/drivers/genpd/mediatek/mt8192-pm-domains.h
similarity index 100%
rename from drivers/soc/mediatek/mt8192-pm-domains.h
rename to drivers/genpd/mediatek/mt8192-pm-domains.h
diff --git a/drivers/soc/mediatek/mt8195-pm-domains.h b/drivers/genpd/mediatek/mt8195-pm-domains.h
similarity index 100%
rename from drivers/soc/mediatek/mt8195-pm-domains.h
rename to drivers/genpd/mediatek/mt8195-pm-domains.h
diff --git a/drivers/soc/mediatek/mtk-pm-domains.c b/drivers/genpd/mediatek/mtk-pm-domains.c
similarity index 100%
rename from drivers/soc/mediatek/mtk-pm-domains.c
rename to drivers/genpd/mediatek/mtk-pm-domains.c
diff --git a/drivers/soc/mediatek/mtk-pm-domains.h b/drivers/genpd/mediatek/mtk-pm-domains.h
similarity index 100%
rename from drivers/soc/mediatek/mtk-pm-domains.h
rename to drivers/genpd/mediatek/mtk-pm-domains.h
diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/genpd/mediatek/mtk-scpsys.c
similarity index 100%
rename from drivers/soc/mediatek/mtk-scpsys.c
rename to drivers/genpd/mediatek/mtk-scpsys.c
diff --git a/drivers/soc/mediatek/Makefile b/drivers/soc/mediatek/Makefile
index 8c0ddacbcde8..9d3ce7878c5c 100644
--- a/drivers/soc/mediatek/Makefile
+++ b/drivers/soc/mediatek/Makefile
@@ -4,8 +4,6 @@ obj-$(CONFIG_MTK_DEVAPC) += mtk-devapc.o
obj-$(CONFIG_MTK_INFRACFG) += mtk-infracfg.o
obj-$(CONFIG_MTK_PMIC_WRAP) += mtk-pmic-wrap.o
obj-$(CONFIG_MTK_REGULATOR_COUPLER) += mtk-regulator-coupler.o
-obj-$(CONFIG_MTK_SCPSYS) += mtk-scpsys.o
-obj-$(CONFIG_MTK_SCPSYS_PM_DOMAINS) += mtk-pm-domains.o
obj-$(CONFIG_MTK_MMSYS) += mtk-mmsys.o
obj-$(CONFIG_MTK_MMSYS) += mtk-mutex.o
obj-$(CONFIG_MTK_SVS) += mtk-svs.o
--
2.34.1
Powered by blists - more mailing lists