palmz72.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * GPIOs and interrupts for Palm Zire72 Handheld Computer
  3. *
  4. * Authors: Alex Osborne <bobofdoom@gmail.com>
  5. * Jan Herman <2hp@seznam.cz>
  6. * Sergey Lapin <slapin@ossfans.org>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. *
  12. */
  13. #ifndef _INCLUDE_PALMZ72_H_
  14. #define _INCLUDE_PALMZ72_H_
  15. /* Power and control */
  16. #define GPIO_NR_PALMZ72_GPIO_RESET 1
  17. #define GPIO_NR_PALMZ72_POWER_DETECT 0
  18. /* SD/MMC */
  19. #define GPIO_NR_PALMZ72_SD_DETECT_N 14
  20. #define GPIO_NR_PALMZ72_SD_POWER_N 98
  21. #define GPIO_NR_PALMZ72_SD_RO 115
  22. /* Touchscreen */
  23. #define GPIO_NR_PALMZ72_WM9712_IRQ 27
  24. /* IRDA - disable GPIO connected to SD pin of tranceiver (TFBS4710?) ? */
  25. #define GPIO_NR_PALMZ72_IR_DISABLE 49
  26. /* USB */
  27. #define GPIO_NR_PALMZ72_USB_DETECT_N 15
  28. #define GPIO_NR_PALMZ72_USB_PULLUP 95
  29. /* LCD/Backlight */
  30. #define GPIO_NR_PALMZ72_BL_POWER 20
  31. #define GPIO_NR_PALMZ72_LCD_POWER 96
  32. /* LED */
  33. #define GPIO_NR_PALMZ72_LED_GREEN 88
  34. /* Bluetooth */
  35. #define GPIO_NR_PALMZ72_BT_POWER 17
  36. #define GPIO_NR_PALMZ72_BT_RESET 83
  37. /* Camera */
  38. #define GPIO_NR_PALMZ72_CAM_PWDN 56
  39. #define GPIO_NR_PALMZ72_CAM_RESET 57
  40. #define GPIO_NR_PALMZ72_CAM_POWER 91
  41. /** Initial values **/
  42. /* Battery */
  43. #define PALMZ72_BAT_MAX_VOLTAGE 4000 /* 4.00v current voltage */
  44. #define PALMZ72_BAT_MIN_VOLTAGE 3550 /* 3.55v critical voltage */
  45. #define PALMZ72_BAT_MAX_CURRENT 0 /* unknown */
  46. #define PALMZ72_BAT_MIN_CURRENT 0 /* unknown */
  47. #define PALMZ72_BAT_MAX_CHARGE 1 /* unknown */
  48. #define PALMZ72_BAT_MIN_CHARGE 1 /* unknown */
  49. #define PALMZ72_MAX_LIFE_MINS 360 /* on-life in minutes */
  50. /* Backlight */
  51. #define PALMZ72_MAX_INTENSITY 0xFE
  52. #define PALMZ72_DEFAULT_INTENSITY 0x7E
  53. #define PALMZ72_LIMIT_MASK 0x7F
  54. #define PALMZ72_PRESCALER 0x3F
  55. #define PALMZ72_PERIOD_NS 3500
  56. #ifdef CONFIG_PM
  57. struct palmz72_resume_info {
  58. u32 magic0; /* 0x0 */
  59. u32 magic1; /* 0x4 */
  60. u32 resume_addr; /* 0x8 */
  61. u32 pad[11]; /* 0xc..0x37 */
  62. u32 arm_control; /* 0x38 */
  63. u32 aux_control; /* 0x3c */
  64. u32 ttb; /* 0x40 */
  65. u32 domain_access; /* 0x44 */
  66. u32 process_id; /* 0x48 */
  67. };
  68. #endif
  69. #endif