mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 09:44:18 +08:00
omap2: Add OHCI USB platform init for 2430 SDP
Add platform init code for OHCI USB on OMAP2430 SDP Signed-off-by: Viral Mehta <viral.mehta@lntinfotech.com> [tony@atomide.com: Updated subject to mention the board name] Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
parent
39ecc703d1
commit
9c68eb8197
@ -207,6 +207,15 @@ static struct omap_musb_board_data musb_board_data = {
|
|||||||
.mode = MUSB_OTG,
|
.mode = MUSB_OTG,
|
||||||
.power = 100,
|
.power = 100,
|
||||||
};
|
};
|
||||||
|
static struct omap_usb_config sdp2430_usb_config __initdata = {
|
||||||
|
.otg = 1,
|
||||||
|
#ifdef CONFIG_USB_GADGET_OMAP
|
||||||
|
.hmc_mode = 0x0,
|
||||||
|
#elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
|
||||||
|
.hmc_mode = 0x1,
|
||||||
|
#endif
|
||||||
|
.pins[0] = 3,
|
||||||
|
};
|
||||||
|
|
||||||
static void __init omap_2430sdp_init(void)
|
static void __init omap_2430sdp_init(void)
|
||||||
{
|
{
|
||||||
@ -217,6 +226,7 @@ static void __init omap_2430sdp_init(void)
|
|||||||
platform_add_devices(sdp2430_devices, ARRAY_SIZE(sdp2430_devices));
|
platform_add_devices(sdp2430_devices, ARRAY_SIZE(sdp2430_devices));
|
||||||
omap_serial_init();
|
omap_serial_init();
|
||||||
omap2_hsmmc_init(mmc);
|
omap2_hsmmc_init(mmc);
|
||||||
|
omap_usb_init(&sdp2430_usb_config);
|
||||||
usb_musb_init(&musb_board_data);
|
usb_musb_init(&musb_board_data);
|
||||||
board_smc91x_init();
|
board_smc91x_init();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user