palmt5.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * GPIOs and interrupts for Palm Tungsten|T5 Handheld Computer
  3. *
  4. * Authors: Ales Snuparek <snuparek@atlas.cz>
  5. * Marek Vasut <marek.vasut@gmail.com>
  6. * Justin Kendrick <twilightsentry@gmail.com>
  7. * RichardT5 <richard_t5@users.sourceforge.net>
  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. */
  14. #ifndef _INCLUDE_PALMT5_H_
  15. #define _INCLUDE_PALMT5_H_
  16. #include <mach/irqs.h> /* PXA_GPIO_TO_IRQ */
  17. /** HERE ARE GPIOs **/
  18. /* GPIOs */
  19. #define GPIO_NR_PALMT5_GPIO_RESET 1
  20. #define GPIO_NR_PALMT5_POWER_DETECT 90
  21. #define GPIO_NR_PALMT5_HOTSYNC_BUTTON_N 10
  22. #define GPIO_NR_PALMT5_EARPHONE_DETECT 107
  23. /* SD/MMC */
  24. #define GPIO_NR_PALMT5_SD_DETECT_N 14
  25. #define GPIO_NR_PALMT5_SD_POWER 114
  26. #define GPIO_NR_PALMT5_SD_READONLY 115
  27. /* TOUCHSCREEN */
  28. #define GPIO_NR_PALMT5_WM9712_IRQ 27
  29. /* IRDA - disable GPIO connected to SD pin of tranceiver (TFBS4710?) ? */
  30. #define GPIO_NR_PALMT5_IR_DISABLE 40
  31. /* USB */
  32. #define GPIO_NR_PALMT5_USB_DETECT_N 15
  33. #define GPIO_NR_PALMT5_USB_PULLUP 93
  34. /* LCD/BACKLIGHT */
  35. #define GPIO_NR_PALMT5_BL_POWER 84
  36. #define GPIO_NR_PALMT5_LCD_POWER 96
  37. /* BLUETOOTH */
  38. #define GPIO_NR_PALMT5_BT_POWER 17
  39. #define GPIO_NR_PALMT5_BT_RESET 83
  40. /* INTERRUPTS */
  41. #define IRQ_GPIO_PALMT5_SD_DETECT_N PXA_GPIO_TO_IRQ(GPIO_NR_PALMT5_SD_DETECT_N)
  42. #define IRQ_GPIO_PALMT5_WM9712_IRQ PXA_GPIO_TO_IRQ(GPIO_NR_PALMT5_WM9712_IRQ)
  43. #define IRQ_GPIO_PALMT5_USB_DETECT PXA_GPIO_TO_IRQ(GPIO_NR_PALMT5_USB_DETECT)
  44. #define IRQ_GPIO_PALMT5_GPIO_RESET PXA_GPIO_TO_IRQ(GPIO_NR_PALMT5_GPIO_RESET)
  45. /** HERE ARE INIT VALUES **/
  46. /* Various addresses */
  47. #define PALMT5_PHYS_RAM_START 0xa0000000
  48. #define PALMT5_PHYS_IO_START 0x40000000
  49. #define PALMT5_STR_BASE 0xa0200000
  50. /* TOUCHSCREEN */
  51. #define AC97_LINK_FRAME 21
  52. /* BATTERY */
  53. #define PALMT5_BAT_MAX_VOLTAGE 4000 /* 4.00v current voltage */
  54. #define PALMT5_BAT_MIN_VOLTAGE 3550 /* 3.55v critical voltage */
  55. #define PALMT5_BAT_MAX_CURRENT 0 /* unknown */
  56. #define PALMT5_BAT_MIN_CURRENT 0 /* unknown */
  57. #define PALMT5_BAT_MAX_CHARGE 1 /* unknown */
  58. #define PALMT5_BAT_MIN_CHARGE 1 /* unknown */
  59. #define PALMT5_MAX_LIFE_MINS 360 /* on-life in minutes */
  60. #define PALMT5_BAT_MEASURE_DELAY (HZ * 1)
  61. /* BACKLIGHT */
  62. #define PALMT5_MAX_INTENSITY 0xFE
  63. #define PALMT5_DEFAULT_INTENSITY 0x7E
  64. #define PALMT5_LIMIT_MASK 0x7F
  65. #define PALMT5_PRESCALER 0x3F
  66. #define PALMT5_PERIOD_NS 3500
  67. #endif