From: Marc Kleine-Budde on 28 May 2010 07:50 Signed-off-by: Marc Kleine-Budde <mkl(a)pengutronix.de> --- arch/arm/mach-mx3/devices.c | 40 ++++++++++++++++++++++++++++++++++++++++ arch/arm/mach-mx3/devices.h | 2 ++ 2 files changed, 42 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c index db7acd6..0e1e20b 100644 --- a/arch/arm/mach-mx3/devices.c +++ b/arch/arm/mach-mx3/devices.c @@ -127,6 +127,46 @@ struct platform_device mxc_uart_device4 = { }; #endif /* CONFIG_ARCH_MX31 */ +#ifdef CONFIG_ARCH_MX35 +static struct resource mxc_can_1_resources[] = { + { + .start = 0x53fe4000, + .end = 0x53fe7fff, + .flags = IORESOURCE_MEM, + }, { + .start = 43, + .end = 43, + .flags = IORESOURCE_IRQ, + } +}; + +struct platform_device mxc_can_device0 = { + .name = "flexcan", + .id = 0, + .num_resources = ARRAY_SIZE(mxc_can_1_resources), + .resource = mxc_can_1_resources, +}; + +static struct resource mxc_can_2_resources[] = { + { + .start = 0x53fe8000, + .end = 0x53feffff, + .flags = IORESOURCE_MEM, + }, { + .start = 44, + .end = 44, + .flags = IORESOURCE_IRQ, + } +}; + +struct platform_device mxc_can_device1 = { + .name = "flexcan", + .id = 1, + .num_resources = ARRAY_SIZE(mxc_can_2_resources), + .resource = mxc_can_2_resources, +}; +#endif /* CONFIG_ARCH_MX35 */ + /* GPIO port description */ static struct mxc_gpio_port imx_gpio_ports[] = { { diff --git a/arch/arm/mach-mx3/devices.h b/arch/arm/mach-mx3/devices.h index 2c3c864..f600d09 100644 --- a/arch/arm/mach-mx3/devices.h +++ b/arch/arm/mach-mx3/devices.h @@ -29,3 +29,5 @@ extern struct platform_device imx_ssi_device1; extern struct platform_device imx_wdt_device0; extern struct platform_device imx_rtc_device0; extern struct platform_device imx_kpp_device; +extern struct platform_device mxc_can_device0; +extern struct platform_device mxc_can_device1; -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: Documentation/timers/hpet_example.c compile bug Next: [PATCH 1/4] mx25: flexcan clock support |