Commit b6bd2633 authored by Paul Mundt's avatar Paul Mundt

sh: hp6xx evt2irq migration.

Migrate hp6xx to evt2irq backed hwirq lookups.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent b894701e
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/irq.h> #include <linux/irq.h>
#include <linux/sh_intc.h>
#include <sound/sh_dac_audio.h> #include <sound/sh_dac_audio.h>
#include <asm/hd64461.h> #include <asm/hd64461.h>
#include <asm/io.h> #include <asm/io.h>
...@@ -35,7 +36,7 @@ static struct resource cf_ide_resources[] = { ...@@ -35,7 +36,7 @@ static struct resource cf_ide_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[2] = { [2] = {
.start = 77, .start = evt2irq(0xba0),
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
......
...@@ -9,10 +9,11 @@ ...@@ -9,10 +9,11 @@
* for more details. * for more details.
* *
*/ */
#include <linux/sh_intc.h>
#define HP680_BTN_IRQ 32 /* IRQ0_IRQ */ #define HP680_BTN_IRQ evt2irq(0x600) /* IRQ0_IRQ */
#define HP680_TS_IRQ 35 /* IRQ3_IRQ */ #define HP680_TS_IRQ evt2irq(0x660) /* IRQ3_IRQ */
#define HP680_HD64461_IRQ 36 /* IRQ4_IRQ */ #define HP680_HD64461_IRQ evt2irq(0x680) /* IRQ4_IRQ */
#define DAC_LCD_BRIGHTNESS 0 #define DAC_LCD_BRIGHTNESS 0
#define DAC_SPEAKER_VOLUME 1 #define DAC_SPEAKER_VOLUME 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment