rk27xx: substitute magic constants with meaningful names for peripherials reset

Change-Id: Ia411c9be65376d1c3fdf59b7e692b0590d58775e
This commit is contained in:
Marcin Bukat 2012-12-17 09:32:40 +01:00
parent 2b6dfdb34e
commit 15818bef55
2 changed files with 17 additions and 2 deletions

View file

@ -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;