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 clock gating
Change-Id: I6c66c7496db3db78e5c959414464826134dbe200
This commit is contained in:
parent
1fa406dc21
commit
2b6dfdb34e
9 changed files with 66 additions and 35 deletions
|
|
@ -401,7 +401,7 @@ static void init_controller(void)
|
|||
SCU_IOMUXA_CON |= IOMUX_SD;
|
||||
|
||||
/* enable and unmask SD interrupts in interrupt controller */
|
||||
SCU_CLKCFG &= ~(1<<22);
|
||||
SCU_CLKCFG &= ~CLKCFG_SD;
|
||||
INTC_IMR |= (1<<10);
|
||||
INTC_IECR |= (1<<10);
|
||||
|
||||
|
|
@ -729,12 +729,12 @@ void sd_enable(bool on)
|
|||
/* enable or disable clock signal for SD module */
|
||||
if (on)
|
||||
{
|
||||
SCU_CLKCFG &= ~(1<<22);
|
||||
SCU_CLKCFG &= ~CLKCFG_SD;
|
||||
led(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
SCU_CLKCFG |= (1<<22);
|
||||
SCU_CLKCFG |= CLKCFG_SD;
|
||||
led(false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue