diff options
Diffstat (limited to 'arch/arm/mach-mx2/devices.c')
-rw-r--r-- | arch/arm/mach-mx2/devices.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/mach-mx2/devices.c b/arch/arm/mach-mx2/devices.c index 9ddd6d061058..07061e644545 100644 --- a/arch/arm/mach-mx2/devices.c +++ b/arch/arm/mach-mx2/devices.c | |||
@@ -228,6 +228,39 @@ struct platform_device mxc_nand_device = { | |||
228 | .resource = mxc_nand_resources, | 228 | .resource = mxc_nand_resources, |
229 | }; | 229 | }; |
230 | 230 | ||
231 | #ifdef CONFIG_FB_IMX | ||
232 | /* | ||
233 | * lcdc: | ||
234 | * - i.MX1: the basic controller | ||
235 | * - i.MX21: to be checked | ||
236 | * - i.MX27: like i.MX1, with slightly variations | ||
237 | */ | ||
238 | static struct resource mxc_fb[] = { | ||
239 | { | ||
240 | .start = LCDC_BASE_ADDR, | ||
241 | .end = LCDC_BASE_ADDR + 0xFFF, | ||
242 | .flags = IORESOURCE_MEM, | ||
243 | }, | ||
244 | { | ||
245 | .start = MXC_INT_LCDC, | ||
246 | .end = MXC_INT_LCDC, | ||
247 | .flags = IORESOURCE_IRQ, | ||
248 | } | ||
249 | }; | ||
250 | |||
251 | /* mxc lcd driver */ | ||
252 | struct platform_device mxc_fb_device = { | ||
253 | .name = "imx-fb", | ||
254 | .id = 0, | ||
255 | .num_resources = ARRAY_SIZE(mxc_fb), | ||
256 | .resource = mxc_fb, | ||
257 | .dev = { | ||
258 | .coherent_dma_mask = 0xFFFFFFFF, | ||
259 | }, | ||
260 | }; | ||
261 | |||
262 | #endif | ||
263 | |||
231 | /* GPIO port description */ | 264 | /* GPIO port description */ |
232 | static struct mxc_gpio_port imx_gpio_ports[] = { | 265 | static struct mxc_gpio_port imx_gpio_ports[] = { |
233 | [0] = { | 266 | [0] = { |