diff options
| author | Rafaël Carré <rafael.carre@gmail.com> | 2008-10-31 18:54:24 +0000 |
|---|---|---|
| committer | Rafaël Carré <rafael.carre@gmail.com> | 2008-10-31 18:54:24 +0000 |
| commit | 52cb0096626304f3a09cfe7fb2e41e78b3d1dc9d (patch) | |
| tree | a0414626cb7e2b1ba3d646224f1cf1b7f89681a8 | |
| parent | 944e23f1a4064908a47d14528e97b58361c4e560 (diff) | |
| download | rockbox-52cb0096626304f3a09cfe7fb2e41e78b3d1dc9d.zip rockbox-52cb0096626304f3a09cfe7fb2e41e78b3d1dc9d.tar.gz rockbox-52cb0096626304f3a09cfe7fb2e41e78b3d1dc9d.tar.bz2 rockbox-52cb0096626304f3a09cfe7fb2e41e78b3d1dc9d.tar.xz | |
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
| -rw-r--r-- | firmware/target/arm/as3525/ata_sd_as3525.c | 4 |
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 e8f899b..2b8578f 100644 --- a/firmware/target/arm/as3525/ata_sd_as3525.c +++ b/firmware/target/arm/as3525/ata_sd_as3525.c @@ -31,7 +31,7 @@ #define NAND_AS3525 0 #define SD_AS3525 1 -static int pl180_base[2] = { NAND_FLASH_BASE, SD_MCI_BASE }; +static const int pl180_base[2] = { NAND_FLASH_BASE, SD_MCI_BASE }; /* ARM PL180 registers */ #define MMC_POWER(i) (*(volatile unsigned long *) (pl180_base[i]+0x00)) @@ -298,7 +298,7 @@ int ata_init(void) GPIOC_DIR &= ~(1<<1); if(GPIOC_PIN(1)) - CCU_SPARE1 |= 4; /* sets bit 3 of undocumented register */ + CCU_SPARE1 |= 4; /* sets bit 2 of undocumented register */ else CCU_SPARE1 &= ~4; /* or clear it */ |