[Openchrome-devel] xf86-video-openchrome: src/via_lvds.c

Xavier Bachelot xavierb at kemper.freedesktop.org
Mon Mar 4 10:44:15 PST 2013


 src/via_lvds.c |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 396a209cd1988ece56d556d756c062b0120991d1
Author: Xavier Bachelot <xavier at bachelot.org>
Date:   Mon Feb 18 22:45:11 2013 +0100

    Hardcode panel size for the XO

diff --git a/src/via_lvds.c b/src/via_lvds.c
index d7d8225..e4e5cdf 100644
--- a/src/via_lvds.c
+++ b/src/via_lvds.c
@@ -1301,6 +1301,14 @@ via_lvds_detect(xf86OutputPtr output)
     VIAPtr pVia = VIAPTR(pScrn);
     vgaHWPtr hwp = VGAHWPTR(pScrn);
 
+    /* Hardcode panel size for the XO */
+    if (pVia->Id->String == "OLPC XO 1.5") {
+        panel->NativeWidth = 1200;
+        panel->NativeHeight = 900;
+        status = XF86OutputStatusConnected;
+        return status;
+    }
+
     if (!pVia->UseLegacyModeSwitch) {
         /* First try to get the mode from EDID. */
         if (!panel->NativeWidth || !panel->NativeHeight) {


More information about the Openchrome-devel mailing list