palmte2.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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_POWER_DETECT 9
  17. #define GPIO_NR_PALMTE2_HOTSYNC_BUTTON_N 4
  18. #define GPIO_NR_PALMTE2_EARPHONE_DETECT 15
  19. /* SD/MMC */
  20. #define GPIO_NR_PALMTE2_SD_DETECT_N 10
  21. #define GPIO_NR_PALMTE2_SD_POWER 55
  22. #define GPIO_NR_PALMTE2_SD_READONLY 51
  23. /* IRDA - disable GPIO connected to SD pin of tranceiver (TFBS4710?) ? */
  24. #define GPIO_NR_PALMTE2_IR_DISABLE 48
  25. /* USB */
  26. #define GPIO_NR_PALMTE2_USB_DETECT_N 35
  27. #define GPIO_NR_PALMTE2_USB_PULLUP 53
  28. /* LCD/BACKLIGHT */
  29. #define GPIO_NR_PALMTE2_BL_POWER 56
  30. #define GPIO_NR_PALMTE2_LCD_POWER 37
  31. /* KEYS */
  32. #define GPIO_NR_PALMTE2_KEY_NOTES 5
  33. #define GPIO_NR_PALMTE2_KEY_TASKS 7
  34. #define GPIO_NR_PALMTE2_KEY_CALENDAR 11
  35. #define GPIO_NR_PALMTE2_KEY_CONTACTS 13
  36. #define GPIO_NR_PALMTE2_KEY_CENTER 14
  37. #define GPIO_NR_PALMTE2_KEY_LEFT 19
  38. #define GPIO_NR_PALMTE2_KEY_RIGHT 20
  39. #define GPIO_NR_PALMTE2_KEY_DOWN 21
  40. #define GPIO_NR_PALMTE2_KEY_UP 22
  41. /** HERE ARE INIT VALUES **/
  42. /* BACKLIGHT */
  43. #define PALMTE2_MAX_INTENSITY 0xFE
  44. #define PALMTE2_DEFAULT_INTENSITY 0x7E
  45. #define PALMTE2_LIMIT_MASK 0x7F
  46. #define PALMTE2_PRESCALER 0x3F
  47. #define PALMTE2_PERIOD_NS 3500
  48. /* BATTERY */
  49. #define PALMTE2_BAT_MAX_VOLTAGE 4000 /* 4.00v current voltage */
  50. #define PALMTE2_BAT_MIN_VOLTAGE 3550 /* 3.55v critical voltage */
  51. #define PALMTE2_BAT_MAX_CURRENT 0 /* unknown */
  52. #define PALMTE2_BAT_MIN_CURRENT 0 /* unknown */
  53. #define PALMTE2_BAT_MAX_CHARGE 1 /* unknown */
  54. #define PALMTE2_BAT_MIN_CHARGE 1 /* unknown */
  55. #define PALMTE2_MAX_LIFE_MINS 360 /* on-life in minutes */
  56. #endif