[PATCH v2 2/2] ARM: shmobile: r8a7740: Migrate from INTC to GIC

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Mon Mar 25 20:29:43 EDT 2013


Hi Bastian

> With the added capabilty of the intc_irqpin driver to handle shared
> external IRQs, all prerequisites are fulfilled and we are ready to
> migrate completely to GIC. This includes the following steps:
> 
> - Kconfig:	select ARM_GIC and RENESAS_INTC_IRQPIN
> - intc-r8a7740: Throw out all legacy INTC code and init the GIC. We need
>   		to mask out all shared IRQs as it is needed by the
> 		shared intc_irqpin driver.
> - setup-r8a7740: Add 4 irqpin devices to handle external IRQs and update
> 		all IRQ numbers to point to the GIC SPI.
> - board-armadillo: Update all IRQ numbers to point to the GIC SPI.
> - pfc-r8a7740:	Update all IRQ numbers of the GPIOs to point to the GIC
> 		SPI.
> 
> Signed-off-by: Bastian Hecht <hechtb+renesas at gmail.com>
> ---
(snip)
> @@ -548,14 +673,14 @@ static struct resource r8a7740_dmae2_resources[] = {
>  	},
>  	{
>  		.name	= "error_irq",
> -		.start	= evt2irq(0x22c0),
> -		.end	= evt2irq(0x22c0),
> +		.start	= gic_spi(42),
> +		.end	= gic_spi(47),
>  		.flags	= IORESOURCE_IRQ,
>  	},
>  	{
>  		/* IRQ for channels 0-5 */
> -		.start	= evt2irq(0x2200),
> -		.end	= evt2irq(0x22a0),
> +		.start	= gic_spi(48),
> +		.end	= gic_spi(48),
>  		.flags	= IORESOURCE_IRQ,
>  	},
>  };

I guess, this is type ?
error gic is 48, and channels 0-5 are 42 - 47 :) ?


Best regards
---
Kuninori Morimoto



More information about the linux-arm-kernel mailing list