public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP: LCD: Use omap_rev check
@ 2008-11-07 15:56 Aguirre Rodriguez, Sergio Alberto
  2008-11-07 19:55 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Aguirre Rodriguez, Sergio Alberto @ 2008-11-07 15:56 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org; +Cc: hyau@mvista.com

From: Sergio Aguirre <saaguirre@ti.com>

OMAP: LCD: Use omap_rev check

This patch fixes correct detection of OMAP revision for
LCD driver. This makes Tux look correct on my ES3 SDP board.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
---
 drivers/video/omap/lcd_2430sdp.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-omap-2.6/drivers/video/omap/lcd_2430sdp.c
===================================================================
--- linux-omap-2.6.orig/drivers/video/omap/lcd_2430sdp.c
+++ linux-omap-2.6/drivers/video/omap/lcd_2430sdp.c
@@ -88,7 +88,7 @@ static int sdp2430_panel_enable(struct l
                grp_reg = TWL4030_VAUX3_DEV_GRP;
                grp_val = ENABLE_VAUX3_DEV_GRP;

-               if (system_rev > OMAP3430_REV_ES1_0) {
+               if (omap_rev() > OMAP3430_REV_ES1_0) {
                        t2_out(PM_RECEIVER, ENABLE_VPLL2_DEDICATED,
                                        TWL4030_VPLL2_DEDICATED);
                        t2_out(PM_RECEIVER, ENABLE_VPLL2_DEV_GRP,
@@ -116,7 +116,7 @@ static void sdp2430_panel_disable(struct
 {
        omap_set_gpio_dataout(enable_gpio, 0);
        omap_set_gpio_dataout(backlight_gpio, 0);
-       if (system_rev > OMAP3430_REV_ES1_0) {
+       if (omap_rev() > OMAP3430_REV_ES1_0) {
                t2_out(PM_RECEIVER, 0x0, TWL4030_VPLL2_DEDICATED);
                t2_out(PM_RECEIVER, 0x0, TWL4030_VPLL2_DEV_GRP);
                mdelay(4);

--

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-07 19:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-07 15:56 [PATCH] OMAP: LCD: Use omap_rev check Aguirre Rodriguez, Sergio Alberto
2008-11-07 19:55 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox