Other Parts Discussed in Thread: TPS65930
Hi all~
We are using wince BSP 6.14.01.01.
And I found the functions "IsADeviceConnected " and "IsBDeviceConnected" in "tps659xx_musb.cpp" is not working right.
when I have the ID pad of TPS65930 conneted to GND, in this case, the OTG should work as HOST, but the driver keep calling the "IsADeviceConnected " function, this is one of the problem, and the other is the "IsADeviceConnected " function:
it checks if a A device is connected by reading the TWL_STS_HW_CONDITIONS(0x004B0045) register. if TWL_STS_VBUS bit is set, then it tells a "A" device is connected. the thing is when OTG act as HOST, it must have driver the bus to 5V, so TWL_STS_VBUS should be set too( I am not sure), am I right?