Hello,
Is OTG support for linux planned to be added in next PSP release ?
Best regards
Thierry
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I could use the USB Host and the USB Device (gadget) functionalites separately (by compiling two different kernels). (tried to connect a USB key in first case, and connect on computer in second case)
The actual linux PSP does not support the OTG functionality of the Inventra USB controller as described here: http://processors.wiki.ti.com/index.php/DaVinci_PSP_03.20.00.14_Release_Notes
My goal is to use either the USB Host or the USB Device mode (via OTG) in the same environment, without to change the kernel, so I'm waiting on the OTG support of the controller.
my evb has sent out to my friend, he told me he did it (latest SDK4.01), there is OTG selection in the menuconfig.
also, he made SDIO wl1271. (back porting from 2.6.37) I'll ask for detail later, but he's busy with the SPI WL1271 driver work. I'll be off for several days vacation, after that will try to give you an answer.
he asked me several questions, how you made the 2 kernels? what version is you psp? he told if you could compile 2 kernel to work in host/slave, then easy job to make it work in both mode just by the ID selection. he also suggest to use modules to make it manually. might be he use the manually way to solve the problem.
hope this could help you.
but I did remember the 2.0 host always tells not working at the top speed, don't know why.
sorry for the late reply, finally I got my evb back, here is how to make OTG work: don't know what gadget you need. follow the steps below:
device driver-> usb support -> driver->usb gadget support->usb peripheral controller-> inventra HDRC USB peripheral
and choose some gadget drivers like ethernet gadget, back to upper menu
device driver -> usb support -> driver mode -> both host and peripheral: usb otg(on the go)
save and quit.
modify drivers/usb/musb/musb_core.c, remark line 1945-1949, make
test ok, insmod g_ether.ko works, usb disk works.
when I debug my own board found usb disk will not work, and after tracing into the code, found why I could do that before because once you insmod the gadget, you are able to do the OTG... but my EVB is down and cannot verify anymore.