diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 02:45:09 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 02:45:09 -0400 |
commit | 9c23c516b54d2f383f0868ac1e2b351e7b3975ec (patch) | |
tree | f91322b5672d7650fa40d656088ca6a9246b0735 /arch/sh/boards | |
parent | 4059e43a6e091d80a1539f4c43bc3caab0e578f6 (diff) |
sh: ap325rxa evt2irq migration.
Migrate ap325rxa to evt2irq backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards')
-rw-r--r-- | arch/sh/boards/mach-ap325rxa/setup.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/sh/boards/mach-ap325rxa/setup.c b/arch/sh/boards/mach-ap325rxa/setup.c index 8cf02e343333..f33ebf447073 100644 --- a/arch/sh/boards/mach-ap325rxa/setup.c +++ b/arch/sh/boards/mach-ap325rxa/setup.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/smsc911x.h> | 23 | #include <linux/smsc911x.h> |
24 | #include <linux/gpio.h> | 24 | #include <linux/gpio.h> |
25 | #include <linux/videodev2.h> | 25 | #include <linux/videodev2.h> |
26 | #include <linux/sh_intc.h> | ||
26 | #include <media/ov772x.h> | 27 | #include <media/ov772x.h> |
27 | #include <media/soc_camera.h> | 28 | #include <media/soc_camera.h> |
28 | #include <media/soc_camera_platform.h> | 29 | #include <media/soc_camera_platform.h> |
@@ -47,8 +48,8 @@ static struct resource smsc9118_resources[] = { | |||
47 | .flags = IORESOURCE_MEM, | 48 | .flags = IORESOURCE_MEM, |
48 | }, | 49 | }, |
49 | [1] = { | 50 | [1] = { |
50 | .start = 35, | 51 | .start = evt2irq(0x660), |
51 | .end = 35, | 52 | .end = evt2irq(0x660), |
52 | .flags = IORESOURCE_IRQ, | 53 | .flags = IORESOURCE_IRQ, |
53 | } | 54 | } |
54 | }; | 55 | }; |
@@ -166,7 +167,7 @@ static int ap320_wvga_set_brightness(int brightness) | |||
166 | __raw_writew(0, FPGA_BKLREG); | 167 | __raw_writew(0, FPGA_BKLREG); |
167 | gpio_set_value(GPIO_PTS3, 1); | 168 | gpio_set_value(GPIO_PTS3, 1); |
168 | } | 169 | } |
169 | 170 | ||
170 | return 0; | 171 | return 0; |
171 | } | 172 | } |
172 | 173 | ||
@@ -236,7 +237,7 @@ static struct resource lcdc_resources[] = { | |||
236 | .flags = IORESOURCE_MEM, | 237 | .flags = IORESOURCE_MEM, |
237 | }, | 238 | }, |
238 | [1] = { | 239 | [1] = { |
239 | .start = 28, | 240 | .start = evt2irq(0x580), |
240 | .flags = IORESOURCE_IRQ, | 241 | .flags = IORESOURCE_IRQ, |
241 | }, | 242 | }, |
242 | }; | 243 | }; |
@@ -404,7 +405,7 @@ static struct resource ceu_resources[] = { | |||
404 | .flags = IORESOURCE_MEM, | 405 | .flags = IORESOURCE_MEM, |
405 | }, | 406 | }, |
406 | [1] = { | 407 | [1] = { |
407 | .start = 52, | 408 | .start = evt2irq(0x880), |
408 | .flags = IORESOURCE_IRQ, | 409 | .flags = IORESOURCE_IRQ, |
409 | }, | 410 | }, |
410 | [2] = { | 411 | [2] = { |
@@ -430,7 +431,7 @@ static struct resource sdhi0_cn3_resources[] = { | |||
430 | .flags = IORESOURCE_MEM, | 431 | .flags = IORESOURCE_MEM, |
431 | }, | 432 | }, |
432 | [1] = { | 433 | [1] = { |
433 | .start = 100, | 434 | .start = evt2irq(0xe80), |
434 | .flags = IORESOURCE_IRQ, | 435 | .flags = IORESOURCE_IRQ, |
435 | }, | 436 | }, |
436 | }; | 437 | }; |
@@ -457,7 +458,7 @@ static struct resource sdhi1_cn7_resources[] = { | |||
457 | .flags = IORESOURCE_MEM, | 458 | .flags = IORESOURCE_MEM, |
458 | }, | 459 | }, |
459 | [1] = { | 460 | [1] = { |
460 | .start = 23, | 461 | .start = evt2irq(0x4e0), |
461 | .flags = IORESOURCE_IRQ, | 462 | .flags = IORESOURCE_IRQ, |
462 | }, | 463 | }, |
463 | }; | 464 | }; |