summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-02-07 19:09:59 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-02-07 19:09:59 +0000
commit1e6847db7567aa6822483527ad93e66b6c6bb64f (patch)
tree89ff92f0f83758739e377a521fd0e6dface5aeb6 /firmware/target/arm/as3525
parente25728e2d2a4992e7c05a4bce33c03b008a46938 (diff)
Sansa AMS AS3525v2 SD: remove a case which is never run
Reindent git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24552 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525')
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c24
1 files changed, 9 insertions, 15 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index 765eb17f0e..9d5b19c08d 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -639,28 +639,22 @@ static int sd_transfer_sectors(unsigned long start, int count, void* buf, bool w
const int cmd =
write ? SD_WRITE_MULTIPLE_BLOCK : SD_READ_MULTIPLE_BLOCK;
- (*(volatile unsigned long *) (SD_BASE+0x00)) |= 2;
- while(( *(volatile unsigned long *) (SD_BASE+0x00)) & 2) ;
- //(*(volatile unsigned long *) (SD_BASE+0x1c)) = 512;
- (*(volatile unsigned long *) (SD_BASE+0x20)) = transfer * 512;
+ (*(volatile unsigned long *) (SD_BASE+0x00)) |= 2;
+ while(( *(volatile unsigned long *) (SD_BASE+0x00)) & 2) ;
- (*(volatile unsigned long *) (SD_BASE+0x00)) |= 2;
- while(( *(volatile unsigned long *) (SD_BASE+0x00)) & 2) ;
+ //(*(volatile unsigned long *) (SD_BASE+0x1c)) = 512;
+ (*(volatile unsigned long *) (SD_BASE+0x20)) = transfer * 512;
- (*(volatile unsigned long *) (SD_BASE+0x4c)) &= ~0x7fff0fff;
+ (*(volatile unsigned long *) (SD_BASE+0x00)) |= 2;
+ while(( *(volatile unsigned long *) (SD_BASE+0x00)) & 2) ;
+
+ (*(volatile unsigned long *) (SD_BASE+0x4c)) &= ~0x7fff0fff;
- if(0)
- {
(*(volatile unsigned long *) (SD_BASE+0x00)) |= 0x20;
MCI_MASK = 0xBE8C;
(*(volatile unsigned long *) (SD_BASE+0x4c)) |= 0x503f0080;
- }
- else
- {
- MCI_MASK = 0xBEB8;
- (*(volatile unsigned long *) (SD_BASE+0x4c)) |= 0x3f0030;
- }
+
if(card_info.ocr & (1<<30) ) /* SDHC */
ret = send_cmd(cmd, start, MCI_NO_RESP, NULL);