bu21013.h 967 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #ifndef _BU21013_H
  7. #define _BU21013_H
  8. /**
  9. * struct bu21013_platform_device - Handle the platform data
  10. * @cs_en: pointer to the cs enable function
  11. * @cs_dis: pointer to the cs disable function
  12. * @irq_read_val: pointer to read the pen irq value function
  13. * @touch_x_max: touch x max
  14. * @touch_y_max: touch y max
  15. * @cs_pin: chip select pin
  16. * @irq: irq pin
  17. * @ext_clk: external clock flag
  18. * @x_flip: x flip flag
  19. * @y_flip: y flip flag
  20. * @wakeup: wakeup flag
  21. *
  22. * This is used to handle the platform data
  23. */
  24. struct bu21013_platform_device {
  25. int (*cs_en)(int reset_pin);
  26. int (*cs_dis)(int reset_pin);
  27. int (*irq_read_val)(void);
  28. int touch_x_max;
  29. int touch_y_max;
  30. unsigned int cs_pin;
  31. unsigned int irq;
  32. bool ext_clk;
  33. bool x_flip;
  34. bool y_flip;
  35. bool wakeup;
  36. };
  37. #endif