linux: add patch to a get rid of the horribly broken default TX25 video mode
authorFlorian Boor <florian.boor@kernelconcepts.de>
Fri, 17 Jul 2009 15:26:38 +0000 (17:26 +0200)
committerFlorian Boor <florian.boor@kernelconcepts.de>
Fri, 17 Jul 2009 15:33:09 +0000 (17:33 +0200)
recipes/linux/linux-2.6.29+2.6.30-rc4/tx25/stk5-baseboard_c_vesa640.patch [new file with mode: 0644]
recipes/linux/linux_2.6.29+2.6.30-rc4.bb

diff --git a/recipes/linux/linux-2.6.29+2.6.30-rc4/tx25/stk5-baseboard_c_vesa640.patch b/recipes/linux/linux-2.6.29+2.6.30-rc4/tx25/stk5-baseboard_c_vesa640.patch
new file mode 100644 (file)
index 0000000..c3eb357
--- /dev/null
@@ -0,0 +1,40 @@
+--- a/arch/arm/mach-mx2/stk5-baseboard.c.orig  2009-07-17 00:57:10.000000000 +0200
++++ b/arch/arm/mach-mx2/stk5-baseboard.c       2009-07-16 13:02:20.000000000 +0200
+@@ -613,6 +613,37 @@
+ static struct imx_fb_platform_data stk5_fb_data[] __initdata = {
+       {
++              /* VESA 640x480@60 */
++              .init = stk5_gpio_lcdc_active,
++              .exit = stk5_gpio_lcdc_inactive,
++              .lcd_power = NULL,
++              .backlight_power = NULL,
++
++              .pixclock       = 39721,
++
++              .xres           = 640,
++              .yres           = 480,
++
++              .bpp            = 16,
++
++              .hsync_len      = 64,
++              .right_margin   = 24,
++              .left_margin    = 40,
++
++              .vsync_len      = 2,
++              .lower_margin   = 11,
++              .upper_margin   = 32,
++
++              .pcr            = PCR_TFT | PCR_COLOR | PCR_PBSIZ_8 |
++                                PCR_BPIX_16 | PCR_FLMPOL | PCR_LPPOL | PCR_SCLK_SEL,
++              .dmacr          = 0x80040060,
++
++              .cmap_greyscale = 0,
++              .cmap_inverse   = 0,
++              .cmap_static    = 0,
++
++              .fixed_screen_cpu = NULL,
++      }, {
+ #if 1
+               //.fb_mode = "Xenarc_700_Y-18",
+               .init = stk5_gpio_lcdc_active,
index d014298..0217587 100644 (file)
@@ -3,7 +3,7 @@ require linux.inc
 KERNEL_RELEASE = "2.6.30-rc4"
 OLD_KERNEL_RELEASE = "2.6.29"
 PV = "${OLD_KERNEL_RELEASE}+${KERNEL_RELEASE}"
-PR = "r4"
+PR = "r5"
 
 S = "${WORKDIR}/linux-${OLD_KERNEL_RELEASE}"
 
@@ -32,5 +32,5 @@ SRC_URI_append_afeb9260 = " \
 "
 
 SRC_URI_append_tx25 = " file://linux-2.6.30-rc4-git.patch;patch=1 \
-       file://linux-2.6.30-rc4-karo3.diff;patch=1"
-
+       file://linux-2.6.30-rc4-karo3.diff;patch=1 \
+        file://stk5-baseboard_c_vesa640.patch;patch=1"