mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
rk27xx: substitute magic constants with meaningful names for peripherials reset
Change-Id: Ia411c9be65376d1c3fdf59b7e692b0590d58775e
This commit is contained in:
parent
2b6dfdb34e
commit
15818bef55
2 changed files with 17 additions and 2 deletions
|
|
@ -393,9 +393,9 @@ static void sd_thread(void)
|
|||
static void init_controller(void)
|
||||
{
|
||||
/* reset SD module */
|
||||
SCU_RSTCFG |= (1<<9);
|
||||
SCU_RSTCFG |= RSTCFG_SD;
|
||||
sleep(1);
|
||||
SCU_RSTCFG &= ~(1<<9);
|
||||
SCU_RSTCFG &= ~RSTCFG_SD;
|
||||
|
||||
/* set pins functions as SD signals */
|
||||
SCU_IOMUXA_CON |= IOMUX_SD;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue