mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 13:45:10 -05:00
sd-as3525v2: Add some comments, no functional changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25546 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cb6e120b66
commit
43304b87b0
1 changed files with 9 additions and 9 deletions
|
|
@ -640,13 +640,13 @@ static void init_controller(void)
|
|||
while(MCI_CTRL & CTRL_RESET)
|
||||
;
|
||||
|
||||
MCI_RAW_STATUS = 0xffffffff;
|
||||
MCI_RAW_STATUS = 0xffffffff; /* Clear all MCI Interrupts */
|
||||
|
||||
MCI_TMOUT = 0xffffffff; /* data b31:8, response b7:0 */
|
||||
|
||||
MCI_CTYPE = 0x0; /* all cards 1 bit bus for now */
|
||||
|
||||
MCI_CLKENA = card_mask;
|
||||
MCI_CLKENA = card_mask; /* Enables card clocks */
|
||||
|
||||
MCI_ARGUMENT = 0;
|
||||
MCI_COMMAND = CMD_DONE_BIT|CMD_SEND_CLK_ONLY|CMD_WAIT_PRV_DAT_BIT;
|
||||
|
|
@ -658,11 +658,11 @@ static void init_controller(void)
|
|||
/* Rx watermark = 63(sd reads) Tx watermark = 128 (sd writes) */
|
||||
MCI_FIFOTH = (MCI_FIFOTH & MCI_FIFOTH_MASK) | 0x503f0080;
|
||||
|
||||
GPIOB_DIR |= (1<<5); /* Set pin B5 to output */
|
||||
|
||||
/* Mask all MCI Interrupts initially */
|
||||
MCI_MASK = 0;
|
||||
|
||||
GPIOB_DIR |= (1<<5); /* Pin B5 output */
|
||||
|
||||
MCI_CTRL |= INT_ENABLE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue