-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] SharpSL: Abstract c7x0 specifics from Corgi SSP
Sharp's newer range of Zaurus clamshell handhelds, the cxx00's are similar to the c7x0 series yet different. This patch series abstracts the differences and generates a set of common drivers that support both series of devices. It then adds machine support for Spitz (SL-C3000) and Borzoi (SL-C3100). Hooks for Akita (SL-C1000) differences are also added. The I2C driver for its IO expander is the only missing piece. This patch: Separate out the Sharp Zaurus c7x0 series specific code from corgi_ssp.c so that other models such as the cxx00's can share it. Create sharpsl.h which will be used to abstract machine/model specifics. This enables the driver to be used by the Zaurus cxx00 series. Signed-Off-by: Richard Purdie <rpurdie@rpsys.net> Cc: Vojtech Pavlik <vojtech@suse.cz> Cc: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
- Loading branch information
Richard Purdie
authored and
Linus Torvalds
committed
Sep 13, 2005
1 parent
610827d
commit 50a5de4
Showing
5 changed files
with
79 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* SharpSL SSP Driver | ||
*/ | ||
|
||
struct corgissp_machinfo { | ||
int port; | ||
int cs_lcdcon; | ||
int cs_ads7846; | ||
int cs_max1111; | ||
int clk_lcdcon; | ||
int clk_ads7846; | ||
int clk_max1111; | ||
}; | ||
|
||
void corgi_ssp_set_machinfo(struct corgissp_machinfo *machinfo); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
* SharpSL SSP Driver | ||
*/ | ||
|
||
unsigned long corgi_ssp_ads7846_putget(unsigned long); | ||
unsigned long corgi_ssp_ads7846_get(void); | ||
void corgi_ssp_ads7846_put(unsigned long data); | ||
void corgi_ssp_ads7846_lock(void); | ||
void corgi_ssp_ads7846_unlock(void); | ||
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); |