omap2430.c (92fd4d4d67b945c0766416284d4ab236b31542c4) omap2430.c (ea65df57c2eea803535a071752efb030c46a11f5)
1/*
2 * Copyright (C) 2005-2007 by Texas Instruments
3 * Some code has been taken from tusb6010.c
4 * Copyrights for that are attributable to:
5 * Copyright (C) 2006 Nokia Corporation
6 * Tony Lindgren <tony@atomide.com>
7 *
8 * This file is part of the Inventra Controller Driver for Linux.

--- 173 unchanged lines hidden (view full) ---

182 u8 devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
183
184 devctl |= MUSB_DEVCTL_SESSION;
185 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl);
186
187 return 0;
188}
189
1/*
2 * Copyright (C) 2005-2007 by Texas Instruments
3 * Some code has been taken from tusb6010.c
4 * Copyrights for that are attributable to:
5 * Copyright (C) 2006 Nokia Corporation
6 * Tony Lindgren <tony@atomide.com>
7 *
8 * This file is part of the Inventra Controller Driver for Linux.

--- 173 unchanged lines hidden (view full) ---

182 u8 devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
183
184 devctl |= MUSB_DEVCTL_SESSION;
185 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl);
186
187 return 0;
188}
189
190int __init musb_platform_init(struct musb *musb, void *board_data)
190int __init musb_platform_init(struct musb *musb)
191{
192 u32 l;
191{
192 u32 l;
193 struct omap_musb_board_data *data = board_data;
193 struct device *dev = musb->controller;
194 struct musb_hdrc_platform_data *plat = dev->platform_data;
195 struct omap_musb_board_data *data = plat->board_data;
194
195 /* We require some kind of external transceiver, hooked
196 * up through ULPI. TWL4030-family PMICs include one,
197 * which needs a driver, drivers aren't always needed.
198 */
199 musb->xceiv = otg_get_transceiver();
200 if (!musb->xceiv) {
201 pr_err("HS USB OTG: no transceiver configured\n");

--- 124 unchanged lines hidden ---
196
197 /* We require some kind of external transceiver, hooked
198 * up through ULPI. TWL4030-family PMICs include one,
199 * which needs a driver, drivers aren't always needed.
200 */
201 musb->xceiv = otg_get_transceiver();
202 if (!musb->xceiv) {
203 pr_err("HS USB OTG: no transceiver configured\n");

--- 124 unchanged lines hidden ---