palmtreo.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * GPIOs and interrupts for Palm Treo smartphones
  4. *
  5. * currently supported:
  6. * Palm Treo 680 (GSM)
  7. * Palm Centro 685 (GSM)
  8. *
  9. * Author: Tomas Cech <[email protected]>
  10. *
  11. * find more info at www.hackndev.com
  12. */
  13. #ifndef _INCLUDE_TREO_H_
  14. #define _INCLUDE_TREO_H_
  15. /* GPIOs */
  16. #define GPIO_NR_TREO_POWER_DETECT 0
  17. #define GPIO_NR_TREO_AMP_EN 27
  18. #define GPIO_NR_TREO_GREEN_LED 20
  19. #define GPIO_NR_TREO_RED_LED 79
  20. #define GPIO_NR_TREO_SD_DETECT_N 113
  21. #define GPIO_NR_TREO_EP_DETECT_N 116
  22. #define GPIO_NR_TREO_USB_DETECT 1
  23. #define GPIO_NR_TREO_USB_PULLUP 114
  24. #define GPIO_NR_TREO_GSM_POWER 40
  25. #define GPIO_NR_TREO_GSM_RESET 87
  26. #define GPIO_NR_TREO_GSM_WAKE 57
  27. #define GPIO_NR_TREO_GSM_HOST_WAKE 14
  28. #define GPIO_NR_TREO_GSM_TRIGGER 10
  29. #define GPIO_NR_TREO_IR_EN 115
  30. #define GPIO_NR_TREO_IR_TXD 47
  31. #define GPIO_NR_TREO_BL_POWER 38
  32. #define GPIO_NR_TREO_LCD_POWER 25
  33. /* Treo680 specific GPIOs */
  34. #define GPIO_NR_TREO680_SD_READONLY 33
  35. #define GPIO_NR_TREO680_SD_POWER 42
  36. #define GPIO_NR_TREO680_VIBRATE_EN 44
  37. #define GPIO_NR_TREO680_KEYB_BL 24
  38. #define GPIO_NR_TREO680_BT_EN 43
  39. #define GPIO_NR_TREO680_LCD_POWER 77
  40. #define GPIO_NR_TREO680_LCD_EN 86
  41. #define GPIO_NR_TREO680_LCD_EN_N 25
  42. /* Centro685 specific GPIOs */
  43. #define GPIO_NR_CENTRO_SD_POWER 21
  44. #define GPIO_NR_CENTRO_VIBRATE_EN 22
  45. #define GPIO_NR_CENTRO_KEYB_BL 33
  46. #define GPIO_NR_CENTRO_BT_EN 80
  47. /* Various addresses */
  48. #define TREO_PHYS_RAM_START 0xa0000000
  49. #define TREO_PHYS_IO_START 0x40000000
  50. #define TREO_STR_BASE 0xa2000000
  51. /* BACKLIGHT */
  52. #define TREO_MAX_INTENSITY 254
  53. #define TREO_DEFAULT_INTENSITY 160
  54. #define TREO_LIMIT_MASK 0x7F
  55. #define TREO_PRESCALER 63
  56. #define TREO_PERIOD_NS 3500
  57. #endif