M:Robe 500: Initialize USB related pins with pin setup function

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23998 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Karl Kurbjun 2009-12-15 01:06:16 +00:00
parent 2ef5858a5b
commit 7c1fa7cf61

View file

@ -47,14 +47,12 @@ void usb_init_device(void) {
IO_EMIF_CS4CTRL2 = 0x4110;
/* Setup the m66591 reset signal */
IO_GIO_DIR0 &= ~(1<<2); /* output */
IO_GIO_INV0 &= ~(1<<2); /* non-inverted */
IO_GIO_FSEL0 &= ~(0x03); /* normal pins */
/* 2: output, non-inverted, no-irq, falling edge, no-chat, normal */
dm320_set_io(2, false, false, false, false, false, 0x00);
/* Setup the m66591 interrupt signal */
IO_GIO_DIR0 |= 1<<3; /* input */
IO_GIO_INV0 &= ~(1<<3); /* non-inverted */
IO_GIO_IRQPORT |= 1<<3; /* enable EIRQ */
/* 3: input , non-inverted, irq, falling edge, no-chat, normal */
dm320_set_io(3, true, false, true, false, false, 0x00);
udelay(100);