Sansa Connect: Fix GIO initialization and screen wakeup.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31119 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Tomasz Moń 2011-12-03 15:03:44 +00:00
parent 488ee77ea2
commit 5e805f2041
4 changed files with 28 additions and 25 deletions

View file

@ -40,6 +40,14 @@ int usb_detect(void)
void usb_init_device(void)
{
/* set TNETV USB nreset high */
IO_GIO_DIR0 &= ~(1 << 7);
IO_GIO_BITSET0 = (1 << 7);
/* set VLYNQ port functions */
IO_GIO_FSEL1 = 0xAAAA;
IO_GIO_FSEL2 = (IO_GIO_FSEL2 & 0xFFF0) | 0xA;
return;
}