Naveen Kumar Gaddipati | 4780c8d | 2010-10-04 22:32:48 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) ST-Ericsson SA 2010 |
| 3 | * Author: Naveen Kumar G <naveen.gaddipati@stericsson.com> for ST-Ericsson |
| 4 | * License terms:GNU General Public License (GPL) version 2 |
| 5 | */ |
| 6 | |
| 7 | #ifndef _BU21013_H |
| 8 | #define _BU21013_H |
| 9 | |
| 10 | /** |
| 11 | * struct bu21013_platform_device - Handle the platform data |
| 12 | * @cs_en: pointer to the cs enable function |
| 13 | * @cs_dis: pointer to the cs disable function |
| 14 | * @irq_read_val: pointer to read the pen irq value function |
Naveen Kumar Gaddipati | 4780c8d | 2010-10-04 22:32:48 -0700 | [diff] [blame] | 15 | * @touch_x_max: touch x max |
| 16 | * @touch_y_max: touch y max |
| 17 | * @cs_pin: chip select pin |
| 18 | * @irq: irq pin |
| 19 | * @ext_clk: external clock flag |
| 20 | * @x_flip: x flip flag |
| 21 | * @y_flip: y flip flag |
| 22 | * @wakeup: wakeup flag |
| 23 | * |
| 24 | * This is used to handle the platform data |
| 25 | */ |
| 26 | struct bu21013_platform_device { |
| 27 | int (*cs_en)(int reset_pin); |
| 28 | int (*cs_dis)(int reset_pin); |
| 29 | int (*irq_read_val)(void); |
Naveen Kumar Gaddipati | 4780c8d | 2010-10-04 22:32:48 -0700 | [diff] [blame] | 30 | int touch_x_max; |
| 31 | int touch_y_max; |
| 32 | unsigned int cs_pin; |
| 33 | unsigned int irq; |
| 34 | bool ext_clk; |
| 35 | bool x_flip; |
| 36 | bool y_flip; |
| 37 | bool wakeup; |
| 38 | }; |
| 39 | |
| 40 | #endif |