From patchwork Mon Apr 18 10:14:57 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ondrej Zary X-Patchwork-Id: 714701 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 p3IAF74Y027236 for ; Mon, 18 Apr 2011 10:15:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753550Ab1DRKPG (ORCPT ); Mon, 18 Apr 2011 06:15:06 -0400 Received: from mail1-out1.atlantis.sk ([80.94.52.55]:32842 "EHLO mail.atlantis.sk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753149Ab1DRKPG (ORCPT ); Mon, 18 Apr 2011 06:15:06 -0400 Received: (qmail 17787 invoked from network); 18 Apr 2011 10:15:02 -0000 Received: from unknown (HELO ?192.168.0.3?) (rainbow@rainbow-software.org@62.176.172.51) by mail.atlantis.sk with AES256-SHA encrypted SMTP; 18 Apr 2011 10:15:02 -0000 To: Paul Mundt Subject: [PATCH v4] [resend] s3fb: add DDC support Cc: Ondrej Zajicek , linux-fbdev@vger.kernel.org, Kernel development list Content-Disposition: inline From: Ondrej Zary Date: Mon, 18 Apr 2011 12:14:57 +0200 MIME-Version: 1.0 Message-Id: <201104181214.57501.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, 18 Apr 2011 10:15:08 +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 --- linux-2.6.39-rc2-/drivers/video/s3fb.c 2011-04-11 23:29:44.000000000 +0200 +++ linux-2.6.39-rc2/drivers/video/s3fb.c 2011-04-11 23:10:35.000000000 +0200 @@ -25,6 +25,9 @@ #include /* Why should fb driver call console functions? because console_lock() */ #include