]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
phy: Move Allwinner A31 D-PHY driver to drivers/phy/
authorMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 21 Jan 2019 15:45:50 +0000 (16:45 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 7 Feb 2019 08:34:49 +0000 (09:34 +0100)
Now that our MIPI D-PHY driver has been converted to the phy framework,
let's move it into the drivers/phy directory.

Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/2447609da5b80f148c79b2b2a263a0e779f3e82f.1548085432.git-series.maxime.ripard@bootlin.com
drivers/gpu/drm/sun4i/Kconfig
drivers/gpu/drm/sun4i/Makefile
drivers/phy/allwinner/Kconfig
drivers/phy/allwinner/Makefile
drivers/phy/allwinner/phy-sun6i-mipi-dphy.c [moved from drivers/gpu/drm/sun4i/sun6i_mipi_dphy.c with 100% similarity]

index 2b8db82c4bab16737234076c32d6ec3f454df4a7..1dbbc3a1b7636f87521d89a7843ffa64fac09eef 100644 (file)
@@ -45,20 +45,12 @@ config DRM_SUN6I_DSI
        default MACH_SUN8I
        select CRC_CCITT
        select DRM_MIPI_DSI
-       select DRM_SUN6I_DPHY
+       select PHY_SUN6I_MIPI_DPHY
        help
          Choose this option if you want have an Allwinner SoC with
          MIPI-DSI support. If M is selected the module will be called
          sun6i_mipi_dsi.
 
-config DRM_SUN6I_DPHY
-       tristate "Allwinner A31 MIPI D-PHY Support"
-       select GENERIC_PHY_MIPI_DPHY
-       help
-         Choose this option if you have an Allwinner SoC with
-         MIPI-DSI support. If M is selected, the module will be
-         called sun6i_mipi_dphy.
-
 config DRM_SUN8I_DW_HDMI
        tristate "Support for Allwinner version of DesignWare HDMI"
        depends on DRM_SUN4I
index 1e2320d824b541420bdfa8f6f17c50eed59b121c..0d04f2447b01caf08de771643d2536239c62654c 100644 (file)
@@ -34,7 +34,6 @@ ifdef CONFIG_DRM_SUN4I_BACKEND
 obj-$(CONFIG_DRM_SUN4I)                += sun4i-frontend.o
 endif
 obj-$(CONFIG_DRM_SUN4I_HDMI)   += sun4i-drm-hdmi.o
-obj-$(CONFIG_DRM_SUN6I_DPHY)   += sun6i_mipi_dphy.o
 obj-$(CONFIG_DRM_SUN6I_DSI)    += sun6i_mipi_dsi.o
 obj-$(CONFIG_DRM_SUN8I_DW_HDMI)        += sun8i-drm-hdmi.o
 obj-$(CONFIG_DRM_SUN8I_MIXER)  += sun8i-mixer.o
index cdc1e745ba47f052d7a9e43880de7b6e741e2be7..fb1204bcc4548a23d2864b011cf8eefb9eb84e5f 100644 (file)
@@ -17,6 +17,18 @@ config PHY_SUN4I_USB
          This driver controls the entire USB PHY block, both the USB OTG
          parts, as well as the 2 regular USB 2 host PHYs.
 
+config PHY_SUN6I_MIPI_DPHY
+       tristate "Allwinner A31 MIPI D-PHY Support"
+       depends on ARCH_SUNXI && HAS_IOMEM && OF
+       depends on RESET_CONTROLLER
+       select GENERIC_PHY
+       select GENERIC_PHY_MIPI_DPHY
+       select REGMAP_MMIO
+       help
+         Choose this option if you have an Allwinner SoC with
+         MIPI-DSI support. If M is selected, the module will be
+         called sun6i_mipi_dphy.
+
 config PHY_SUN9I_USB
        tristate "Allwinner sun9i SoC USB PHY driver"
        depends on ARCH_SUNXI && HAS_IOMEM && OF
index 8605529c01a11bb7e41ef349e7f5f38fb84aef9b..7d0053efbfaa640af8a5b9b02704f7548d7f38a6 100644 (file)
@@ -1,2 +1,3 @@
 obj-$(CONFIG_PHY_SUN4I_USB)            += phy-sun4i-usb.o
+obj-$(CONFIG_PHY_SUN6I_MIPI_DPHY)      += phy-sun6i-mipi-dphy.o
 obj-$(CONFIG_PHY_SUN9I_USB)            += phy-sun9i-usb.o