summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-12-15 01:03:16 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-12-15 01:03:16 +0000
commit2ef5858a5b25873c5f2f0ae5bf58229656aa5d9f (patch)
treea784aac5cc4a851be538d2f7c9181dc76c958264 /firmware
parent47af429f2e4b2d88695e8e45a5cf9bb7725609f9 (diff)
downloadrockbox-2ef5858a5b25873c5f2f0ae5bf58229656aa5d9f.tar.gz
rockbox-2ef5858a5b25873c5f2f0ae5bf58229656aa5d9f.zip
M:Robe 500: Initialize ATA related pins with pin setup function
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23997 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/tms320dm320/mrobe-500/ata-mr500.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/ata-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/ata-mr500.c
index 51837dd653..7250a2437b 100644
--- a/firmware/target/arm/tms320dm320/mrobe-500/ata-mr500.c
+++ b/firmware/target/arm/tms320dm320/mrobe-500/ata-mr500.c
@@ -35,10 +35,6 @@
#define ATA_RESET_ENABLE (IO_GIO_BITCLR0 = 1 << 10)
#define ATA_RESET_DISABLE (IO_GIO_BITSET0 = 1 << 10)
-/* ATA_EN on C7C68300 */
-#define USB_ATA_ENABLE (IO_GIO_BITSET0 = 1 << 2)
-#define USB_ATA_DISABLE (IO_GIO_BITCLR0 = 1 << 2)
-
void ata_reset(void)
{
ATA_RESET_ENABLE;
@@ -50,10 +46,8 @@ void ata_reset(void)
/* This function is called before enabling the USB bus */
void ata_enable(bool on)
{
- if(on)
- USB_ATA_DISABLE;
- else
- USB_ATA_ENABLE;
+ (void) on;
+ return;
}
bool ata_is_coldstart(void)
@@ -64,7 +58,12 @@ bool ata_is_coldstart(void)
void ata_device_init(void)
{
/* ATA reset */
+ /* 10: output, non-inverted, no-irq, falling edge, no-chat, normal */
+ dm320_set_io(10, false, false, false, false, false, 0x00);
ATA_RESET_DISABLE; /* Set the pin to disable an active low reset */
- IO_GIO_DIR0&=~(1<<10);
+
+ /* ATA INT (currently unused) */
+ /* 11: input , inverted, irq, any edge, no-chat, normal */
+ dm320_set_io(11, true, true, true, true, false, 0x00);
}