From patchwork Sun Apr 10 20:57:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tormod Volden X-Patchwork-Id: 697021 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3AKveMR014124 for ; Sun, 10 Apr 2011 20:57:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754441Ab1DJU5k (ORCPT ); Sun, 10 Apr 2011 16:57:40 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:57298 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755293Ab1DJU5k (ORCPT ); Sun, 10 Apr 2011 16:57:40 -0400 Received: by wya21 with SMTP id 21so4305446wya.19 for ; Sun, 10 Apr 2011 13:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=5uVThwg3Qos5vH6OqfA+lbW7sAmH6sFZNV/oe/WI+Q0=; b=owWNjm0fqi1/VGFRfnqJ9xkp2NAi2WJePoVQ8ATagVzBOMq4SYfFKovJ0yw3ywstqw 0yLdC8aD1QLYdUAwdgWNbunDuhYWZfPtwj43ULezL6YpaUZUGvLALLsc5FSo+s/XWw/j u3SpTAK79wGpCQdQyCJ/nDVm669v/K0x2dY/o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=CgA22/57tfNaCpmRXBE5jXEp4vZnt20tLk7OMgCooDmBJn26T9x+a0XIjtqorVFFVv aJ0lZ+8qKusNL3qshM4i3gVMU9+g0iG8l5/3RQOnyLGFEv8725ytqVpPj2gqYOv0y1wq zn40v2RT0xLFefBxCWXGSjR1f+jtB/Glndwhs= Received: by 10.216.60.138 with SMTP id u10mr4268598wec.12.1302469059257; Sun, 10 Apr 2011 13:57:39 -0700 (PDT) Received: from localhost.localdomain (80-219-113-251.dclient.hispeed.ch [80.219.113.251]) by mx.google.com with ESMTPS id d59sm2345818wed.45.2011.04.10.13.57.38 (version=SSLv3 cipher=OTHER); Sun, 10 Apr 2011 13:57:38 -0700 (PDT) From: Tormod Volden To: linux-fbdev@vger.kernel.org Cc: Antonino Daplas Subject: [PATCH 2/2] savagefb: Enable LCD detection on mobile Twister Date: Sun, 10 Apr 2011 22:57:35 +0200 Message-Id: <1302469055-3400-2-git-send-email-lists.tormod@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1302469055-3400-1-git-send-email-lists.tormod@gmail.com> References: <1302469055-3400-1-git-send-email-lists.tormod@gmail.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sun, 10 Apr 2011 20:57:41 +0000 (UTC) From: Tormod Volden Copy and paste from the Xorg DDX. Tested on TwisterK (Compaq Presario 700). Signed-off-by: Tormod Volden --- drivers/video/savage/savagefb_driver.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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;