treo680.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * GPIOs and interrupts for Palm Treo 680 smartphone
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. */
  9. #ifndef _INCLUDE_TREO680_H_
  10. #define _INCLUDE_TREO680_H_
  11. /* GPIOs */
  12. #define GPIO_NR_TREO680_POWER_DETECT 0
  13. #define GPIO_NR_TREO680_AMP_EN 27
  14. #define GPIO_NR_TREO680_KEYB_BL 24
  15. #define GPIO_NR_TREO680_VIBRATE_EN 44
  16. #define GPIO_NR_TREO680_GREEN_LED 20
  17. #define GPIO_NR_TREO680_RED_LED 79
  18. #define GPIO_NR_TREO680_SD_DETECT_N 113
  19. #define GPIO_NR_TREO680_SD_READONLY 33
  20. #define GPIO_NR_TREO680_EP_DETECT_N 116
  21. #define GPIO_NR_TREO680_SD_POWER 42
  22. #define GPIO_NR_TREO680_USB_DETECT 1
  23. #define GPIO_NR_TREO680_USB_PULLUP 114
  24. #define GPIO_NR_TREO680_GSM_POWER 40
  25. #define GPIO_NR_TREO680_GSM_RESET 87
  26. #define GPIO_NR_TREO680_GSM_WAKE 57
  27. #define GPIO_NR_TREO680_GSM_HOST_WAKE 14
  28. #define GPIO_NR_TREO680_GSM_TRIGGER 10
  29. #define GPIO_NR_TREO680_BT_EN 43
  30. #define GPIO_NR_TREO680_IR_EN 115
  31. #define GPIO_NR_TREO680_IR_TXD 47
  32. #define GPIO_NR_TREO680_BL_POWER 38
  33. #define GPIO_NR_TREO680_LCD_POWER 25
  34. /* Various addresses */
  35. #define TREO680_PHYS_RAM_START 0xa0000000
  36. #define TREO680_PHYS_IO_START 0x40000000
  37. #define TREO680_STR_BASE 0xa2000000
  38. /* BACKLIGHT */
  39. #define TREO680_MAX_INTENSITY 254
  40. #define TREO680_DEFAULT_INTENSITY 160
  41. #define TREO680_LIMIT_MASK 0x7F
  42. #define TREO680_PRESCALER 63
  43. #define TREO680_PERIOD_NS 3500
  44. #endif