📄 board-omap3evm-usb.c
字号:
/* * linux/arch/arm/mach-omap2/board-omap3evm-usb.c * * Copyright (C) 2007 Texas Instruments * Author: Vikram Pandita * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */#include <linux/types.h>#include <linux/errno.h>#include <linux/delay.h>#include <linux/platform_device.h>#include <linux/usb/musb.h>#include <asm/arch/hardware.h>#include <asm/arch/usb.h>/***************************************************//* MUSB Controller Platform data *//***************************************************/static struct resource musb_resources[] = { [0] = { .start = HS_BASE, .end = HS_BASE + SZ_8K, .flags = IORESOURCE_MEM, }, [1] = { /* general IRQ */ .start = INT_243X_HS_USB_MC, .flags = IORESOURCE_IRQ, }, [2] = { /* DMA IRQ */ .start = INT_243X_HS_USB_DMA, .flags = IORESOURCE_IRQ, },};static struct musb_hdrc_platform_data musb_plat = { .mode = MUSB_OTG, .multipoint = 1, .clock = NULL, .set_clock = NULL,};static u64 musb_dmamask = ~(u32)0;static struct platform_device musb_device = { .name = "musb_hdrc", .id = 0, .dev = { .dma_mask = &musb_dmamask, .coherent_dma_mask = 0xffffffff, .platform_data = &musb_plat, }, .num_resources = ARRAY_SIZE(musb_resources), .resource = musb_resources,};/***************************************************//***************************************************//* EHCI DEVICE for OMAP3430 ES2.0 *//***************************************************//***************************************************//***************************************************//* OHCI DEVICE for OMAP3430 ES2.0 *//***************************************************/void __init sdp_usb_init(void){ if (platform_device_register(&musb_device) < 0) { printk(KERN_ERR "Unable to register HS-USB (MUSB) device\n"); return; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -