summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire/iriver/ata-iriver.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/coldfire/iriver/ata-iriver.c')
-rw-r--r--firmware/target/coldfire/iriver/ata-iriver.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/target/coldfire/iriver/ata-iriver.c b/firmware/target/coldfire/iriver/ata-iriver.c
index 82dae32a97..bab08a652b 100644
--- a/firmware/target/coldfire/iriver/ata-iriver.c
+++ b/firmware/target/coldfire/iriver/ata-iriver.c
@@ -36,10 +36,10 @@ void ata_reset(void)
36void ata_enable(bool on) 36void ata_enable(bool on)
37{ 37{
38 if(on) 38 if(on)
39 and_l(~0x0040000, &GPIO_OUT); 39 and_l(~0x00040000, &GPIO_OUT);
40 else 40 else
41 or_l(0x0040000, &GPIO_OUT); 41 or_l(0x00040000, &GPIO_OUT);
42 42
43 or_l(0x00040000, &GPIO_ENABLE); 43 or_l(0x00040000, &GPIO_ENABLE);
44 or_l(0x00040000, &GPIO_FUNCTION); 44 or_l(0x00040000, &GPIO_FUNCTION);
45} 45}
@@ -53,11 +53,11 @@ void ata_device_init(void)
53{ 53{
54#ifdef HAVE_ATA_LED_CTRL 54#ifdef HAVE_ATA_LED_CTRL
55 /* Enable disk LED & ISD chip power control */ 55 /* Enable disk LED & ISD chip power control */
56 and_l(~0x0000240, &GPIO_OUT); 56 and_l(~0x00000240, &GPIO_OUT);
57 or_l(0x00000240, &GPIO_ENABLE); 57 or_l( 0x00000240, &GPIO_ENABLE);
58 or_l(0x00000200, &GPIO_FUNCTION); 58 or_l( 0x00000200, &GPIO_FUNCTION);
59#endif 59#endif
60 60
61 /* ATA reset */ 61 /* ATA reset */
62 or_l(0x00080000, &GPIO_OUT); 62 or_l(0x00080000, &GPIO_OUT);
63 or_l(0x00080000, &GPIO_ENABLE); 63 or_l(0x00080000, &GPIO_ENABLE);