diff mbox

[2/2] savagefb: Enable LCD detection on mobile Twister

Message ID 1302469055-3400-2-git-send-email-lists.tormod@gmail.com (mailing list archive)
State Accepted
Commit 6dbdf2a1cee23c34a66a35cfa2ae48e62e268dcb
Headers show

Commit Message

Tormod Volden April 10, 2011, 8:57 p.m. UTC
From: Tormod Volden <debian.tormod@gmail.com>

Copy and paste from the Xorg DDX. Tested on TwisterK (Compaq Presario 700).

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
---

 drivers/video/savage/savagefb_driver.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/drivers/video/savage/savagefb_driver.c b/drivers/video/savage/savagefb_driver.c
index 0be3f31..0c64d2e 100644
--- a/drivers/video/savage/savagefb_driver.c
+++ b/drivers/video/savage/savagefb_driver.c
@@ -1967,7 +1967,8 @@  static int savage_init_hw(struct savagefb_par *par)
 		}
 	}
 
-	if (S3_SAVAGE_MOBILE_SERIES(par->chip) && !par->crtonly)
+	if ((S3_SAVAGE_MOBILE_SERIES(par->chip) ||
+	     S3_MOBILE_TWISTER_SERIES(par->chip)) && !par->crtonly)
 		par->display_type = DISP_LCD;
 	else if (dvi || (par->chip == S3_SAVAGE4 && par->dvi))
 		par->display_type = DISP_DFP;