ARM: uniphier: switch over to generic EHCI driver
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 2 Feb 2016 12:11:39 +0000 (21:11 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 14 Feb 2016 07:51:07 +0000 (16:51 +0900)
The UniPhier EHCI driver (drivers/usb/host/ehci-uniphier.c) does
nothing special but set the base address and handle reset/clock.

Since commit 4feefdcfe916 ("usb: add clock support for generic EHCI"),
the generic one (drivers/usb/host/ehci-generic.c) can do those, too.

We no longer need to stick to the dedicated driver.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/clk/clk-ph1-ld4.c
arch/arm/mach-uniphier/clk/clk-ph1-pro4.c
arch/arm/mach-uniphier/pinctrl/pinctrl-ph1-ld4.c
arch/arm/mach-uniphier/pinctrl/pinctrl-ph1-pro4.c
arch/arm/mach-uniphier/pinctrl/pinctrl-ph1-sld3.c
arch/arm/mach-uniphier/pinctrl/pinctrl-ph1-sld8.c
configs/uniphier_ld4_sld8_defconfig
configs/uniphier_sld3_defconfig

index 4de9bfb102c605b2ad26c521b53998ec2be275b1..7a34beea0334065aa98749c8eb871719827a80d9 100644 (file)
@@ -18,7 +18,7 @@ void ph1_ld4_clk_init(void)
 #ifdef CONFIG_UNIPHIER_ETH
        tmp |= SC_RSTCTRL_NRST_ETHER;
 #endif
-#ifdef CONFIG_USB_EHCI_UNIPHIER
+#ifdef CONFIG_USB_EHCI
        tmp |= SC_RSTCTRL_NRST_STDMAC;
 #endif
 #ifdef CONFIG_NAND_DENALI
@@ -32,7 +32,7 @@ void ph1_ld4_clk_init(void)
 #ifdef CONFIG_UNIPHIER_ETH
        tmp |= SC_CLKCTRL_CEN_ETHER;
 #endif
-#ifdef CONFIG_USB_EHCI_UNIPHIER
+#ifdef CONFIG_USB_EHCI
        tmp |= SC_CLKCTRL_CEN_MIO | SC_CLKCTRL_CEN_STDMAC;
 #endif
 #ifdef CONFIG_NAND_DENALI
index 3df017edd27638ac2853f447f96273306a2931d4..c784c314e157824d9c2ae99a7b1a2b7923297c80 100644 (file)
@@ -22,7 +22,7 @@ void ph1_pro4_clk_init(void)
 #ifdef CONFIG_UNIPHIER_ETH
        tmp |= SC_RSTCTRL_NRST_ETHER;
 #endif
-#ifdef CONFIG_USB_EHCI_UNIPHIER
+#ifdef CONFIG_USB_EHCI
        tmp |= SC_RSTCTRL_NRST_STDMAC;
 #endif
 #ifdef CONFIG_NAND_DENALI
@@ -47,7 +47,7 @@ void ph1_pro4_clk_init(void)
 #ifdef CONFIG_UNIPHIER_ETH
        tmp |= SC_CLKCTRL_CEN_ETHER;
 #endif
-#ifdef CONFIG_USB_EHCI_UNIPHIER
+#ifdef CONFIG_USB_EHCI
        tmp |= SC_CLKCTRL_CEN_MIO | SC_CLKCTRL_CEN_STDMAC;
 #endif
 #ifdef CONFIG_NAND_DENALI
index 8168a63d313a5a7df7aa2ef27fc49ad06cbf7780..3c06b30a9e8532253c72b297e090a6827b56fc8a 100644 (file)
@@ -35,7 +35,7 @@ void ph1_ld4_pin_init(void)
        sg_set_pinsel(31, 0, 8, 4);     /* MMCDAT7 -> NFD7_GB */
 #endif
 
-#ifdef CONFIG_USB_EHCI_UNIPHIER
+#ifdef CONFIG_USB_EHCI
        sg_set_pinsel(53, 0, 8, 4);     /* USB0VBUS -> USB0VBUS */
        sg_set_pinsel(54, 0, 8, 4);     /* USB0OD   -> USB0OD */
        sg_set_pinsel(55, 0, 8, 4);     /* USB1VBUS -> USB1VBUS */
index 23b5f9349abb6b4611f01126cf0c74092264289a..d5541a9bebcb783452c4bbda23cbc4eef5fe141a 100644 (file)
@@ -40,7 +40,7 @@ void ph1_pro4_pin_init(void)
        sg_set_pinsel(183, 0, 4, 8);    /* USB1OD   -> USB1OD */
 #endif
 
-#ifdef CONFIG_USB_EHCI_UNIPHIER
+#ifdef CONFIG_USB_EHCI
        sg_set_pinsel(184, 0, 4, 8);    /* USB2VBUS -> USB2VBUS */
        sg_set_pinsel(185, 0, 4, 8);    /* USB2OD   -> USB2OD */
        sg_set_pinsel(187, 0, 4, 8);    /* USB3VBUS -> USB3VBUS */
index 6fc0dee70e404aba3aa914e87453582d7c82840e..367d9f3bbc277991fdc0ac108a0b016a7c60849b 100644 (file)
@@ -9,7 +9,7 @@
 
 void ph1_sld3_pin_init(void)
 {
-#ifdef CONFIG_USB_EHCI_UNIPHIER
+#ifdef CONFIG_USB_EHCI
        sg_set_pinsel(13, 0, 4, 4);     /* USB0OC */
        sg_set_pinsel(14, 1, 4, 4);     /* USB0VBUS */
 
index a4e3e7a61452dce71dae396913ba6be91c7f8a8f..67635844a1f777a7d898327e621588b1b956846f 100644 (file)
@@ -33,7 +33,7 @@ void ph1_sld8_pin_init(void)
        sg_set_pinsel(31, 0, 8, 4);     /* NFD7_GB -> NFD7_GB */
 #endif
 
-#ifdef CONFIG_USB_EHCI_UNIPHIER
+#ifdef CONFIG_USB_EHCI
        sg_set_pinsel(41, 0, 8, 4);     /* USB0VBUS -> USB0VBUS */
        sg_set_pinsel(42, 0, 8, 4);     /* USB0OD   -> USB0OD */
        sg_set_pinsel(43, 0, 8, 4);     /* USB1VBUS -> USB1VBUS */
index ee3cbadf29bd07f98fd248d4a99966d9f514cd14..535f96fb63543c13f28ea0a1b7ae4da0f7b294df 100644 (file)
@@ -27,5 +27,7 @@ CONFIG_PINCTRL=y
 CONFIG_SPL_PINCTRL=y
 CONFIG_UNIPHIER_SERIAL=y
 CONFIG_USB=y
+CONFIG_DM_USB=y
 CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_EHCI_GENERIC=y
 CONFIG_USB_STORAGE=y
index 4b871d0ebd56e2acb53eb3174b54d2d33967ff38..e369c45e82b9d15f60dc1c31dc525ce8eba767d0 100644 (file)
@@ -22,5 +22,7 @@ CONFIG_NAND_DENALI_SPARE_AREA_SKIP_BYTES=8
 CONFIG_SPL_NAND_DENALI=y
 CONFIG_UNIPHIER_SERIAL=y
 CONFIG_USB=y
+CONFIG_DM_USB=y
 CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_EHCI_GENERIC=y
 CONFIG_USB_STORAGE=y