diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-12-15 01:06:16 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-12-15 01:06:16 +0000 |
commit | 7c1fa7cf6133cf7270f7c5d91e91b4c947253491 (patch) | |
tree | f2ed08cc2bacc969cb2e0522faf3ebfeeb1ce57a | |
parent | 2ef5858a5b25873c5f2f0ae5bf58229656aa5d9f (diff) |
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
-rw-r--r-- | firmware/target/arm/tms320dm320/mrobe-500/usb-mr500.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/usb-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/usb-mr500.c index 09e55107c9..ff5de05e6e 100644 --- a/firmware/target/arm/tms320dm320/mrobe-500/usb-mr500.c +++ b/firmware/target/arm/tms320dm320/mrobe-500/usb-mr500.c @@ -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); |