Commit a505815a authored by Holger Freyther's avatar Holger Freyther Committed by Russell King

[ARM PATCH] 2279/1: [PATCH] SIMpad: Add a mq200 device to the platform bus

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
parent b65f05a2
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/pm.h> #include <linux/pm.h>
#include <linux/device.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/hardware.h> #include <asm/hardware.h>
...@@ -215,9 +216,31 @@ static void simpad_power_off(void) ...@@ -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) static int __init simpad_init(void)
{ {
int ret;
pm_power_off = simpad_power_off; 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; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment