mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-12-23 17:38:37 +02:00
qi-gta03-pulldown-card-detect-mmc0.patch
We don't have card detect connected. Try to fake it better by enabling the peripheral fuction to the ball and forcing pulldown (card detect is active-low). Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
parent
37cf1238a9
commit
a607f194fb
@ -292,10 +292,10 @@ void port_init_gta03(void)
|
||||
(2 << 12) | /* GPG3 - MMC_DATA10 */
|
||||
(2 << 16) | /* GPG4 - MMC_DATA20 */
|
||||
(2 << 20) | /* GPG5 - MMC_DATA30 */
|
||||
(1 << 24) /* GPG6 - (NC) OUTPUT 0 */
|
||||
(2 << 24) /* GPG6 - (NC) MMC CARD DETECT */
|
||||
;
|
||||
|
||||
__REG(GPGPUD) = 0; /* all pullup and pulldown disabled */
|
||||
__REG(GPGPUD) = (1 << (6 * 2)); /* pull down card detect */
|
||||
|
||||
__REG(GPGDAT) = 0; /* just for determinism */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user