]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - drivers/ssi/omap-uwire.h
h63xx: tsc2101 alsa sound support
[linux-2.6-omap-h63xx.git] / drivers / ssi / omap-uwire.h
1 #ifndef __ARCH_OMAP_UWIRE_H
2 #define __ARCH_OMAP_UWIRE_H
3
4 #define UWIRE_READ_FALLING_EDGE         0x0000
5 #define UWIRE_READ_RISING_EDGE          0x0001
6 #define UWIRE_WRITE_FALLING_EDGE        0x0000
7 #define UWIRE_WRITE_RISING_EDGE         0x0002
8 #define UWIRE_CS_ACTIVE_LOW             0x0000
9 #define UWIRE_CS_ACTIVE_HIGH            0x0004
10 #define UWIRE_FREQ_DIV_2                0x0000
11 #define UWIRE_FREQ_DIV_4                0x0008
12 #define UWIRE_FREQ_DIV_8                0x0010
13 #define UWIRE_CHK_READY                 0x0020
14 #define UWIRE_CLK_INVERTED              0x0040
15
16 /*
17  * uWire for OMAP declarations
18  */
19 extern void omap_uwire_configure_mode(int cs, unsigned long flags);
20
21 /* NOTE: Make sure you don't call this from an interrupt handler! */
22 extern int omap_uwire_data_transfer(int cs, u16 tx_data, int tx_size,
23                                     int rx_size, u16 *rx_buf,
24                                     int leave_cs_active);
25
26 #endif