Date:2011-03-05 01:07:53 (9 years 3 months ago)
Author:Peter Zotov
Commit:6edec952101d7f7991ca02dea36c99328cb72da8
Message:Add IRQ workaround for JZ4750 errata.

Files: arch/mips/jz47xx/irq.c (1 diff)

Change Details

arch/mips/jz47xx/irq.c
111111    jz_intc_base = ioremap(JZ47XX_INTC_BASE_ADDR, 0x20 * num_banks);
112112    jz_intc_num_banks = num_banks;
113113
114#if defined(CONFIG_MACH_JZ4750)
115    write_c0_cause(0);
116    clear_c0_status(0xff1f); /* clear ERL */
117    set_c0_status(0x0400); /* set IP2 */
118#endif
119
114120    /* Mask all irqs */
115121    for (i = 0; i < num_banks; ++i) {
116122        writel(0xffffffff, jz_intc_base + JZ_REG_INTC_SET_MASK + i * 0x20);

Archive Download the corresponding diff file



interactive