summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/ata_sd_as3525.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2008-10-31 18:54:24 +0000
committerRafaël Carré <rafael.carre@gmail.com>2008-10-31 18:54:24 +0000
commit52cb0096626304f3a09cfe7fb2e41e78b3d1dc9d (patch)
treea0414626cb7e2b1ba3d646224f1cf1b7f89681a8 /firmware/target/arm/as3525/ata_sd_as3525.c
parent944e23f1a4064908a47d14528e97b58361c4e560 (diff)
downloadrockbox-52cb0096626304f3a09cfe7fb2e41e78b3d1dc9d.tar.gz
rockbox-52cb0096626304f3a09cfe7fb2e41e78b3d1dc9d.zip
Sansav2 SD : minor modifications
Declare a structure constant Fix a comment (wrong bit number) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18946 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/ata_sd_as3525.c')
-rw-r--r--firmware/target/arm/as3525/ata_sd_as3525.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c
index e8f899bc37..2b8578ff59 100644
--- a/firmware/target/arm/as3525/ata_sd_as3525.c
+++ b/firmware/target/arm/as3525/ata_sd_as3525.c
@@ -31,7 +31,7 @@
31 31
32#define NAND_AS3525 0 32#define NAND_AS3525 0
33#define SD_AS3525 1 33#define SD_AS3525 1
34static int pl180_base[2] = { NAND_FLASH_BASE, SD_MCI_BASE }; 34static const int pl180_base[2] = { NAND_FLASH_BASE, SD_MCI_BASE };
35 35
36/* ARM PL180 registers */ 36/* ARM PL180 registers */
37#define MMC_POWER(i) (*(volatile unsigned long *) (pl180_base[i]+0x00)) 37#define MMC_POWER(i) (*(volatile unsigned long *) (pl180_base[i]+0x00))
@@ -298,7 +298,7 @@ int ata_init(void)
298 298
299 GPIOC_DIR &= ~(1<<1); 299 GPIOC_DIR &= ~(1<<1);
300 if(GPIOC_PIN(1)) 300 if(GPIOC_PIN(1))
301 CCU_SPARE1 |= 4; /* sets bit 3 of undocumented register */ 301 CCU_SPARE1 |= 4; /* sets bit 2 of undocumented register */
302 else 302 else
303 CCU_SPARE1 &= ~4; /* or clear it */ 303 CCU_SPARE1 &= ~4; /* or clear it */
304 304