aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-mx3/devices.c')
-rw-r--r--arch/arm/mach-mx3/devices.c48
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c
index 7cfdef0aad45..b7d4900b02e4 100644
--- a/arch/arm/mach-mx3/devices.c
+++ b/arch/arm/mach-mx3/devices.c
@@ -242,3 +242,51 @@ struct platform_device mxc_i2c_device2 = {
242 .num_resources = ARRAY_SIZE(mxc_i2c2_resources), 242 .num_resources = ARRAY_SIZE(mxc_i2c2_resources),
243 .resource = mxc_i2c2_resources, 243 .resource = mxc_i2c2_resources,
244}; 244};
245
246/* i.MX31 Image Processing Unit */
247
248/* The resource order is important! */
249static struct resource mx3_ipu_rsrc[] = {
250 {
251 .start = IPU_CTRL_BASE_ADDR,
252 .end = IPU_CTRL_BASE_ADDR + 0x5F,
253 .flags = IORESOURCE_MEM,
254 }, {
255 .start = IPU_CTRL_BASE_ADDR + 0x88,
256 .end = IPU_CTRL_BASE_ADDR + 0xB3,
257 .flags = IORESOURCE_MEM,
258 }, {
259 .start = MXC_INT_IPU_SYN,
260 .end = MXC_INT_IPU_SYN,
261 .flags = IORESOURCE_IRQ,
262 }, {
263 .start = MXC_INT_IPU_ERR,
264 .end = MXC_INT_IPU_ERR,
265 .flags = IORESOURCE_IRQ,
266 },
267};
268
269struct platform_device mx3_ipu = {
270 .name = "ipu-core",
271 .id = -1,
272 .num_resources = ARRAY_SIZE(mx3_ipu_rsrc),
273 .resource = mx3_ipu_rsrc,
274};
275
276static struct resource fb_resources[] = {
277 {
278 .start = IPU_CTRL_BASE_ADDR + 0xB4,
279 .end = IPU_CTRL_BASE_ADDR + 0x1BF,
280 .flags = IORESOURCE_MEM,
281 },
282};
283
284struct platform_device mx3_fb = {
285 .name = "mx3_sdc_fb",
286 .id = -1,
287 .num_resources = ARRAY_SIZE(fb_resources),
288 .resource = fb_resources,
289 .dev = {
290 .coherent_dma_mask = 0xffffffff,
291 },
292};