mcs.h 913 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (C) 2009 - 2010 Samsung Electronics Co.Ltd
  3. * Author: Joonyoung Shim <jy0922.shim@samsung.com>
  4. * Author: HeungJun Kim <riverful.kim@samsung.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. *
  11. */
  12. #ifndef __LINUX_MCS_H
  13. #define __LINUX_MCS_H
  14. #define MCS_KEY_MAP(v, c) ((((v) & 0xff) << 16) | ((c) & 0xffff))
  15. #define MCS_KEY_VAL(v) (((v) >> 16) & 0xff)
  16. #define MCS_KEY_CODE(v) ((v) & 0xffff)
  17. struct mcs_platform_data {
  18. void (*poweron)(bool);
  19. void (*cfg_pin)(void);
  20. /* touchscreen */
  21. unsigned int x_size;
  22. unsigned int y_size;
  23. /* touchkey */
  24. const u32 *keymap;
  25. unsigned int keymap_size;
  26. unsigned int key_maxval;
  27. bool no_autorepeat;
  28. };
  29. #endif /* __LINUX_MCS_H */