Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761822Ab0HMQge (ORCPT ); Fri, 13 Aug 2010 12:36:34 -0400 Received: from mail1-out1.atlantis.sk ([80.94.52.55]:57895 "EHLO mail.atlantis.sk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752635Ab0HMQgb (ORCPT ); Fri, 13 Aug 2010 12:36:31 -0400 From: Ondrej Zary To: Andrew Morton Subject: [PATCH v2] s3fb: add DDC support Date: Fri, 13 Aug 2010 18:36:16 +0200 User-Agent: KMail/1.9.10 Cc: Ondrej Zajicek , linux-fbdev@vger.kernel.org, Kernel development list References: <201008112218.11535.linux@rainbow-software.org> <20100812131421.bb2839f8.akpm@linux-foundation.org> In-Reply-To: <20100812131421.bb2839f8.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201008131836.18835.linux@rainbow-software.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6868 Lines: 249 Add I2C support for the DDC bus to s3fb driver. This is only bus support, driver does not use EDID. Tested on Trio64V+, Trio64V2/DX, Virge (2 cards), Virge/DX (4 cards) and Trio3D/2X (3 cards) with i2cdetect and decode-edid. 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. Virge/GX, Virge/GX2 and Virge/VX are untested. Signed-off-by: Ondrej Zary --- This time with Kconfig part present. --- linux-2.6.35-rc2/drivers/video/s3fb.c 2010-06-06 05:43:24.000000000 +0200 +++ linux-2.6.35-rc3/drivers/video/s3fb.c 2010-08-10 19:42:38.000000000 +0200 @@ -25,6 +25,10 @@ #include /* Why should fb driver call console functions? because acquire_console_sem() */ #include