summaryrefslogtreecommitdiff
path: root/gdb/sh-stub.c
diff options
context:
space:
mode:
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)
441 441
442int ata_spindown(int time) 442int ata_spindown(int time)
443{ 443{
444 /* Port A setup */
445 PAIOR |= 0x0280; /* output for ATA reset, IDE enable */
446 PADR |= 0x0200; /* release ATA reset */
447 PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */
448
444 /* activate ATA */ 449 /* activate ATA */
445 PADR &= ~0x80; 450 PADR &= ~0x80;
446 451