TI中文支持网
TI专业的中文技术问题搜集分享网站

关于AM335X USB0使用host模式

您好,AM335X usb0设置host模式,软件部分是不是只是在这个地方修改就行了,我的内核版本3.2

static struct omap_musb_board_data musb_board_data = {
.interface_type = MUSB_INTERFACE_ULPI,
/*
* mode[0:3] = USB0PORT's mode
* mode[4:7] = USB1PORT's mode
* AM335X beta EVM has USB0 in OTG mode and USB1 in host mode.
*/
.mode = (MUSB_HOST << 4) | MUSB_HOST,
.power = 500,
.instances = 1,
};

hongbin li1:

回复 Jian Zhou:

请问一下3.2的内核中能否集成USB网络驱动 CDC MBIM接口功能

hongbin li1:

回复 hongbin li1:

您好,请问下我的USB1也是用HOST模式,内核启动打印有关USB的信息如下

usbcore: registered new interface driver usbfsusbcore: registered new interface driver hubusbcore: registered new device driver usbmusb-ti81xx musb-ti81xx: musb0, board_mode=0x11, plat_mode=0x1musb-ti81xx musb-ti81xx: musb1, board_mode=0x11, plat_mode=0x1musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)musb-hdrc musb-hdrc.0: dma type: piomusb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)musb-hdrc: MHDRC RTL version 2.0 musb-hdrc: setup fifo_mode 4musb-hdrc: 28/31 max ep, 16384/16384 memorymusb-hdrc musb-hdrc.0: MUSB HDRC host driverdrivers/usb/core/inode.c: creating file 'devices'drivers/usb/core/inode.c: creating file '001'musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1usb usb1: default language 0x0409usb usb1: udev 1, busnum 1, minor = 0usb usb1: New USB device found, idVendor=1d6b, idProduct=0002usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1usb usb1: Product: MUSB HDRC host driverusb usb1: Manufacturer: Linux 3.2.0-EmbedSky musb-hcdusb usb1: SerialNumber: musb-hdrc.0usb usb1: usb_probe_deviceusb usb1: configuration #1 chosen from 1 choiceusb usb1: adding 1-0:1.0 (config #1, interface 0)hub 1-0:1.0: usb_probe_interfacehub 1-0:1.0: usb_probe_interface – got iddrivers/usb/core/inode.c: creating file '001'musb-hdrc musb-hdrc.0: USB Host mode controller at e081c000 using PIO, IRQ 18musb-hdrc musb-hdrc.1: dma type: piomusb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)musb-hdrc: MHDRC RTL version 2.0 musb-hdrc: setup fifo_mode 4musb-hdrc: 28/31 max ep, 16384/16384 memorymusb-hdrc musb-hdrc.1: MUSB HDRC host driverdrivers/usb/core/inode.c: creating file '002'musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2usb usb2: default language 0x0409usb usb2: udev 1, busnum 2, minor = 128usb usb2: New USB device found, idVendor=1d6b, idProduct=0002usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1usb usb2: Product: MUSB HDRC host driverusb usb2: Manufacturer: Linux 3.2.0-EmbedSky musb-hcdusb usb2: SerialNumber: musb-hdrc.1usb usb2: usb_probe_deviceusb usb2: configuration #1 chosen from 1 choiceusb usb2: adding 2-0:1.0 (config #1, interface 0)hub 2-0:1.0: usb_probe_interfacehub 2-0:1.0: usb_probe_interface – got iddrivers/usb/core/inode.c: creating file '001'musb-hdrc musb-hdrc.1: USB Host mode controller at e081e800 using PIO, IRQ 19usbcore: registered new interface driver zd1201usbcore: registered new interface driver cdc_etherusbcore: registered new interface driver cdc_eemusbcore: registered new interface driver dm9601usbcore: registered new interface driver cdc_subsetusbcore: registered new interface driver cdc_ncmusbcore: registered new interface driver cdc_acmusbcore: registered new interface driver usb-storageusbcore: registered new interface driver usbserialusbcore: registered new interface driver usbserial_genericusbserial: USB Serial Driver coreusbcore: registered new interface driver optionusbcore: registered new interface driver pl2303usbcore: registered new interface driver usbhidusbhid: USB HID core driver

lsusb

Bus 001 Device 001: ID 1d6b:0002Bus 002 Device 001: ID 1d6b:0002

插U盘启动内核,打印信息中没有识别U盘

我的vbus上拉到5v,id脚接地,请问还有别的问题导致U盘上电不识别吗

Yaoming Qin:

回复 hongbin li1:

先贴下usb部分的原理图把

hongbin li1:

回复 Jian Zhou:

我查查硬件吧,USB1host模式识别U盘了,USB0再看看

赞(0)
未经允许不得转载:TI中文支持网 » 关于AM335X USB0使用host模式
分享到: 更多 (0)