From patchwork Mon Apr 4 20:44:58 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ondrej Zary X-Patchwork-Id: 685461 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 p34KjUhw000697 for ; Mon, 4 Apr 2011 20:45:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755656Ab1DDUpL (ORCPT ); Mon, 4 Apr 2011 16:45:11 -0400 Received: from mail1-out1.atlantis.sk ([80.94.52.55]:38420 "EHLO mail.atlantis.sk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755642Ab1DDUpK (ORCPT ); Mon, 4 Apr 2011 16:45:10 -0400 Received: (qmail 6717 invoked from network); 4 Apr 2011 20:45:10 -0000 Received: from unknown (HELO pentium) (rainbow@rainbow-software.org@85.216.180.141) by mail.atlantis.sk with AES256-SHA encrypted SMTP; 4 Apr 2011 20:45:10 -0000 From: Ondrej Zary To: Paul Mundt Subject: Re: [PATCH v3] s3fb: add DDC support Date: Mon, 4 Apr 2011 22:44:58 +0200 User-Agent: KMail/1.9.10 Cc: Ondrej Zajicek , linux-fbdev@vger.kernel.org, Kernel development list References: <201104032236.18936.linux@rainbow-software.org> <20110404083316.GB9431@localhost> <20110404084200.GD28208@linux-sh.org> In-Reply-To: <20110404084200.GD28208@linux-sh.org> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201104042245.00875.linux@rainbow-software.org> 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]); Mon, 04 Apr 2011 20:46:04 +0000 (UTC) Add I2C support for the DDC bus and also default mode initialization by reading monitor EDID to the s3fb driver. Tested on Trio64V+ (2 cards), Trio64V2/DX, Virge (3 cards), Virge/DX (3 cards), Virge/GX2, Trio3D/2X (4 cards), Trio3D. Will probably not work on Trio32 - my 2 cards have DDC support in BIOS that looks different from the other cards but the DDC pins on the VGA connector are not connected. Signed-off-by: Ondrej Zary --- This is the CONFIG-less version. --- linux-2.6.38-rc4-/drivers/video/s3fb.c 2011-03-31 20:57:57.000000000 +0200 +++ linux-2.6.38-rc4/drivers/video/s3fb.c 2011-04-04 22:22:11.000000000 +0200 @@ -25,6 +25,10 @@ #include /* Why should fb driver call console functions? because console_lock() */ #include