From 31de313dfdcf6971b0a1c30f86eabaa1eede74b3 Mon Sep 17 00:00:00 2001 From: "周琰杰 (Zhou Yanjie)" Date: Mon, 16 Nov 2020 22:19:06 +0800 Subject: PHY: Ingenic: Add USB PHY driver using generic PHY framework. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Used the generic PHY framework API to create the PHY, this driver supoorts USB OTG PHY used in JZ4770 SoC, JZ4775 SoC, JZ4780 SoC, X1000 SoC, X1830 SoC and X2000 SoC. Co-developed-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 周琰杰 (Zhou Yanjie) Tested-by: 周正 (Zhou Zheng) Tested-by: H. Nikolaus Schaller Reviewed-by: Paul Cercueil Link: https://lore.kernel.org/r/20201116141906.11758-4-zhouyanjie@wanyeetech.com Signed-off-by: Vinod Koul --- drivers/phy/ingenic/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 drivers/phy/ingenic/Kconfig (limited to 'drivers/phy/ingenic/Kconfig') diff --git a/drivers/phy/ingenic/Kconfig b/drivers/phy/ingenic/Kconfig new file mode 100644 index 000000000000..912b14e512cb --- /dev/null +++ b/drivers/phy/ingenic/Kconfig @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Phy drivers for Ingenic platforms +# +config PHY_INGENIC_USB + tristate "Ingenic SoCs USB PHY Driver" + depends on MIPS || COMPILE_TEST + depends on USB_SUPPORT + select GENERIC_PHY + help + This driver provides USB PHY support for the USB controller found + on the JZ-series and X-series SoCs from Ingenic. -- cgit v1.2.3 From 1dfd7b7849ea8bdbbe26d280d7b43c4ae66e730f Mon Sep 17 00:00:00 2001 From: Vinod Koul Date: Tue, 8 Dec 2020 10:23:00 +0530 Subject: phy: ingenic: depend on HAS_IOMEM The driver uses devm_ioremap_resource() which will not be built if CONFIG_HAS_IOMEM is not selected, so add depends on it to fix the build failure on few archs s390-linux-ld: drivers/phy/ingenic/phy-ingenic-usb.o: in function `ingenic_usb_phy_probe': >> phy-ingenic-usb.c:(.text+0xb66): undefined reference to `devm_platform_ioremap_resource' Reported-by: kernel test robot Link: https://lore.kernel.org/r/20201208045300.3637026-1-vkoul@kernel.org Signed-off-by: Vinod Koul --- drivers/phy/ingenic/Kconfig | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/phy/ingenic/Kconfig') diff --git a/drivers/phy/ingenic/Kconfig b/drivers/phy/ingenic/Kconfig index 912b14e512cb..f23cc109324b 100644 --- a/drivers/phy/ingenic/Kconfig +++ b/drivers/phy/ingenic/Kconfig @@ -6,6 +6,7 @@ config PHY_INGENIC_USB tristate "Ingenic SoCs USB PHY Driver" depends on MIPS || COMPILE_TEST depends on USB_SUPPORT + depends on HAS_IOMEM select GENERIC_PHY help This driver provides USB PHY support for the USB controller found -- cgit v1.2.3