Hello,
I am using OMAP-L138 with the latest released TI kernel from web (2.6.37) with OMAP-L138. I had problem using the usb gadget device, and noticed that nowhere in the code there is set for the appropriate mode (CFGCHIP2_FORCE_DEVICE flag) except in routine name da8xx_musb_set_mode, which is not called at all. I noticed that in the previous PSP released I was using the cfgchip2 register mode bits were set in devices-da8xx.c file, but this code is no longer exist in the new kernel, and I do not undestand how the mode bits in this register are set. I try to use the usb as a gadget ethernet and I configured it with menuconfig just as I did in 2.6.33 kernel, without any more changes. But when I connect it to a PC computer I do not get identification (messsage in kernel) that the kernel detected usb ethenet gadget (as happended before with 2.6.33). I looked deeper at the value of cfgchip2 , and this value does not show device mode in the appropriate bits (0 instead). If I just change the bits anywhere in the code, it works fine, but I do understand how does this kernel's code should normally set the bits ?
I should also note that when I set the bits to the desired mode, everything works well in my board.
Thank you for the help,
Ran