Skip to contentSkip to conversation

SharpSL: Add cxx00 support to the Corgi LCD driver

PATCH New Richard Purdie 1 participant 1 message Sep 9, 2005

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 2/6 SharpSL: Add cxx00 support to the Corgi LCD driver

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.

include/asm-arm/arch-pxa/sharpsl.h +10 -0
Index: linux-2.6.13/include/asm-arm/arch-pxa/sharpsl.h
===================================================================
@@ -10,3 +10,13 @@
 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 Touchscreen Driver
+ */
+
+struct corgits_machinfo {
+	unsigned long (*get_hsync_len)(void);
+	void (*put_hsync)(void);
+	void (*wait_hsync)(void);
+};
arch/arm/mach-pxa/corgi_lcd.c +118 -14

196 lines not on this page · raw message

arch/arm/mach-pxa/sharpsl.h +11 -0
Index: linux-2.6.13/arch/arm/mach-pxa/sharpsl.h
===================================================================
@@ -13,3 +13,14 @@
 };
 
 void corgi_ssp_set_machinfo(struct corgissp_machinfo *machinfo);
+
+/*
+ * SharpSL Touchscreen Driver
+ */
+
+unsigned long corgi_get_hsync_len(void);
+unsigned long spitz_get_hsync_len(void);
+void corgi_put_hsync(void);
+void spitz_put_hsync(void);
+void corgi_wait_hsync(void);
+void spitz_wait_hsync(void);