]> git.hungrycats.org Git - linux/commitdiff
[ARM] Add LCD display parameters for Lubbock board.
authorRussell King <rmk@flint.arm.linux.org.uk>
Mon, 24 May 2004 00:29:13 +0000 (01:29 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Mon, 24 May 2004 00:29:13 +0000 (01:29 +0100)
arch/arm/mach-pxa/lubbock.c

index d5345fdad3dd02b65b13d8f2050a6284a75648b2..da026d43783324954e9ac818c88454405e983b4c 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/init.h>
 #include <linux/device.h>
 #include <linux/major.h>
-#include <linux/fs.h>
+#include <linux/fb.h>
 #include <linux/interrupt.h>
 
 #include <asm/setup.h>
@@ -30,6 +30,7 @@
 #include <asm/mach/irq.h>
 
 #include <asm/arch/udc.h>
+#include <asm/arch/pxafb.h>
 #include <asm/hardware/sa1111.h>
 
 #include "generic.h"
@@ -159,9 +160,29 @@ static struct platform_device *devices[] __initdata = {
        &smc91x_device,
 };
 
+static struct pxafb_mach_info sharp_lm8v31 __initdata = {
+       .pixclock       = 270000,
+       .xres           = 640,
+       .yres           = 480,
+       .bpp            = 16,
+       .hsync_len      = 1,
+       .left_margin    = 3,
+       .right_margin   = 3,
+       .vsync_len      = 1,
+       .upper_margin   = 0,
+       .lower_margin   = 0,
+       .sync           = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
+       .cmap_greyscale = 0,
+       .cmap_inverse   = 0,
+       .cmap_static    = 0,
+       .lccr0          = LCCR0_SDS,
+       .lccr3          = LCCR3_PCP | LCCR3_Acb(255),
+};
+
 static void __init lubbock_init(void)
 {
        pxa_set_udc_info(&udc_info);
+       set_pxa_fb_info(&sharp_lm8v31);
        (void) platform_add_devices(devices, ARRAY_SIZE(devices));
 }