linux 3.0: fix uLCD poweron for beagleboard
authorKoen Kooi <koen@dominion.thruhere.net>
Mon, 22 Aug 2011 20:41:18 +0000 (22:41 +0200)
committerKoen Kooi <koen@dominion.thruhere.net>
Mon, 22 Aug 2011 20:41:18 +0000 (22:41 +0200)
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
recipes-kernel/linux/linux-3.0/ulcd/0001-omap2-displays-Add-support-for-ThreeFiveCorp-S9700-D.patch
recipes-kernel/linux/linux-3.0/ulcd/0002-omap3-beagle-added-lcd-driver.patch
recipes-kernel/linux/linux-3.0/ulcd/0003-lcd-Set-LCD-power-enable-GPIO-in-board-file.patch [new file with mode: 0644]
recipes-kernel/linux/linux-3.0/ulcd/0004-Make-fbset-show-correct-timing-values.patch [moved from recipes-kernel/linux/linux-3.0/ulcd/0003-Make-fbset-show-correct-timing-values.patch with 91% similarity]
recipes-kernel/linux/linux_3.0.bb

index 6912aa2185c3069cf8f32071d375a92d52c6910d..926398d1280a17c50976abe8d5d1d4076b736467 100644 (file)
@@ -1,7 +1,7 @@
-From 1890f67c9114d6fdf7696d6fa4eef62b1d7f74c4 Mon Sep 17 00:00:00 2001
+From 364e5e30ff9257f1bac68d7f30f3e7f51e8b1bfc Mon Sep 17 00:00:00 2001
 From: Roger Monk <r-monk@ti.com>
 Date: Wed, 10 Aug 2011 16:54:34 +0200
-Subject: [PATCH 1/3] omap2-displays: Add support for ThreeFiveCorp S9700 Display
+Subject: [PATCH 1/4] omap2-displays: Add support for ThreeFiveCorp S9700 Display
 
 * Add support for s9700rtwv35tr01b display panel
    * This is used on BeagleBoardToys ULCD/-lite daugtercards
index 8eea97dfb8ff4fdc78d335b0e2bf9a94a0adc820..a0d3b3c1ee13c12a1a422ad443bc813c1d163a5f 100644 (file)
@@ -1,7 +1,7 @@
-From 807d261326e06903007c95457d6934588a483be0 Mon Sep 17 00:00:00 2001
+From 6b0587615fd0099261d049be17f12eae9f92ae85 Mon Sep 17 00:00:00 2001
 From: Jason Kridner <jkridner@beagleboard.org>
 Date: Fri, 5 Aug 2011 18:07:09 +0000
-Subject: [PATCH 2/3] omap3: beagle: added lcd driver
+Subject: [PATCH 2/4] omap3: beagle: added lcd driver
 
 This enables the tfc_s9700_panel by default.  Needs to be extended to
 redefine the driver name at boot time.
diff --git a/recipes-kernel/linux/linux-3.0/ulcd/0003-lcd-Set-LCD-power-enable-GPIO-in-board-file.patch b/recipes-kernel/linux/linux-3.0/ulcd/0003-lcd-Set-LCD-power-enable-GPIO-in-board-file.patch
new file mode 100644 (file)
index 0000000..ccc510f
--- /dev/null
@@ -0,0 +1,49 @@
+From 4b175ec2e08d1fa4a0bbaeb79ee2381164572fba Mon Sep 17 00:00:00 2001
+From: Joel A Fernandes <agnel.joel@gmail.com>
+Date: Thu, 18 Aug 2011 16:19:40 -0500
+Subject: [PATCH 3/4] lcd: Set LCD power-enable GPIO in board file
+
+With this, the ULCD-lite display works with the 3.0 kernel
+
+v2 changes:
+Fixed the beagle_config structure
+
+Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
+---
+ arch/arm/mach-omap2/board-omap3beagle.c |    7 +++++++
+ 1 files changed, 7 insertions(+), 0 deletions(-)
+
+diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
+index b525a5e..6b0afda 100644
+--- a/arch/arm/mach-omap2/board-omap3beagle.c
++++ b/arch/arm/mach-omap2/board-omap3beagle.c
+@@ -85,12 +85,14 @@ static struct {
+       int reset_gpio;
+       int usr_button_gpio;
+       char *lcd_driver_name;
++      int lcd_pwren;
+ } beagle_config = {
+       .mmc1_gpio_wp = -EINVAL,
+       .usb_pwr_level = GPIOF_OUT_INIT_LOW,
+       .reset_gpio = 129,
+       .usr_button_gpio = 4,
+       .lcd_driver_name = "",
++      .lcd_pwren = 156
+ };
+ static struct gpio omap3_beagle_rev_gpios[] __initdata = {
+@@ -423,6 +425,11 @@ static void __init beagle_display_init(void)
+ {
+       int r;
++      r = gpio_request_one(beagle_config.lcd_pwren, GPIOF_OUT_INIT_LOW,
++                           "LCD power");
++      if (r < 0)
++              printk(KERN_ERR "Unable to get LCD power enable GPIO\n");
++
+       r = gpio_request_one(beagle_dvi_device.reset_gpio, GPIOF_OUT_INIT_LOW,
+                            "DVI reset");
+       if (r < 0)
+-- 
+1.6.6.1
+
similarity index 91%
rename from recipes-kernel/linux/linux-3.0/ulcd/0003-Make-fbset-show-correct-timing-values.patch
rename to recipes-kernel/linux/linux-3.0/ulcd/0004-Make-fbset-show-correct-timing-values.patch
index e362c59512e32029ab1bc867f50c0ac8719bad37..fb37e96a04fca3f2a48f61c5de31ef51c5a81a08 100644 (file)
@@ -1,7 +1,7 @@
-From cddc76248e1bec4d8cd345c72fcb0ff7c0e22054 Mon Sep 17 00:00:00 2001
+From 1d70480dca0c7648f5f51fad5ffb0e191212615a Mon Sep 17 00:00:00 2001
 From: Joel A Fernandes <agnel.joel@gmail.com>
 Date: Wed, 17 Aug 2011 00:28:49 -0500
-Subject: [PATCH 3/3] Make fbset show correct timing values
+Subject: [PATCH 4/4] Make fbset show correct timing values
 
 Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
 Cc: "Monk, Roger" <r-monk@ti.com>
index 5d55955356deb31afb5a4c248561c75256a7d816..18f0b3847cf2ec9ed43e91ef40e3b579cd1e90b2 100644 (file)
@@ -10,7 +10,7 @@ PV = "3.0.3"
 SRCREV_pn-${PN} = "d31bf2883542cd3414674238f94123bd1d9c0b9f"
 
 # The main PR is now using MACHINE_KERNEL_PR, for omap3 see conf/machine/include/omap3.inc
-MACHINE_KERNEL_PR_append = "a"
+MACHINE_KERNEL_PR_append = "b"
 
 FILESPATH =. "${FILE_DIRNAME}/linux-3.0:${FILE_DIRNAME}/linux-3.0/${MACHINE}:"
 
@@ -219,7 +219,8 @@ SRC_URI += "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-3.0.y.git
             \
             file://ulcd/0001-omap2-displays-Add-support-for-ThreeFiveCorp-S9700-D.patch \
             file://ulcd/0002-omap3-beagle-added-lcd-driver.patch \
-            file://ulcd/0003-Make-fbset-show-correct-timing-values.patch \
+            file://ulcd/0003-lcd-Set-LCD-power-enable-GPIO-in-board-file.patch \
+            file://ulcd/0004-Make-fbset-show-correct-timing-values.patch \
             \
             file://omap4/0001-OMAP-Fix-linking-error-in-twl-common.c-for-OMAP2-3-4.patch \
             \