diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2005-09-13 04:25:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-13 11:22:31 -0400 |
commit | 50a5de44821352354a3ee804e2c7cbfee5a81c06 (patch) | |
tree | 8b6a4472e4e21038df8c9494daa7d2b00a26c743 /include | |
parent | 610827dee82731c7be5a135d750d194ac56881a9 (diff) |
[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>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-arm/arch-pxa/corgi.h | 12 | ||||
-rw-r--r-- | include/asm-arm/arch-pxa/sharpsl.h | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/include/asm-arm/arch-pxa/corgi.h b/include/asm-arm/arch-pxa/corgi.h index 4b7aa0b8391e..e554caa0d18b 100644 --- a/include/asm-arm/arch-pxa/corgi.h +++ b/include/asm-arm/arch-pxa/corgi.h | |||
@@ -106,17 +106,5 @@ extern struct platform_device corgiscoop_device; | |||
106 | extern struct platform_device corgissp_device; | 106 | extern struct platform_device corgissp_device; |
107 | extern struct platform_device corgifb_device; | 107 | extern struct platform_device corgifb_device; |
108 | 108 | ||
109 | /* | ||
110 | * External Functions | ||
111 | */ | ||
112 | extern unsigned long corgi_ssp_ads7846_putget(unsigned long); | ||
113 | extern unsigned long corgi_ssp_ads7846_get(void); | ||
114 | extern void corgi_ssp_ads7846_put(unsigned long data); | ||
115 | extern void corgi_ssp_ads7846_lock(void); | ||
116 | extern void corgi_ssp_ads7846_unlock(void); | ||
117 | extern void corgi_ssp_lcdtg_send (unsigned char adrs, unsigned char data); | ||
118 | extern void corgi_ssp_blduty_set(int duty); | ||
119 | extern int corgi_ssp_max1111_get(unsigned long data); | ||
120 | |||
121 | #endif /* __ASM_ARCH_CORGI_H */ | 109 | #endif /* __ASM_ARCH_CORGI_H */ |
122 | 110 | ||
diff --git a/include/asm-arm/arch-pxa/sharpsl.h b/include/asm-arm/arch-pxa/sharpsl.h new file mode 100644 index 000000000000..5ce6d05631e8 --- /dev/null +++ b/include/asm-arm/arch-pxa/sharpsl.h | |||
@@ -0,0 +1,12 @@ | |||
1 | /* | ||
2 | * SharpSL SSP Driver | ||
3 | */ | ||
4 | |||
5 | unsigned long corgi_ssp_ads7846_putget(unsigned long); | ||
6 | unsigned long corgi_ssp_ads7846_get(void); | ||
7 | void corgi_ssp_ads7846_put(unsigned long data); | ||
8 | void corgi_ssp_ads7846_lock(void); | ||
9 | void corgi_ssp_ads7846_unlock(void); | ||
10 | void corgi_ssp_lcdtg_send (unsigned char adrs, unsigned char data); | ||
11 | void corgi_ssp_blduty_set(int duty); | ||
12 | int corgi_ssp_max1111_get(unsigned long data); | ||