summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2011-02-06 20:46:37 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2011-02-06 20:46:37 +0000
commitfdc05276fee04569a578b76ad684a4b527b370d8 (patch)
tree0244fc815850e6821c14689c751ca390a40cf756
parent916a9f096942a5d1454635637e47a02455d2fe97 (diff)
downloadrockbox-fdc05276fee04569a578b76ad684a4b527b370d8.tar.gz
rockbox-fdc05276fee04569a578b76ad684a4b527b370d8.zip
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.c14
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 c39f1eabd0..d9e0d52191 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 @@
33 33
34void power_init(void) 34void power_init(void)
35{ 35{
36 /* Initialize IDE power pin */
37 /* set GIO17 (ATA power) on and output */
38 /* 17: output, non-inverted, no-irq, falling edge, no-chat, normal */
39 dm320_set_io(17, false, false, false, false, false, 0x00);
40 ide_power_enable(true); /* Power up the drive */ 36 ide_power_enable(true); /* Power up the drive */
41 37
42 /* Charger detect */
43 /* 25: input, non-inverted, no-irq, falling edge, no-chat, normal */
44 dm320_set_io(25, true, false, false, false, false, 0x00);
45
46 /* Power down pin */ 38 /* Power down pin */
47 /* 26: output, non-inverted, no-irq, falling edge, no-chat, normal */
48 dm320_set_io(26, false, false, false, false, false, 0x00);
49 IO_GIO_BITCLR1 = 1<<10; /* Make sure it is not active */ 39 IO_GIO_BITCLR1 = 1<<10; /* Make sure it is not active */
50} 40}
51 41
@@ -68,9 +58,13 @@ bool charging_state(void)
68void ide_power_enable(bool on) 58void ide_power_enable(bool on)
69{ 59{
70 if (on) 60 if (on)
61 {
71 IO_GIO_BITCLR1 = (1<<1); 62 IO_GIO_BITCLR1 = (1<<1);
63 }
72 else 64 else
65 {
73 IO_GIO_BITSET1 = (1<<1); 66 IO_GIO_BITSET1 = (1<<1);
67 }
74} 68}
75 69
76bool ide_powered(void) 70bool ide_powered(void)