rk27xx: substitute magic constants with meaningful names for INTC

Change-Id: Ic93114db351a9940a53d0c1df6439d82ada044e1
This commit is contained in:
Marcin Bukat 2012-12-17 09:51:08 +01:00
parent 15818bef55
commit efe1042759
6 changed files with 49 additions and 12 deletions

View file

@ -402,8 +402,8 @@ static void init_controller(void)
/* enable and unmask SD interrupts in interrupt controller */
SCU_CLKCFG &= ~CLKCFG_SD;
INTC_IMR |= (1<<10);
INTC_IECR |= (1<<10);
INTC_IMR |= IRQ_ARM_SD;
INTC_IECR |= IRQ_ARM_SD;
SD_CTRL = SD_PWR_CPU | SD_DETECT_MECH | SD_CLOCK_EN | 0x7D;
SD_INT = CMD_RES_INT_EN | DATA_XFER_INT_EN;