diff options
Diffstat (limited to 'arch/arm/mach-imx/mach-mx35_3ds.c')
-rw-r--r-- | arch/arm/mach-imx/mach-mx35_3ds.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/arch/arm/mach-imx/mach-mx35_3ds.c b/arch/arm/mach-imx/mach-mx35_3ds.c index 28aa19476de..e78525405c9 100644 --- a/arch/arm/mach-imx/mach-mx35_3ds.c +++ b/arch/arm/mach-imx/mach-mx35_3ds.c | |||
@@ -46,7 +46,6 @@ | |||
46 | #include <mach/hardware.h> | 46 | #include <mach/hardware.h> |
47 | #include <mach/common.h> | 47 | #include <mach/common.h> |
48 | #include <mach/iomux-mx35.h> | 48 | #include <mach/iomux-mx35.h> |
49 | #include <mach/irqs.h> | ||
50 | #include <mach/3ds_debugboard.h> | 49 | #include <mach/3ds_debugboard.h> |
51 | #include <video/platform_lcd.h> | 50 | #include <video/platform_lcd.h> |
52 | 51 | ||
@@ -80,10 +79,6 @@ static const struct fb_videomode fb_modedb[] = { | |||
80 | }, | 79 | }, |
81 | }; | 80 | }; |
82 | 81 | ||
83 | static const struct ipu_platform_data mx3_ipu_data __initconst = { | ||
84 | .irq_base = MXC_IPU_IRQ_START, | ||
85 | }; | ||
86 | |||
87 | static struct mx3fb_platform_data mx3fb_pdata __initdata = { | 82 | static struct mx3fb_platform_data mx3fb_pdata __initdata = { |
88 | .name = "Ceramate-CLAA070VC01", | 83 | .name = "Ceramate-CLAA070VC01", |
89 | .mode = fb_modedb, | 84 | .mode = fb_modedb, |
@@ -136,8 +131,6 @@ static struct platform_device mx35_3ds_lcd = { | |||
136 | .dev.platform_data = &mx35_3ds_lcd_data, | 131 | .dev.platform_data = &mx35_3ds_lcd_data, |
137 | }; | 132 | }; |
138 | 133 | ||
139 | #define EXPIO_PARENT_INT gpio_to_irq(IMX_GPIO_NR(1, 1)) | ||
140 | |||
141 | static const struct imxuart_platform_data uart_pdata __initconst = { | 134 | static const struct imxuart_platform_data uart_pdata __initconst = { |
142 | .flags = IMXUART_HAVE_RTSCTS, | 135 | .flags = IMXUART_HAVE_RTSCTS, |
143 | }; | 136 | }; |
@@ -297,10 +290,6 @@ err: | |||
297 | return ret; | 290 | return ret; |
298 | } | 291 | } |
299 | 292 | ||
300 | static const struct ipu_platform_data mx35_3ds_ipu_data __initconst = { | ||
301 | .irq_base = MXC_IPU_IRQ_START, | ||
302 | }; | ||
303 | |||
304 | static struct i2c_board_info mx35_3ds_i2c_camera = { | 293 | static struct i2c_board_info mx35_3ds_i2c_camera = { |
305 | I2C_BOARD_INFO("ov2640", 0x30), | 294 | I2C_BOARD_INFO("ov2640", 0x30), |
306 | }; | 295 | }; |
@@ -492,7 +481,7 @@ static struct i2c_board_info mx35_3ds_i2c_mc13892 = { | |||
492 | 481 | ||
493 | I2C_BOARD_INFO("mc13892", 0x08), | 482 | I2C_BOARD_INFO("mc13892", 0x08), |
494 | .platform_data = &mx35_3ds_mc13892_data, | 483 | .platform_data = &mx35_3ds_mc13892_data, |
495 | .irq = IMX_GPIO_TO_IRQ(GPIO_PMIC_INT), | 484 | /* irq number is run-time assigned */ |
496 | }; | 485 | }; |
497 | 486 | ||
498 | static void __init imx35_3ds_init_mc13892(void) | 487 | static void __init imx35_3ds_init_mc13892(void) |
@@ -504,6 +493,7 @@ static void __init imx35_3ds_init_mc13892(void) | |||
504 | return; | 493 | return; |
505 | } | 494 | } |
506 | 495 | ||
496 | mx35_3ds_i2c_mc13892.irq = gpio_to_irq(GPIO_PMIC_INT); | ||
507 | i2c_register_board_info(0, &mx35_3ds_i2c_mc13892, 1); | 497 | i2c_register_board_info(0, &mx35_3ds_i2c_mc13892, 1); |
508 | } | 498 | } |
509 | 499 | ||
@@ -587,7 +577,7 @@ static void __init mx35_3ds_init(void) | |||
587 | imx35_add_mxc_nand(&mx35pdk_nand_board_info); | 577 | imx35_add_mxc_nand(&mx35pdk_nand_board_info); |
588 | imx35_add_sdhci_esdhc_imx(0, NULL); | 578 | imx35_add_sdhci_esdhc_imx(0, NULL); |
589 | 579 | ||
590 | if (mxc_expio_init(MX35_CS5_BASE_ADDR, EXPIO_PARENT_INT)) | 580 | if (mxc_expio_init(MX35_CS5_BASE_ADDR, IMX_GPIO_NR(1, 1))) |
591 | pr_warn("Init of the debugboard failed, all " | 581 | pr_warn("Init of the debugboard failed, all " |
592 | "devices on the debugboard are unusable.\n"); | 582 | "devices on the debugboard are unusable.\n"); |
593 | imx35_add_imx_i2c0(&mx35_3ds_i2c0_data); | 583 | imx35_add_imx_i2c0(&mx35_3ds_i2c0_data); |
@@ -595,7 +585,7 @@ static void __init mx35_3ds_init(void) | |||
595 | i2c_register_board_info( | 585 | i2c_register_board_info( |
596 | 0, i2c_devices_3ds, ARRAY_SIZE(i2c_devices_3ds)); | 586 | 0, i2c_devices_3ds, ARRAY_SIZE(i2c_devices_3ds)); |
597 | 587 | ||
598 | imx35_add_ipu_core(&mx35_3ds_ipu_data); | 588 | imx35_add_ipu_core(); |
599 | platform_device_register(&mx35_3ds_ov2640); | 589 | platform_device_register(&mx35_3ds_ov2640); |
600 | imx35_3ds_init_camera(); | 590 | imx35_3ds_init_camera(); |
601 | 591 | ||