savagefb: Enable LCD detection on mobile Twister
authorTormod Volden <debian.tormod@gmail.com>
Sun, 10 Apr 2011 20:57:35 +0000 (20:57 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 24 May 2011 07:05:06 +0000 (16:05 +0900)
Copy and paste from the Xorg DDX. Tested on TwisterK (Compaq Presario 700).

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/savage/savagefb_driver.c

index 7a35ceb2f8a0589e27394f2854280fe4fb1bf418..3b7f2f5bae71dc78b98bf8e4d7befd1b75c05bba 100644 (file)
@@ -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;