2 * include/linux/spi/tsc2101.h
4 * TSC2101 codec interface driver for the OMAP platform
6 * Copyright (C) 2004 Texas Instruments, Inc.
8 * This package is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18 * 2004/11/07 Nishanth Menon - Provided common hooks for Audio and Touchscreen
21 #ifndef __OMAP_TSC2101_H
22 #define __OMAP_TSC2101_H
24 #include <linux/spi/spi.h>
26 struct tsc2101_platform_data
{
27 int (*init
)(struct spi_device
*spi
);
28 void (*cleanup
)(struct spi_device
*spi
);
29 void (*enable_mclk
)(struct spi_device
*spi
);
30 void (*disable_mclk
)(struct spi_device
*spi
);
33 extern int tsc2101_read_sync(struct spi_device
*spi
, int page
, u8 address
);
34 extern int tsc2101_reads_sync(struct spi_device
*spi
, int page
,
35 u8 startaddress
, u16
* data
, int numregs
);
36 extern int tsc2101_write_sync(struct spi_device
*spi
, int page
, u8 address
,
39 extern int tsc2101_enable_mclk(struct spi_device
*spi
);
40 extern void tsc2101_disable_mclk(struct spi_device
*spi
);