]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
reset: amlogic: move drivers to a dedicated directory
authorJerome Brunet <jbrunet@baylibre.com>
Tue, 10 Sep 2024 16:32:49 +0000 (18:32 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 1 Oct 2024 08:40:32 +0000 (10:40 +0200)
The meson reset driver will be split in two part, one implemeting the ops,
the other providing the platform driver support. This will be done to
facilitate the addition of the auxiliary bus support.

To avoid making a mess in drivers/reset/ while doing so, move the amlogic
reset drivers to a dedicated directory.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20240910-meson-rst-aux-v5-7-60be62635d3e@baylibre.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/Kconfig
drivers/reset/Makefile
drivers/reset/amlogic/Kconfig [new file with mode: 0644]
drivers/reset/amlogic/Makefile [new file with mode: 0644]
drivers/reset/amlogic/reset-meson-audio-arb.c [moved from drivers/reset/reset-meson-audio-arb.c with 100% similarity]
drivers/reset/amlogic/reset-meson.c [moved from drivers/reset/reset-meson.c with 100% similarity]

index c730ba6f678b0be1d42c732ef38fff9692ee5572..d28c4401a31096f38ad9372504752419938648b3 100644 (file)
@@ -153,21 +153,6 @@ config RESET_MCHP_SPARX5
        help
          This driver supports switch core reset for the Microchip Sparx5 SoC.
 
-config RESET_MESON
-       tristate "Meson Reset Driver"
-       depends on ARCH_MESON || COMPILE_TEST
-       default ARCH_MESON
-       select REGMAP_MMIO
-       help
-         This enables the reset driver for Amlogic Meson SoCs.
-
-config RESET_MESON_AUDIO_ARB
-       tristate "Meson Audio Memory Arbiter Reset Driver"
-       depends on ARCH_MESON || COMPILE_TEST
-       help
-         This enables the reset driver for Audio Memory Arbiter of
-         Amlogic's A113 based SoCs
-
 config RESET_NPCM
        bool "NPCM BMC Reset Driver" if COMPILE_TEST
        default ARCH_NPCM
@@ -357,6 +342,7 @@ config RESET_ZYNQMP
        help
          This enables the reset controller driver for Xilinx ZynqMP SoCs.
 
+source "drivers/reset/amlogic/Kconfig"
 source "drivers/reset/starfive/Kconfig"
 source "drivers/reset/sti/Kconfig"
 source "drivers/reset/hisilicon/Kconfig"
index 4411a2a124d7de29808fcf36d0829393fc79af72..677c4d1e263201b0c7aef58373c991beda1cc345 100644 (file)
@@ -1,5 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 obj-y += core.o
+obj-y += amlogic/
 obj-y += hisilicon/
 obj-y += starfive/
 obj-y += sti/
@@ -21,8 +22,6 @@ obj-$(CONFIG_RESET_K210) += reset-k210.o
 obj-$(CONFIG_RESET_LANTIQ) += reset-lantiq.o
 obj-$(CONFIG_RESET_LPC18XX) += reset-lpc18xx.o
 obj-$(CONFIG_RESET_MCHP_SPARX5) += reset-microchip-sparx5.o
-obj-$(CONFIG_RESET_MESON) += reset-meson.o
-obj-$(CONFIG_RESET_MESON_AUDIO_ARB) += reset-meson-audio-arb.o
 obj-$(CONFIG_RESET_NPCM) += reset-npcm.o
 obj-$(CONFIG_RESET_NUVOTON_MA35D1) += reset-ma35d1.o
 obj-$(CONFIG_RESET_PISTACHIO) += reset-pistachio.o
diff --git a/drivers/reset/amlogic/Kconfig b/drivers/reset/amlogic/Kconfig
new file mode 100644 (file)
index 0000000..532e6a4
--- /dev/null
@@ -0,0 +1,14 @@
+config RESET_MESON
+       tristate "Meson Reset Driver"
+       depends on ARCH_MESON || COMPILE_TEST
+       default ARCH_MESON
+       select REGMAP_MMIO
+       help
+         This enables the reset driver for Amlogic Meson SoCs.
+
+config RESET_MESON_AUDIO_ARB
+       tristate "Meson Audio Memory Arbiter Reset Driver"
+       depends on ARCH_MESON || COMPILE_TEST
+       help
+         This enables the reset driver for Audio Memory Arbiter of
+         Amlogic's A113 based SoCs
diff --git a/drivers/reset/amlogic/Makefile b/drivers/reset/amlogic/Makefile
new file mode 100644 (file)
index 0000000..55509fc
--- /dev/null
@@ -0,0 +1,2 @@
+obj-$(CONFIG_RESET_MESON) += reset-meson.o
+obj-$(CONFIG_RESET_MESON_AUDIO_ARB) += reset-meson-audio-arb.o