diff options
Diffstat (limited to 'arch/arm/mach-lh7a40x/include/mach/ssp.h')
-rw-r--r-- | arch/arm/mach-lh7a40x/include/mach/ssp.h | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/arch/arm/mach-lh7a40x/include/mach/ssp.h b/arch/arm/mach-lh7a40x/include/mach/ssp.h deleted file mode 100644 index 509916182e34..000000000000 --- a/arch/arm/mach-lh7a40x/include/mach/ssp.h +++ /dev/null | |||
@@ -1,70 +0,0 @@ | |||
1 | /* ssp.h | ||
2 | |||
3 | written by Marc Singer | ||
4 | 6 Dec 2004 | ||
5 | |||
6 | Copyright (C) 2004 Marc Singer | ||
7 | |||
8 | ----------- | ||
9 | DESCRIPTION | ||
10 | ----------- | ||
11 | |||
12 | This SSP header is available throughout the kernel, for this | ||
13 | machine/architecture, because drivers that use it may be dispersed. | ||
14 | |||
15 | This file was cloned from the 7952x implementation. It would be | ||
16 | better to share them, but we're taking an easier approach for the | ||
17 | time being. | ||
18 | |||
19 | */ | ||
20 | |||
21 | #if !defined (__SSP_H__) | ||
22 | # define __SSP_H__ | ||
23 | |||
24 | /* ----- Includes */ | ||
25 | |||
26 | /* ----- Types */ | ||
27 | |||
28 | struct ssp_driver { | ||
29 | int (*init) (void); | ||
30 | void (*exit) (void); | ||
31 | void (*acquire) (void); | ||
32 | void (*release) (void); | ||
33 | int (*configure) (int device, int mode, int speed, | ||
34 | int frame_size_write, int frame_size_read); | ||
35 | void (*chip_select) (int enable); | ||
36 | void (*set_callbacks) (void* handle, | ||
37 | irqreturn_t (*callback_tx)(void*), | ||
38 | irqreturn_t (*callback_rx)(void*)); | ||
39 | void (*enable) (void); | ||
40 | void (*disable) (void); | ||
41 | // int (*save_state) (void*); | ||
42 | // void (*restore_state) (void*); | ||
43 | int (*read) (void); | ||
44 | int (*write) (u16 data); | ||
45 | int (*write_read) (u16 data); | ||
46 | void (*flush) (void); | ||
47 | void (*write_async) (void* pv, size_t cb); | ||
48 | size_t (*write_pos) (void); | ||
49 | }; | ||
50 | |||
51 | /* These modes are only available on the LH79524 */ | ||
52 | #define SSP_MODE_SPI (1) | ||
53 | #define SSP_MODE_SSI (2) | ||
54 | #define SSP_MODE_MICROWIRE (3) | ||
55 | #define SSP_MODE_I2S (4) | ||
56 | |||
57 | /* CPLD SPI devices */ | ||
58 | #define DEVICE_EEPROM 0 /* Configuration eeprom */ | ||
59 | #define DEVICE_MAC 1 /* MAC eeprom (LPD79524) */ | ||
60 | #define DEVICE_CODEC 2 /* Audio codec */ | ||
61 | #define DEVICE_TOUCH 3 /* Touch screen (LPD79520) */ | ||
62 | |||
63 | /* ----- Globals */ | ||
64 | |||
65 | /* ----- Prototypes */ | ||
66 | |||
67 | //extern struct ssp_driver lh79520_i2s_driver; | ||
68 | extern struct ssp_driver lh7a400_cpld_ssp_driver; | ||
69 | |||
70 | #endif /* __SSP_H__ */ | ||