View Single Post
Posts: 946 | Thanked: 1,650 times | Joined on Oct 2009 @ Germany
#941
unfortunately it doesn't work. I already uncommented it during our last IRC session
and verified that one cannot force the chip to hostmode. It ignores the flag even if you properly also change the flag in the context register that is normally restored as suspend or during connect.
some other conditions need to fulfilled (device connected as peripheral?) for this flag to be effective.

Originally Posted by joerg_rw View Post
http://mxr.maemo.org/fremantle/sourc...b_procfs.c#661

Code:
656         case 'H':
657                 if (mbase) {
658                         reg = musb_readb(mbase, MUSB_DEVCTL);
659                         reg |= MUSB_DEVCTL_HR;
660                         musb_writeb(mbase, MUSB_DEVCTL, reg);
661                         /* MUSB_HST_MODE( ((struct musb*)data) ); */
662                         /* WARNING("Host Mode\n"); */
663                 }
664                 break;
 

The Following User Says Thank You to titan For This Useful Post: