diff options
Diffstat (limited to 'recipes/linux/linux-2.6.29/cm-x270/0003-cm-x2xx.c-add-support-for-sharp-VGA-display-panel.patch')
-rw-r--r-- | recipes/linux/linux-2.6.29/cm-x270/0003-cm-x2xx.c-add-support-for-sharp-VGA-display-panel.patch | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/recipes/linux/linux-2.6.29/cm-x270/0003-cm-x2xx.c-add-support-for-sharp-VGA-display-panel.patch b/recipes/linux/linux-2.6.29/cm-x270/0003-cm-x2xx.c-add-support-for-sharp-VGA-display-panel.patch new file mode 100644 index 0000000000..c400f1be6b --- /dev/null +++ b/recipes/linux/linux-2.6.29/cm-x270/0003-cm-x2xx.c-add-support-for-sharp-VGA-display-panel.patch @@ -0,0 +1,64 @@ +From 55436d7d910bcfe0081bf84d3321260bf4aa89d3 Mon Sep 17 00:00:00 2001 +From: Cliff Brake <cbrake@bec-systems.com> +Date: Thu, 12 Mar 2009 14:32:39 -0400 +Subject: [PATCH] cm-x2xx.c: add support for sharp VGA display panel + +merge with video mods +--- + arch/arm/mach-pxa/cm-x2xx.c | 26 ++++++++++++++++++++++++++ + 1 files changed, 26 insertions(+), 0 deletions(-) + +diff --git a/arch/arm/mach-pxa/cm-x2xx.c b/arch/arm/mach-pxa/cm-x2xx.c +index d99fd9e..fa91d93 100644 +--- a/arch/arm/mach-pxa/cm-x2xx.c ++++ b/arch/arm/mach-pxa/cm-x2xx.c +@@ -190,6 +190,7 @@ static inline void cmx2xx_init_leds(void) {} + #define MTYPE_CRT800x600 3 + #define MTYPE_TFT320x240 6 + #define MTYPE_STN640x480 7 ++#define MTYPE_TFT640x480_SHARP 8 + + static struct pxafb_mode_info generic_stn_320x240_mode = { + .pixclock = 76923, +@@ -335,6 +336,28 @@ static struct pxafb_mach_info generic_stn_640x480 = { + .cmap_static = 0, + }; + ++static struct pxafb_mode_info sharp_vga_tft_mode = { ++ .pixclock = 38461, ++ .bpp = 16, ++ .xres = 640, ++ .yres = 480, ++ .hsync_len = 60, ++ .vsync_len = 2, ++ .left_margin = 72, ++ .upper_margin = 32, ++ .right_margin = 72, ++ .lower_margin = 10, ++ .sync = 0, ++}; ++ ++static struct pxafb_mach_info sharp_vga_tft = { ++ .modes = &sharp_vga_tft_mode, ++ .num_modes = 1, ++ .lccr0 = (LCCR0_PAS), ++ .lccr3 = (LCCR3_PixClkDiv(0x01) | ++ LCCR3_Acb(0xff)), ++}; ++ + static struct pxafb_mach_info *cmx2xx_display = &generic_crt_640x480; + + static int __init cmx2xx_set_display(char *str) +@@ -356,6 +379,9 @@ static int __init cmx2xx_set_display(char *str) + case MTYPE_TFT320x240: + cmx2xx_display = &generic_tft_320x240; + break; ++ case MTYPE_TFT640x480_SHARP: ++ cmx2xx_display = &sharp_vga_tft; ++ break; + case MTYPE_STN640x480: + cmx2xx_display = &generic_stn_640x480; + break; +-- +1.5.6.3 + |