sh: hp6xx evt2irq migration.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 18 May 2012 06:38:50 +0000 (15:38 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 18 May 2012 06:38:50 +0000 (15:38 +0900)
Migrate hp6xx to evt2irq backed hwirq lookups.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boards/mach-hp6xx/setup.c
arch/sh/include/mach-common/mach/hp6xx.h

index 8c9add5f4cfae08facb9bba4e525dd7713083b5c..db34cad1b76c78e0d01f588d6371750dc861c9d7 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/irq.h>
+#include <linux/sh_intc.h>
 #include <sound/sh_dac_audio.h>
 #include <asm/hd64461.h>
 #include <asm/io.h>
@@ -35,7 +36,7 @@ static struct resource cf_ide_resources[] = {
                .flags = IORESOURCE_MEM,
        },
        [2] = {
-               .start = 77,
+               .start = evt2irq(0xba0),
                .flags = IORESOURCE_IRQ,
        },
 };
index bcc301ac12f4b07e7d7424717b5d278ce1e48cdc..6aaaf8596e6a823c0c17b74bb55849e46e97818d 100644 (file)
@@ -9,10 +9,11 @@
  * for more details.
  *
  */
+#include <linux/sh_intc.h>
 
-#define HP680_BTN_IRQ          32      /* IRQ0_IRQ */
-#define HP680_TS_IRQ           35      /* IRQ3_IRQ */
-#define HP680_HD64461_IRQ      36      /* IRQ4_IRQ */
+#define HP680_BTN_IRQ          evt2irq(0x600)  /* IRQ0_IRQ */
+#define HP680_TS_IRQ           evt2irq(0x660)  /* IRQ3_IRQ */
+#define HP680_HD64461_IRQ      evt2irq(0x680)  /* IRQ4_IRQ */
 
 #define DAC_LCD_BRIGHTNESS     0
 #define DAC_SPEAKER_VOLUME     1