diff options
| author | Karl Kurbjun <kkurbjun@gmail.com> | 2011-02-06 20:46:37 +0000 |
|---|---|---|
| committer | Karl Kurbjun <kkurbjun@gmail.com> | 2011-02-06 20:46:37 +0000 |
| commit | fdc05276fee04569a578b76ad684a4b527b370d8 (patch) | |
| tree | 0244fc815850e6821c14689c751ca390a40cf756 | |
| parent | 916a9f096942a5d1454635637e47a02455d2fe97 (diff) | |
| download | rockbox-fdc05276fee04569a578b76ad684a4b527b370d8.zip rockbox-fdc05276fee04569a578b76ad684a4b527b370d8.tar.gz rockbox-fdc05276fee04569a578b76ad684a4b527b370d8.tar.bz2 rockbox-fdc05276fee04569a578b76ad684a4b527b370d8.tar.xz | |
M:Robe 500 Power: Remove pin initializations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29232 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/target/arm/tms320dm320/mrobe-500/power-mr500.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/power-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/power-mr500.c index c39f1ea..d9e0d52 100644 --- a/firmware/target/arm/tms320dm320/mrobe-500/power-mr500.c +++ b/firmware/target/arm/tms320dm320/mrobe-500/power-mr500.c @@ -33,19 +33,9 @@ void power_init(void) { - /* Initialize IDE power pin */ - /* set GIO17 (ATA power) on and output */ - /* 17: output, non-inverted, no-irq, falling edge, no-chat, normal */ - dm320_set_io(17, false, false, false, false, false, 0x00); ide_power_enable(true); /* Power up the drive */ - /* Charger detect */ - /* 25: input, non-inverted, no-irq, falling edge, no-chat, normal */ - dm320_set_io(25, true, false, false, false, false, 0x00); - /* Power down pin */ - /* 26: output, non-inverted, no-irq, falling edge, no-chat, normal */ - dm320_set_io(26, false, false, false, false, false, 0x00); IO_GIO_BITCLR1 = 1<<10; /* Make sure it is not active */ } @@ -68,9 +58,13 @@ bool charging_state(void) void ide_power_enable(bool on) { if (on) + { IO_GIO_BITCLR1 = (1<<1); + } else + { IO_GIO_BITSET1 = (1<<1); + } } bool ide_powered(void) |