diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-23 20:36:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-23 20:36:02 -0400 |
commit | 3645f0cd96fbf72c614673c5f4b1a8675f82a379 (patch) | |
tree | 84539c44e461eb9451cc0320dec70eedc9724796 /arch/arm/mach-imx/mach-mx31moboard.c | |
parent | f1d2c07d331f717da79a42952be7dc1c0d35f846 (diff) | |
parent | c7b0807b9d4faddd87a75a5acb079e5dbfedd211 (diff) |
Merge tag 'irq' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull arm-soc sparse IRQ conversion from Arnd Bergmann:
"The I.MX platform is getting converted to use sparse IRQs. We are
doing this for all platforms over time, because this is one of the
requirements for building a multiplatform kernel, and generally a good
idea."
* tag 'irq' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
ARM: imx: select USE_OF
ARM: imx: Fix build error due to missing irqs.h include
ARM: imx: enable SPARSE_IRQ for imx platform
ARM: fiq: change FIQ_START to a variable
tty: serial: imx: remove the use of MXC_INTERNAL_IRQS
ARM: imx: remove unneeded mach/irq.h inclusion
i2c: imx: remove unneeded mach/irqs.h inclusion
ARM: imx: add a legacy irqdomain for mx31ads
ARM: imx: add a legacy irqdomain for 3ds_debugboard
ARM: imx: pass gpio than irq number into mxc_expio_init
ARM: imx: leave irq_base of wm8350_platform_data uninitialized
dma: ipu: remove the use of ipu_platform_data
ARM: imx: move irq_domain_add_legacy call into avic driver
ARM: imx: move irq_domain_add_legacy call into tzic driver
gpio/mxc: move irq_domain_add_legacy call into gpio driver
ARM: imx: eliminate macro IRQ_GPIOx()
ARM: imx: eliminate macro IOMUX_TO_IRQ()
ARM: imx: eliminate macro IMX_GPIO_TO_IRQ()
Diffstat (limited to 'arch/arm/mach-imx/mach-mx31moboard.c')
-rw-r--r-- | arch/arm/mach-imx/mach-mx31moboard.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/arm/mach-imx/mach-mx31moboard.c b/arch/arm/mach-imx/mach-mx31moboard.c index 63e84e67b990..d46290b288ed 100644 --- a/arch/arm/mach-imx/mach-mx31moboard.c +++ b/arch/arm/mach-imx/mach-mx31moboard.c | |||
@@ -303,7 +303,7 @@ static struct imx_ssi_platform_data moboard_ssi_pdata = { | |||
303 | static struct spi_board_info moboard_spi_board_info[] __initdata = { | 303 | static struct spi_board_info moboard_spi_board_info[] __initdata = { |
304 | { | 304 | { |
305 | .modalias = "mc13783", | 305 | .modalias = "mc13783", |
306 | .irq = IOMUX_TO_IRQ(MX31_PIN_GPIO1_3), | 306 | /* irq number is run-time assigned */ |
307 | .max_speed_hz = 300000, | 307 | .max_speed_hz = 300000, |
308 | .bus_num = 1, | 308 | .bus_num = 1, |
309 | .chip_select = 0, | 309 | .chip_select = 0, |
@@ -473,10 +473,6 @@ static const struct gpio_led_platform_data mx31moboard_led_pdata __initconst = { | |||
473 | .leds = mx31moboard_leds, | 473 | .leds = mx31moboard_leds, |
474 | }; | 474 | }; |
475 | 475 | ||
476 | static const struct ipu_platform_data mx3_ipu_data __initconst = { | ||
477 | .irq_base = MXC_IPU_IRQ_START, | ||
478 | }; | ||
479 | |||
480 | static struct platform_device *devices[] __initdata = { | 476 | static struct platform_device *devices[] __initdata = { |
481 | &mx31moboard_flash, | 477 | &mx31moboard_flash, |
482 | }; | 478 | }; |
@@ -494,7 +490,7 @@ static int __init mx31moboard_init_cam(void) | |||
494 | int dma, ret = -ENOMEM; | 490 | int dma, ret = -ENOMEM; |
495 | struct platform_device *pdev; | 491 | struct platform_device *pdev; |
496 | 492 | ||
497 | imx31_add_ipu_core(&mx3_ipu_data); | 493 | imx31_add_ipu_core(); |
498 | 494 | ||
499 | pdev = imx31_alloc_mx3_camera(&camera_pdata); | 495 | pdev = imx31_alloc_mx3_camera(&camera_pdata); |
500 | if (IS_ERR(pdev)) | 496 | if (IS_ERR(pdev)) |
@@ -557,6 +553,8 @@ static void __init mx31moboard_init(void) | |||
557 | 553 | ||
558 | gpio_request(IOMUX_TO_GPIO(MX31_PIN_GPIO1_3), "pmic-irq"); | 554 | gpio_request(IOMUX_TO_GPIO(MX31_PIN_GPIO1_3), "pmic-irq"); |
559 | gpio_direction_input(IOMUX_TO_GPIO(MX31_PIN_GPIO1_3)); | 555 | gpio_direction_input(IOMUX_TO_GPIO(MX31_PIN_GPIO1_3)); |
556 | moboard_spi_board_info[0].irq = | ||
557 | gpio_to_irq(IOMUX_TO_GPIO(MX31_PIN_GPIO1_3)); | ||
560 | spi_register_board_info(moboard_spi_board_info, | 558 | spi_register_board_info(moboard_spi_board_info, |
561 | ARRAY_SIZE(moboard_spi_board_info)); | 559 | ARRAY_SIZE(moboard_spi_board_info)); |
562 | 560 | ||