mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-11 06:02:37 -05:00
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
This commit is contained in:
parent
e25728e2d2
commit
1e6847db75
1 changed files with 9 additions and 15 deletions
|
|
@ -639,28 +639,22 @@ static int sd_transfer_sectors(unsigned long start, int count, void* buf, bool w
|
||||||
const int cmd =
|
const int cmd =
|
||||||
write ? SD_WRITE_MULTIPLE_BLOCK : SD_READ_MULTIPLE_BLOCK;
|
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+0x00)) |= 2;
|
||||||
(*(volatile unsigned long *) (SD_BASE+0x20)) = transfer * 512;
|
while(( *(volatile unsigned long *) (SD_BASE+0x00)) & 2) ;
|
||||||
|
|
||||||
(*(volatile unsigned long *) (SD_BASE+0x00)) |= 2;
|
//(*(volatile unsigned long *) (SD_BASE+0x1c)) = 512;
|
||||||
while(( *(volatile unsigned long *) (SD_BASE+0x00)) & 2) ;
|
(*(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;
|
(*(volatile unsigned long *) (SD_BASE+0x00)) |= 0x20;
|
||||||
MCI_MASK = 0xBE8C;
|
MCI_MASK = 0xBE8C;
|
||||||
(*(volatile unsigned long *) (SD_BASE+0x4c)) |= 0x503f0080;
|
(*(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 */
|
if(card_info.ocr & (1<<30) ) /* SDHC */
|
||||||
ret = send_cmd(cmd, start, MCI_NO_RESP, NULL);
|
ret = send_cmd(cmd, start, MCI_NO_RESP, NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue