aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorKeshava Munegowda <keshava_mgowda@ti.com>2010-11-21 12:53:40 -0500
committerAnand Gadiyar <gadiyar@ti.com>2010-11-30 16:01:53 -0500
commit6dba39e278b81665a838f37a75fe37b89f3ce610 (patch)
tree905956dec616b9db7103061596fde5b0d8cd2864 /drivers/usb/host
parent4f6838436915fdc281173bfd5bef6d8ab5cb1a7f (diff)
usb: ehci-omap: update clock names to be more generic
Rename usbhost2_120m_fck to usbhost_hs_fck and usbhost1_48m_fck to usbhost_fs_fck, to better reflect the clocks' functionalities. In OMAP4, the frequencies for the corresponding clocks are not necessarily the same as with OMAP3, however the functionalities are. Signed-off-by: Keshava Munegowda <keshava_mgowda@ti.com> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/ehci-omap.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c
index 116ae280053a..d042bdefa2bd 100644
--- a/drivers/usb/host/ehci-omap.c
+++ b/drivers/usb/host/ehci-omap.c
@@ -156,8 +156,8 @@ struct ehci_hcd_omap {
156 struct device *dev; 156 struct device *dev;
157 157
158 struct clk *usbhost_ick; 158 struct clk *usbhost_ick;
159 struct clk *usbhost2_120m_fck; 159 struct clk *usbhost_hs_fck;
160 struct clk *usbhost1_48m_fck; 160 struct clk *usbhost_fs_fck;
161 struct clk *usbtll_fck; 161 struct clk *usbtll_fck;
162 struct clk *usbtll_ick; 162 struct clk *usbtll_ick;
163 163
@@ -286,19 +286,19 @@ static int omap_start_ehc(struct ehci_hcd_omap *omap, struct usb_hcd *hcd)
286 } 286 }
287 clk_enable(omap->usbhost_ick); 287 clk_enable(omap->usbhost_ick);
288 288
289 omap->usbhost2_120m_fck = clk_get(omap->dev, "usbhost_120m_fck"); 289 omap->usbhost_hs_fck = clk_get(omap->dev, "usbhost_120m_fck");
290 if (IS_ERR(omap->usbhost2_120m_fck)) { 290 if (IS_ERR(omap->usbhost_hs_fck)) {
291 ret = PTR_ERR(omap->usbhost2_120m_fck); 291 ret = PTR_ERR(omap->usbhost_hs_fck);
292 goto err_host_120m_fck; 292 goto err_host_120m_fck;
293 } 293 }
294 clk_enable(omap->usbhost2_120m_fck); 294 clk_enable(omap->usbhost_hs_fck);
295 295
296 omap->usbhost1_48m_fck = clk_get(omap->dev, "usbhost_48m_fck"); 296 omap->usbhost_fs_fck = clk_get(omap->dev, "usbhost_48m_fck");
297 if (IS_ERR(omap->usbhost1_48m_fck)) { 297 if (IS_ERR(omap->usbhost_fs_fck)) {
298 ret = PTR_ERR(omap->usbhost1_48m_fck); 298 ret = PTR_ERR(omap->usbhost_fs_fck);
299 goto err_host_48m_fck; 299 goto err_host_48m_fck;
300 } 300 }
301 clk_enable(omap->usbhost1_48m_fck); 301 clk_enable(omap->usbhost_fs_fck);
302 302
303 if (omap->phy_reset) { 303 if (omap->phy_reset) {
304 /* Refer: ISSUE1 */ 304 /* Refer: ISSUE1 */
@@ -472,8 +472,8 @@ err_tll_ick:
472 clk_put(omap->usbtll_fck); 472 clk_put(omap->usbtll_fck);
473 473
474err_tll_fck: 474err_tll_fck:
475 clk_disable(omap->usbhost1_48m_fck); 475 clk_disable(omap->usbhost_fs_fck);
476 clk_put(omap->usbhost1_48m_fck); 476 clk_put(omap->usbhost_fs_fck);
477 477
478 if (omap->phy_reset) { 478 if (omap->phy_reset) {
479 if (gpio_is_valid(omap->reset_gpio_port[0])) 479 if (gpio_is_valid(omap->reset_gpio_port[0]))
@@ -484,8 +484,8 @@ err_tll_fck:
484 } 484 }
485 485
486err_host_48m_fck: 486err_host_48m_fck:
487 clk_disable(omap->usbhost2_120m_fck); 487 clk_disable(omap->usbhost_hs_fck);
488 clk_put(omap->usbhost2_120m_fck); 488 clk_put(omap->usbhost_hs_fck);
489 489
490err_host_120m_fck: 490err_host_120m_fck:
491 clk_disable(omap->usbhost_ick); 491 clk_disable(omap->usbhost_ick);
@@ -550,16 +550,16 @@ static void omap_stop_ehc(struct ehci_hcd_omap *omap, struct usb_hcd *hcd)
550 omap->usbhost_ick = NULL; 550 omap->usbhost_ick = NULL;
551 } 551 }
552 552
553 if (omap->usbhost1_48m_fck != NULL) { 553 if (omap->usbhost_fs_fck != NULL) {
554 clk_disable(omap->usbhost1_48m_fck); 554 clk_disable(omap->usbhost_fs_fck);
555 clk_put(omap->usbhost1_48m_fck); 555 clk_put(omap->usbhost_fs_fck);
556 omap->usbhost1_48m_fck = NULL; 556 omap->usbhost_fs_fck = NULL;
557 } 557 }
558 558
559 if (omap->usbhost2_120m_fck != NULL) { 559 if (omap->usbhost_hs_fck != NULL) {
560 clk_disable(omap->usbhost2_120m_fck); 560 clk_disable(omap->usbhost_hs_fck);
561 clk_put(omap->usbhost2_120m_fck); 561 clk_put(omap->usbhost_hs_fck);
562 omap->usbhost2_120m_fck = NULL; 562 omap->usbhost_hs_fck = NULL;
563 } 563 }
564 564
565 if (omap->usbtll_ick != NULL) { 565 if (omap->usbtll_ick != NULL) {