diff options
| author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2019-02-14 15:52:01 +0100 | 
|---|---|---|
| committer | Sekhar Nori <nsekhar@ti.com> | 2019-02-19 19:40:52 +0530 | 
| commit | a98ca73ee34825c09e666a97245dedf71ca84fbd (patch) | |
| tree | 512c420a7716994420cb3764bb927ab1adf23a79 /arch/arm/mach-davinci/da850.c | |
| parent | fb746842f60350f4654b265364c022219614239c (diff) | |
| download | linux-a98ca73ee34825c09e666a97245dedf71ca84fbd.tar.bz2 | |
ARM: davinci: wrap HW interrupt numbers with a macro
Once we select SPARSE_IRQ, the interrupt numbers defined in mach/irqs.h
will only signify the hardware interrupt offsets, not the interrupt
numbers seen by linux. Introduce a wrapper macro that translates the
hwirq number to virtual numbers. For now it's just a dummy. Use that
macro when specifying the interrupts in resources for platform devices.
Reviewed-by: David Lechner <david@lechnology.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/da850.c')
| -rw-r--r-- | arch/arm/mach-davinci/da850.c | 28 | 
1 files changed, 14 insertions, 14 deletions
| diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index e823b89e2b7a..d22b19833326 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c @@ -439,23 +439,23 @@ static struct davinci_id da850_ids[] = {  static struct davinci_timer_instance da850_timer_instance[4] = {  	{  		.base		= DA8XX_TIMER64P0_BASE, -		.bottom_irq	= IRQ_DA8XX_TINT12_0, -		.top_irq	= IRQ_DA8XX_TINT34_0, +		.bottom_irq	= DAVINCI_INTC_IRQ(IRQ_DA8XX_TINT12_0), +		.top_irq	= DAVINCI_INTC_IRQ(IRQ_DA8XX_TINT34_0),  	},  	{  		.base		= DA8XX_TIMER64P1_BASE, -		.bottom_irq	= IRQ_DA8XX_TINT12_1, -		.top_irq	= IRQ_DA8XX_TINT34_1, +		.bottom_irq	= DAVINCI_INTC_IRQ(IRQ_DA8XX_TINT12_1), +		.top_irq	= DAVINCI_INTC_IRQ(IRQ_DA8XX_TINT34_1),  	},  	{  		.base		= DA850_TIMER64P2_BASE, -		.bottom_irq	= IRQ_DA850_TINT12_2, -		.top_irq	= IRQ_DA850_TINT34_2, +		.bottom_irq	= DAVINCI_INTC_IRQ(IRQ_DA850_TINT12_2), +		.top_irq	= DAVINCI_INTC_IRQ(IRQ_DA850_TINT34_2),  	},  	{  		.base		= DA850_TIMER64P3_BASE, -		.bottom_irq	= IRQ_DA850_TINT12_3, -		.top_irq	= IRQ_DA850_TINT34_3, +		.bottom_irq	= DAVINCI_INTC_IRQ(IRQ_DA850_TINT12_3), +		.top_irq	= DAVINCI_INTC_IRQ(IRQ_DA850_TINT34_3),  	},  }; @@ -658,8 +658,8 @@ static struct platform_device da850_vpif_dev = {  static struct resource da850_vpif_display_resource[] = {  	{ -		.start = IRQ_DA850_VPIFINT, -		.end   = IRQ_DA850_VPIFINT, +		.start = DAVINCI_INTC_IRQ(IRQ_DA850_VPIFINT), +		.end   = DAVINCI_INTC_IRQ(IRQ_DA850_VPIFINT),  		.flags = IORESOURCE_IRQ,  	},  }; @@ -677,13 +677,13 @@ static struct platform_device da850_vpif_display_dev = {  static struct resource da850_vpif_capture_resource[] = {  	{ -		.start = IRQ_DA850_VPIFINT, -		.end   = IRQ_DA850_VPIFINT, +		.start = DAVINCI_INTC_IRQ(IRQ_DA850_VPIFINT), +		.end   = DAVINCI_INTC_IRQ(IRQ_DA850_VPIFINT),  		.flags = IORESOURCE_IRQ,  	},  	{ -		.start = IRQ_DA850_VPIFINT, -		.end   = IRQ_DA850_VPIFINT, +		.start = DAVINCI_INTC_IRQ(IRQ_DA850_VPIFINT), +		.end   = DAVINCI_INTC_IRQ(IRQ_DA850_VPIFINT),  		.flags = IORESOURCE_IRQ,  	},  }; |