1 Index: linux-2.6.38-rc7/drivers/cbus/tahvo-usb.c
2 ===================================================================
3 --- linux-2.6.38-rc7.orig/drivers/cbus/tahvo-usb.c 2011-03-06 23:00:14.411191087 +0100
4 +++ linux-2.6.38-rc7/drivers/cbus/tahvo-usb.c 2011-03-06 23:00:16.571473834 +0100
5 @@ -98,6 +98,7 @@ struct tahvo_usb {
11 static struct platform_device tahvo_usb_device;
13 @@ -673,6 +674,14 @@ static int __init tahvo_usb_probe(struct
14 INIT_WORK(&tu->irq_work, tahvo_usb_irq_work);
15 mutex_init(&tu->serialize);
17 + tu->ick = clk_get(NULL, "usb_l4_ick");
18 + if (IS_ERR(tu->ick)) {
19 + printk(KERN_ERR "Failed to get usb_l4_ick\n");
20 + ret = PTR_ERR(tu->ick);
23 + clk_enable(tu->ick);
25 /* Set initial state, so that we generate kevents only on
27 tu->vbus_state = tahvo_read_reg(TAHVO_REG_IDSR) & 0x01;
28 @@ -680,10 +689,9 @@ static int __init tahvo_usb_probe(struct
29 /* We cannot enable interrupt until omap_udc is initialized */
30 ret = tahvo_request_irq(TAHVO_INT_VBUSON, tahvo_usb_vbus_interrupt,
31 (unsigned long) tu, "vbus_interrupt");
35 printk(KERN_ERR "Could not register Tahvo interrupt for VBUS\n");
37 + goto err_release_clk;
41 @@ -708,9 +716,7 @@ static int __init tahvo_usb_probe(struct
42 ret = otg_set_transceiver(&tu->otg);
44 printk(KERN_ERR "Cannot register USB transceiver\n");
46 - tahvo_free_irq(TAHVO_INT_VBUSON);
51 dev_set_drvdata(dev, tu);
52 @@ -719,10 +725,22 @@ static int __init tahvo_usb_probe(struct
53 * may not be generated in addition to this. */
54 schedule_work(&tu->irq_work);
58 + tahvo_free_irq(TAHVO_INT_VBUSON);
60 + clk_disable(tu->ick);
68 static int __exit tahvo_usb_remove(struct platform_device *pdev)
70 + struct tahvo_usb *tu = platform_get_drvdata(pdev);
72 dev_dbg(&pdev->dev, "remove\n");
74 tahvo_free_irq(TAHVO_INT_VBUSON);
75 @@ -732,6 +750,11 @@ static int __exit tahvo_usb_remove(struc
77 device_remove_file(&pdev->dev, &dev_attr_otg_mode);
79 + clk_disable(tu->ick);
87 Index: linux-2.6.38-rc7/arch/arm/mach-omap2/board-n8x0.c
88 ===================================================================
89 --- linux-2.6.38-rc7.orig/arch/arm/mach-omap2/board-n8x0.c 2011-03-06 23:00:14.388188076 +0100
90 +++ linux-2.6.38-rc7/arch/arm/mach-omap2/board-n8x0.c 2011-03-06 23:06:50.508033149 +0100
92 #include <plat/serial.h>
93 #include <plat/cbus.h>
94 #include <plat/gpio-switch.h>
95 +#include <plat/usb.h>
99 @@ -395,6 +396,14 @@ static struct musb_hdrc_platform_data tu
100 .config = &musb_config,
103 +static struct omap_usb_config n8x0_omap_usb_config __initdata = {
105 + .register_host = 1,
111 static void __init n8x0_usb_init(void)
114 @@ -417,6 +426,8 @@ static void __init n8x0_usb_init(void)
118 + omap2_usbfs_init(&n8x0_omap_usb_config);