summaryrefslogtreecommitdiffstats
path: root/gdb/sh-stub.c
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2003-06-29 21:57:20 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2003-06-29 21:57:20 +0000
commitb2a2022cc3b9809b5548236dcfcf7bb4dabf7985 (patch)
tree8a1d7a4d1caa05a7d15cc1d1ee30d62595790f1f /gdb/sh-stub.c
parent09e42d56572822a4da19038ad3124e0a8d29e2dc (diff)
downloadrockbox-b2a2022cc3b9809b5548236dcfcf7bb4dabf7985.tar.gz
rockbox-b2a2022cc3b9809b5548236dcfcf7bb4dabf7985.tar.bz2
rockbox-b2a2022cc3b9809b5548236dcfcf7bb4dabf7985.zip
Port A inits for cold-start capability
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3780 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'gdb/sh-stub.c')
-rw-r--r--gdb/sh-stub.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/sh-stub.c b/gdb/sh-stub.c
index 198de99d22..9a68d2fd53 100644
--- a/gdb/sh-stub.c
+++ b/gdb/sh-stub.c
@@ -441,6 +441,11 @@ int ata_wait_for_rdy(void)
int ata_spindown(int time)
{
+ /* Port A setup */
+ PAIOR |= 0x0280; /* output for ATA reset, IDE enable */
+ PADR |= 0x0200; /* release ATA reset */
+ PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */
+
/* activate ATA */
PADR &= ~0x80;