[PATCH v3 2/4] ARM: imx: add initial support for MVF600
Shawn Guo
shawn.guo at linaro.org
Fri May 17 21:27:28 EDT 2013
On Thu, May 16, 2013 at 02:10:46PM +0800, Jingchang Lu wrote:
> +static void __init mvf600_init_irq(void)
> +{
> + struct device_node *np;
> + void __iomem *mscm_base;
> + int i;
> +
> + l2x0_of_init(0, ~0UL);
> +
> + np = of_find_compatible_node(NULL, NULL, "fsl,mvf600-mscm");
> + mscm_base = of_iomap(np, 0);
> + if (!mscm_base)
> + return;
> +
> + /* route all shared peripheral interrupts to CP0 */
> + for (i = 0; i < 111; i++)
> + __raw_writew(1, mscm_base + 0x880 + 2 * i);
I second Arnd's comment on this. Can we have this setup done in
bootloader?
Shawn
> +
> + iounmap(mscm_base);
> +
> + irqchip_init();
> +}
More information about the linux-arm-kernel
mailing list