View Single Post
Mara's Avatar
Posts: 1,310 | Thanked: 820 times | Joined on Mar 2006 @ Irving, TX
#280
Originally Posted by BruceL View Post
This looks hopeful. Who knows how to set a USB register like this?

Code:
The test modes are entered by writing to the TestMode register (offset address 0x40F).
Code:
The Force Host test mode enables the user to instruct the core to operate in Host mode, regardless of
whether it is actually connected to any peripheral i.e. the state of the CID input and the LINESTATE and
HOSTDISCON signals are ignored. (While in this mode, the state of the HOSTDISCON signal can be read
from bit 7 of the DevCtl register.)
This mode, which is selected by setting bit 7 within the Testmode register, allows implementation of the
USB TEST_FORCE_ENABLE (7.1.20). It can also be used for debugging PHY problems in hardware.
While the FORCE_HOST bit remains set, the core will enter Host mode when the Session bit is set and
remain in Host mode until the Session bit is cleared even if a connected device is disconnected during the
session. The operating speed while in this mode is determined for the setting of the FORCE_HS and
FORCE_FS bits of the Testmode register in Section 1.1.4.11.
Take a look at page 167 where they talk about emulating the VBUS signal... this may be more "clean" method of trying to get the controller into host mode?

Also, when I read the document it is apparent that the OMAP USB pins are not designed to be connected directly to the USB port. It needs some tranceiver chip between. I'm not sure if there are any other limitations on that tranceiver chip that prevent the host mode from working? (I don't think so, but you never know...)
 

The Following 7 Users Say Thank You to Mara For This Useful Post: