summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx25/devices.c
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2010-02-17 12:33:24 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-02-18 08:35:05 +0100
commit04a03e5fe3d337242e5c0a9c93d2fd24cff545ef (patch)
tree30fa99ccf96b411e5e2a4a74f237d22f86cdb4b8 /arch/arm/mach-mx25/devices.c
parentf601441916d1e19291d0b4f044b4a7551e2924d0 (diff)
downloadop-kernel-dev-04a03e5fe3d337242e5c0a9c93d2fd24cff545ef.zip
op-kernel-dev-04a03e5fe3d337242e5c0a9c93d2fd24cff545ef.tar.gz
mx25: add platform support for imxfb
Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx25/devices.c')
-rw-r--r--arch/arm/mach-mx25/devices.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/mach-mx25/devices.c b/arch/arm/mach-mx25/devices.c
index b0b75fc..3f4b8a0 100644
--- a/arch/arm/mach-mx25/devices.c
+++ b/arch/arm/mach-mx25/devices.c
@@ -477,3 +477,26 @@ struct platform_device mx25_rtc_device = {
.num_resources = ARRAY_SIZE(mx25_rtc_resources),
.resource = mx25_rtc_resources,
};
+
+static struct resource mx25_fb_resources[] = {
+ {
+ .start = MX25_LCDC_BASE_ADDR,
+ .end = MX25_LCDC_BASE_ADDR + 0xfff,
+ .flags = IORESOURCE_MEM,
+ },
+ {
+ .start = MX25_INT_LCDC,
+ .end = MX25_INT_LCDC,
+ .flags = IORESOURCE_IRQ,
+ },
+};
+
+struct platform_device mx25_fb_device = {
+ .name = "imx-fb",
+ .id = 0,
+ .resource = mx25_fb_resources,
+ .num_resources = ARRAY_SIZE(mx25_fb_resources),
+ .dev = {
+ .coherent_dma_mask = 0xFFFFFFFF,
+ },
+};
OpenPOWER on IntegriCloud