]> git.neil.brown.name Git - history.git/commitdiff
[ARM PATCH] 2279/1: [PATCH] SIMpad: Add a mq200 device to the platform bus
authorHolger Freyther <zecke@org.rmk.(none)>
Sun, 28 Nov 2004 16:02:29 +0000 (16:02 +0000)
committerRussell King <rmk@flint.arm.linux.org.uk>
Sun, 28 Nov 2004 16:02:29 +0000 (16:02 +0000)
Patch from Holger Hans Peter Freyther

The SIMpad uses the MediaQ 200 framebuffer device. There is no driver in the vanilla kernel for that device. But adding the device to the platform bus makes it possible to just drop the mq200 driver into the kernel and the display will work.
Please consider applying the patch.

Signed-off-by: Holger Hans Peter Freyther
Signed-off-by: Russell King
arch/arm/mach-sa1100/simpad.c

index 9c739bd78734975b4446b7161e1dc02f29d67e14..85782eb24ec4f338812d6a3d13c65e51f83ee2e9 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/proc_fs.h>
 #include <linux/string.h> 
 #include <linux/pm.h>
+#include <linux/device.h>
 
 #include <asm/irq.h>
 #include <asm/hardware.h>
@@ -215,9 +216,31 @@ static void simpad_power_off(void)
 
 }
 
+
+/*
+ * MediaQ Video Device
+ */
+static struct platform_device simpad_mq200fb = {
+       .name = "simpad-mq200",
+       .id   = 0,
+};
+
+static struct platform_device *devices[] __initdata = {
+       &simpad_mq200fb
+};
+
+
+
 static int __init simpad_init(void)
 {
+       int ret;
+
        pm_power_off = simpad_power_off;
+
+       ret = platform_add_devices(devices, ARRAY_SIZE(devices));
+       if(ret)
+               printk(KERN_WARNING "simpad: Unable to register mq200 framebuffer device");
+
        return 0;
 }