palmtreo.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * GPIOs and interrupts for Palm Treo smartphones
  3. *
  4. * currently supported:
  5. * Palm Treo 680 (GSM)
  6. *
  7. * Author: Tomas Cech <sleep_walker@suse.cz>
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. *
  13. * find more info at www.hackndev.com
  14. *
  15. */
  16. #ifndef _INCLUDE_TREO_H_
  17. #define _INCLUDE_TREO_H_
  18. /* GPIOs */
  19. #define GPIO_NR_TREO_POWER_DETECT 0
  20. #define GPIO_NR_TREO_AMP_EN 27
  21. #define GPIO_NR_TREO_GREEN_LED 20
  22. #define GPIO_NR_TREO_RED_LED 79
  23. #define GPIO_NR_TREO_SD_DETECT_N 113
  24. #define GPIO_NR_TREO_EP_DETECT_N 116
  25. #define GPIO_NR_TREO_USB_DETECT 1
  26. #define GPIO_NR_TREO_USB_PULLUP 114
  27. #define GPIO_NR_TREO_GSM_POWER 40
  28. #define GPIO_NR_TREO_GSM_RESET 87
  29. #define GPIO_NR_TREO_GSM_WAKE 57
  30. #define GPIO_NR_TREO_GSM_HOST_WAKE 14
  31. #define GPIO_NR_TREO_GSM_TRIGGER 10
  32. #define GPIO_NR_TREO_IR_EN 115
  33. #define GPIO_NR_TREO_IR_TXD 47
  34. #define GPIO_NR_TREO_BL_POWER 38
  35. #define GPIO_NR_TREO_LCD_POWER 25
  36. /* Treo680 specific GPIOs */
  37. #ifdef CONFIG_MACH_TREO680
  38. #define GPIO_NR_TREO680_SD_READONLY 33
  39. #define GPIO_NR_TREO680_SD_POWER 42
  40. #define GPIO_NR_TREO680_VIBRATE_EN 44
  41. #define GPIO_NR_TREO680_KEYB_BL 24
  42. #define GPIO_NR_TREO680_BT_EN 43
  43. #endif /* CONFIG_MACH_TREO680 */
  44. /* Various addresses */
  45. #define TREO_PHYS_RAM_START 0xa0000000
  46. #define TREO_PHYS_IO_START 0x40000000
  47. #define TREO_STR_BASE 0xa2000000
  48. /* BACKLIGHT */
  49. #define TREO_MAX_INTENSITY 254
  50. #define TREO_DEFAULT_INTENSITY 160
  51. #define TREO_LIMIT_MASK 0x7F
  52. #define TREO_PRESCALER 63
  53. #define TREO_PERIOD_NS 3500
  54. #endif