From a505815ae4471b2046aeda5c1660ee4f92ef85ac Mon Sep 17 00:00:00 2001 From: Holger Freyther <zecke@org.rmk.(none)> Date: Sun, 28 Nov 2004 16:02:29 +0000 Subject: [PATCH] [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 --- arch/arm/mach-sa1100/simpad.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/mach-sa1100/simpad.c b/arch/arm/mach-sa1100/simpad.c index 9c739bd78734..85782eb24ec4 100644 --- a/arch/arm/mach-sa1100/simpad.c +++ b/arch/arm/mach-sa1100/simpad.c @@ -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; } -- 2.30.9