Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964827AbVIFLyj (ORCPT ); Tue, 6 Sep 2005 07:54:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964826AbVIFLyg (ORCPT ); Tue, 6 Sep 2005 07:54:36 -0400 Received: from tim.rpsys.net ([194.106.48.114]:62615 "EHLO tim.rpsys.net") by vger.kernel.org with ESMTP id S964827AbVIFLyS (ORCPT ); Tue, 6 Sep 2005 07:54:18 -0400 Subject: [-mm patch 2/5] SharpSL: Add cxx00 support to the Corgi LCD driver From: Richard Purdie To: Andrew Morton Cc: LKML , Russell King Content-Type: text/plain Date: Tue, 06 Sep 2005 12:53:48 +0100 Message-Id: <1126007628.8338.127.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5470 Lines: 213 The same LCD is present on both the Sharp Zaurus c7x0 series and the cxx00 but with different framebuffer drivers (w100fb vs. pxafb). This patch adds support for the cxx00 series to the LCD driver. It also adds some LCD to touchscreen interface logic needed by the touchscreen driver to prevent interference problems, the idea being to keep all the ugly code in one place leaving the drivers themselves clean. sharpsl.h is used to provide the abstraction. Signed-Off-by: Richard Purdie Index: linux-2.6.12/include/asm-arm/arch-pxa/sharpsl.h =================================================================== --- linux-2.6.12.orig/include/asm-arm/arch-pxa/sharpsl.h 2005-08-26 11:06:27.000000000 +0100 +++ linux-2.6.12/include/asm-arm/arch-pxa/sharpsl.h 2005-08-27 20:02:57.000000000 +0100 @@ -10,3 +10,11 @@ void corgi_ssp_lcdtg_send (unsigned char adrs, unsigned char data); void corgi_ssp_blduty_set(int duty); int corgi_ssp_max1111_get(unsigned long data); + +/* + * SharpSL LCD Driver + */ + +unsigned long corgi_get_hsync_len(void); +void corgi_wait_hsync(void); + Index: linux-2.6.12/arch/arm/mach-pxa/corgi_lcd.c =================================================================== --- linux-2.6.12.orig/arch/arm/mach-pxa/corgi_lcd.c 2005-08-26 11:05:51.000000000 +0100 +++ linux-2.6.12/arch/arm/mach-pxa/corgi_lcd.c 2005-08-27 20:03:39.000000000 +0100 @@ -1,10 +1,14 @@ /* * linux/drivers/video/w100fb.c * - * Corgi LCD Specific Code for ATI Imageon w100 (Wallaby) + * Corgi/Spitz LCD Specific Code * * Copyright (C) 2005 Richard Purdie * + * Connectivity: + * Corgi - LCD to ATI Imageon w100 (Wallaby) + * Spitz - LCD to PXA Framebuffer + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. @@ -14,9 +18,16 @@ #include #include #include +#include +#include #include +#include +#include +#include +#include +#include #include -#include