palmte2.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * GPIOs and interrupts for Palm Tungsten|E2 Handheld Computer
  3. *
  4. * Author:
  5. * Carlos Eduardo Medaglia Dyonisio <cadu@nerdfeliz.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. *
  11. */
  12. #ifndef _INCLUDE_PALMTE2_H_
  13. #define _INCLUDE_PALMTE2_H_
  14. /** HERE ARE GPIOs **/
  15. /* GPIOs */
  16. #define GPIO_NR_PALMTE2_SD_DETECT_N 10
  17. #define GPIO_NR_PALMTE2_SD_POWER 55
  18. #define GPIO_NR_PALMTE2_SD_READONLY 51
  19. /* KEYS */
  20. #define GPIO_NR_PALMTE2_KEY_NOTES 5
  21. #define GPIO_NR_PALMTE2_KEY_TASKS 7
  22. #define GPIO_NR_PALMTE2_KEY_CALENDAR 11
  23. #define GPIO_NR_PALMTE2_KEY_CONTACTS 13
  24. #define GPIO_NR_PALMTE2_KEY_CENTER 14
  25. #define GPIO_NR_PALMTE2_KEY_LEFT 19
  26. #define GPIO_NR_PALMTE2_KEY_RIGHT 20
  27. #define GPIO_NR_PALMTE2_KEY_DOWN 21
  28. #define GPIO_NR_PALMTE2_KEY_UP 22
  29. /** HERE ARE INIT VALUES **/
  30. /* BACKLIGHT */
  31. #define PALMTE2_MAX_INTENSITY 0xFE
  32. #define PALMTE2_DEFAULT_INTENSITY 0x7E
  33. #define PALMTE2_LIMIT_MASK 0x7F
  34. #define PALMTE2_PRESCALER 0x3F
  35. #define PALMTE2_PERIOD_NS 3500
  36. #endif