ti_am335x_tsc.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __LINUX_TI_AM335X_TSC_H
  2. #define __LINUX_TI_AM335X_TSC_H
  3. /**
  4. * struct tsc_data Touchscreen wire configuration
  5. * @wires: Wires refer to application modes
  6. * i.e. 4/5/8 wire touchscreen support
  7. * on the platform.
  8. * @x_plate_resistance: X plate resistance.
  9. * @steps_to_configure: The sequencer supports a total of
  10. * 16 programmable steps.
  11. * A step configured to read a single
  12. * co-ordinate value, can be applied
  13. * more number of times for better results.
  14. * @wire_config: Different EVM's could have a different order
  15. * for connecting wires on touchscreen.
  16. * We need to provide an 8 bit number where in
  17. * the 1st four bits represent the analog lines
  18. * and the next 4 bits represent positive/
  19. * negative terminal on that input line.
  20. * Notations to represent the input lines and
  21. * terminals resoectively is as follows:
  22. * AIN0 = 0, AIN1 = 1 and so on till AIN7 = 7.
  23. * XP = 0, XN = 1, YP = 2, YN = 3.
  24. *
  25. */
  26. struct tsc_data {
  27. int wires;
  28. int x_plate_resistance;
  29. int steps_to_configure;
  30. int wire_config[10];
  31. };
  32. #endif