#define MSM_USB_BASE (motg->regs)
#defineUSB_USBINTR (MSM_USB_BASE + 0x0148)
Probe()
{
res = platform_get_resource_byname(pdev, IORESOURCE_MEM,"core");
获取core的资源
motg->io_res = res;
motg->regs= ioremap(res->start, resource_size(res));
用来将I/O内存资源的物理地址映射到核心虚地址空间(3GB-4GB)中
。。。。。。。。
writel(0, USB_USBINTR);
操作寄存器
。。。。。。。。
iounmap(motg->regs);
iounmap用于释放不再需要的映射
。。。。。。。。。
}