]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: OMAP2+: Remove legacy_init_ehci_clk()
authorRoger Quadros <rogerq@ti.com>
Thu, 27 Feb 2014 14:18:29 +0000 (16:18 +0200)
committerTony Lindgren <tony@atomide.com>
Tue, 4 Mar 2014 18:20:22 +0000 (10:20 -0800)
The necessary clock phandle for the EHCI clock is now provided
via device tree so we no longer need this legacy method.

Update the omap4-panda and omap5-uevm board DTS to provide the
necessary EHCI PHY clock information.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap4-panda-common.dtsi
arch/arm/boot/dts/omap5-uevm.dts
arch/arm/mach-omap2/pdata-quirks.c

index f83dd4c365c71f54125fc1280c1cf5a663ef10ba..cbc45cfc44e9911cd216629998a0fa3f747ad223 100644 (file)
                compatible = "usb-nop-xceiv";
                reset-gpios = <&gpio2 30 GPIO_ACTIVE_LOW>;   /* gpio_62 */
                vcc-supply = <&hsusb1_power>;
-       /**
-        * FIXME:
-        * put the right clock phandle here when available
-        *      clocks = <&auxclk3>;
-        *      clock-names = "main_clk";
-        */
+               clocks = <&auxclk3_ck>;
+               clock-names = "main_clk";
                clock-frequency = <19200000>;
        };
 
index 002fa70180a5bf38eaa66564cedd21f16897d626..3b99ec25b7489d56948f54f7ce90c7a0e25cab2c 100644 (file)
        hsusb2_phy: hsusb2_phy {
                compatible = "usb-nop-xceiv";
                reset-gpios = <&gpio3 16 GPIO_ACTIVE_LOW>; /* gpio3_80 HUB_NRESET */
-       /**
-         * FIXME
-         * Put the right clock phandle here when available
-         *     clocks = <&auxclk1>;
-         *     clock-names = "main_clk";
-         */
+               clocks = <&auxclk1_ck>;
+               clock-names = "main_clk";
                clock-frequency = <19200000>;
        };
 
index 3e1407c909f76c85228c63be4c3184942df83436..111b8a2923e6850ac85dadf4c2e33470647c0448 100644 (file)
@@ -31,20 +31,6 @@ struct pdata_init {
 struct of_dev_auxdata omap_auxdata_lookup[];
 static struct twl4030_gpio_platform_data twl_gpio_auxdata;
 
-/*
- * Create alias for USB host PHY clock.
- * Remove this when clock phandle can be provided via DT
- */
-static void __init __used legacy_init_ehci_clk(char *clkname)
-{
-       int ret;
-
-       ret = clk_add_alias("main_clk", NULL, clkname, NULL);
-       if (ret)
-               pr_err("%s:Failed to add main_clk alias to %s :%d\n",
-                      __func__, clkname, ret);
-}
-
 #if IS_ENABLED(CONFIG_WL12XX)
 
 static struct wl12xx_platform_data wl12xx __initdata;
@@ -243,7 +229,6 @@ static void __init omap4_sdp_legacy_init(void)
 static void __init omap4_panda_legacy_init(void)
 {
        omap4_panda_display_init_of();
-       legacy_init_ehci_clk("auxclk3_ck");
        legacy_init_wl12xx(WL12XX_REFCLOCK_38, 0, 53);
 }
 #endif
@@ -251,7 +236,6 @@ static void __init omap4_panda_legacy_init(void)
 #ifdef CONFIG_SOC_OMAP5
 static void __init omap5_uevm_legacy_init(void)
 {
-       legacy_init_ehci_clk("auxclk1_ck");
 }
 #endif