mfd: omap-usb-host: Use clock names as per function for reference clocks
authorRoger Quadros <rogerq@ti.com>
Thu, 27 Feb 2014 14:18:26 +0000 (16:18 +0200)
committerLee Jones <lee.jones@linaro.org>
Thu, 13 Mar 2014 22:25:45 +0000 (22:25 +0000)
Use a meaningful name for the reference clocks so that it indicates the
function.

Update the OMAP4+ USB Host node as well to be in sync with the changes.

Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
arch/arm/boot/dts/omap4.dtsi
arch/arm/boot/dts/omap5.dtsi
drivers/mfd/omap-usb-host.c

index d3f8a6e8ca205ef1585c279c1ce50dc8703fa6b5..39a05ce52e9cfa819ae873087a0450a828e49883 100644 (file)
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges;
+                       clocks = <&init_60m_fclk>,
+                                <&xclk60mhsp1_ck>,
+                                <&xclk60mhsp2_ck>;
+                       clock-names = "refclk_60m_int",
+                                     "refclk_60m_ext_p1",
+                                     "refclk_60m_ext_p2";
 
                        usbhsohci: ohci@4a064800 {
                                compatible = "ti,ohci-omap3", "usb-ohci";
index a72813a9663eccd7075b185489cbda4694fd0003..d4dae488deccc07fcf4c1770af3efa100c29fee3 100644 (file)
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges;
+                       clocks = <&l3init_60m_fclk>,
+                                <&xclk60mhsp1_ck>,
+                                <&xclk60mhsp2_ck>;
+                       clock-names = "refclk_60m_int",
+                                     "refclk_60m_ext_p1",
+                                     "refclk_60m_ext_p2";
 
                        usbhsohci: ohci@4a064800 {
                                compatible = "ti,ohci-omap3", "usb-ohci";
index 865c2764a89d55d54f8dd07fd3e864607e7f90ea..651e249287dc4292a127d30de326323b989c3b17 100644 (file)
@@ -718,24 +718,24 @@ static int usbhs_omap_probe(struct platform_device *pdev)
                goto err_mem;
        }
 
-       omap->xclk60mhsp1_ck = devm_clk_get(dev, "xclk60mhsp1_ck");
+       omap->xclk60mhsp1_ck = devm_clk_get(dev, "refclk_60m_ext_p1");
        if (IS_ERR(omap->xclk60mhsp1_ck)) {
                ret = PTR_ERR(omap->xclk60mhsp1_ck);
-               dev_err(dev, "xclk60mhsp1_ck failed error:%d\n", ret);
+               dev_err(dev, "refclk_60m_ext_p1 failed error:%d\n", ret);
                goto err_mem;
        }
 
-       omap->xclk60mhsp2_ck = devm_clk_get(dev, "xclk60mhsp2_ck");
+       omap->xclk60mhsp2_ck = devm_clk_get(dev, "refclk_60m_ext_p2");
        if (IS_ERR(omap->xclk60mhsp2_ck)) {
                ret = PTR_ERR(omap->xclk60mhsp2_ck);
-               dev_err(dev, "xclk60mhsp2_ck failed error:%d\n", ret);
+               dev_err(dev, "refclk_60m_ext_p2 failed error:%d\n", ret);
                goto err_mem;
        }
 
-       omap->init_60m_fclk = devm_clk_get(dev, "init_60m_fclk");
+       omap->init_60m_fclk = devm_clk_get(dev, "refclk_60m_int");
        if (IS_ERR(omap->init_60m_fclk)) {
                ret = PTR_ERR(omap->init_60m_fclk);
-               dev_err(dev, "init_60m_fclk failed error:%d\n", ret);
+               dev_err(dev, "refclk_60m_int failed error:%d\n", ret);
                goto err_mem;
        }