Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131885
b: refs/heads/master
c: 34f32c9
h: refs/heads/master
i:
  131883: 20c3c50
v: v3
  • Loading branch information
David Brownell authored and Greg Kroah-Hartman committed Feb 27, 2009
1 parent bcd0d9b commit cdbfaab
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 67f5a4ba9741fcef3f4db3509ad03565d9e33af2
refs/heads/master: 34f32c9701013ac5af89b82a6ae285e790b643e7
6 changes: 3 additions & 3 deletions trunk/arch/arm/mach-davinci/board-evm.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ evm_u35_setup(struct i2c_client *client, int gpio, unsigned ngpio, void *c)
gpio_request(gpio + 7, "nCF_SEL");
gpio_direction_output(gpio + 7, 1);

/* irlml6401 sustains over 3A, switches 5V in under 8 msec */
setup_usb(500, 8);

return 0;
}

Expand Down Expand Up @@ -417,9 +420,6 @@ static __init void davinci_evm_init(void)
platform_add_devices(davinci_evm_devices,
ARRAY_SIZE(davinci_evm_devices));
evm_init_i2c();

/* irlml6401 sustains over 3A, switches 5V in under 8 msec */
setup_usb(500, 8);
}

static __init void davinci_evm_irq_init(void)
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/arm/mach-davinci/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ static struct clk davinci_clks[] = {
.rate = &commonrate,
.lpsc = DAVINCI_LPSC_GPIO,
},
{
.name = "usb",
.rate = &commonrate,
.lpsc = DAVINCI_LPSC_USB,
},
{
.name = "AEMIFCLK",
.rate = &commonrate,
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-davinci/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ static struct musb_hdrc_platform_data usb_data = {
#elif defined(CONFIG_USB_MUSB_HOST)
.mode = MUSB_HOST,
#endif
.clock = "usb",
.config = &musb_config,
};

Expand Down
15 changes: 4 additions & 11 deletions trunk/drivers/usb/musb/davinci.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,18 +377,8 @@ int __init musb_platform_init(struct musb *musb)
u32 revision;

musb->mregs += DAVINCI_BASE_OFFSET;
#if 0
/* REVISIT there's something odd about clocking, this
* didn't appear do the job ...
*/
musb->clock = clk_get(pDevice, "usb");
if (IS_ERR(musb->clock))
return PTR_ERR(musb->clock);

status = clk_enable(musb->clock);
if (status < 0)
return -ENODEV;
#endif
clk_enable(musb->clock);

/* returns zero if e.g. not clocked */
revision = musb_readl(tibase, DAVINCI_USB_VERSION_REG);
Expand Down Expand Up @@ -453,5 +443,8 @@ int musb_platform_exit(struct musb *musb)
}

phy_off();

clk_disable(musb->clock);

return 0;
}
8 changes: 4 additions & 4 deletions trunk/drivers/usb/musb/musb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@


unsigned musb_debug;
module_param(musb_debug, uint, S_IRUGO | S_IWUSR);
module_param_named(debug, musb_debug, uint, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(debug, "Debug message level. Default = 0");

#define DRIVER_AUTHOR "Mentor Graphics, Texas Instruments, Nokia"
Expand Down Expand Up @@ -2243,10 +2243,10 @@ static int __init musb_init(void)
return platform_driver_probe(&musb_driver, musb_probe);
}

/* make us init after usbcore and before usb
* gadget and host-side drivers start to register
/* make us init after usbcore and i2c (transceivers, regulators, etc)
* and before usb gadget and host-side drivers start to register
*/
subsys_initcall(musb_init);
fs_initcall(musb_init);

static void __exit musb_cleanup(void)
{
Expand Down

0 comments on commit cdbfaab

Please sign in to comment.