mioa701.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #ifndef _MIOA701_H_
  2. #define _MIOA701_H_
  3. #define MIO_CFG_IN(pin, af) \
  4. ((MFP_CFG_DEFAULT & ~(MFP_AF_MASK | MFP_DIR_MASK)) |\
  5. (MFP_PIN(pin) | MFP_##af | MFP_DIR_IN))
  6. #define MIO_CFG_OUT(pin, af, state) \
  7. ((MFP_CFG_DEFAULT & ~(MFP_AF_MASK | MFP_DIR_MASK | MFP_LPM_STATE_MASK)) |\
  8. (MFP_PIN(pin) | MFP_##af | MFP_DIR_OUT | MFP_LPM_##state))
  9. /* Global GPIOs */
  10. #define GPIO9_CHARGE_EN 9
  11. #define GPIO18_POWEROFF 18
  12. #define GPIO87_LCD_POWER 87
  13. #define GPIO96_AC_DETECT 96
  14. #define GPIO80_MAYBE_CHARGE_VDROP 80 /* Drop of 88mV */
  15. /* USB */
  16. #define GPIO13_nUSB_DETECT 13
  17. #define GPIO22_USB_ENABLE 22
  18. /* SDIO bits */
  19. #define GPIO78_SDIO_RO 78
  20. #define GPIO15_SDIO_INSERT 15
  21. #define GPIO91_SDIO_EN 91
  22. /* Bluetooth */
  23. #define GPIO14_BT_nACTIVITY 14
  24. #define GPIO83_BT_ON 83
  25. #define GPIO77_BT_UNKNOWN1 77
  26. #define GPIO86_BT_MAYBE_nRESET 86
  27. /* GPS */
  28. #define GPIO23_GPS_UNKNOWN1 23
  29. #define GPIO26_GPS_ON 26
  30. #define GPIO27_GPS_RESET 27
  31. #define GPIO106_GPS_UNKNOWN2 106
  32. #define GPIO107_GPS_UNKNOWN3 107
  33. /* GSM */
  34. #define GPIO24_GSM_MOD_RESET_CMD 24
  35. #define GPIO88_GSM_nMOD_ON_CMD 88
  36. #define GPIO90_GSM_nMOD_OFF_CMD 90
  37. #define GPIO114_GSM_nMOD_DTE_UART_STATE 114
  38. #define GPIO25_GSM_MOD_ON_STATE 25
  39. #define GPIO113_GSM_EVENT 113
  40. /* SOUND */
  41. #define GPIO12_HPJACK_INSERT 12
  42. /* LEDS */
  43. #define GPIO10_LED_nCharging 10
  44. #define GPIO97_LED_nBlue 97
  45. #define GPIO98_LED_nOrange 98
  46. #define GPIO82_LED_nVibra 82
  47. #define GPIO115_LED_nKeyboard 115
  48. /* Keyboard */
  49. #define GPIO0_KEY_POWER 0
  50. #define GPIO93_KEY_VOLUME_UP 93
  51. #define GPIO94_KEY_VOLUME_DOWN 94
  52. /* Camera */
  53. #define GPIO56_MT9M111_nOE 56
  54. extern struct input_dev *mioa701_evdev;
  55. extern void mioa701_gpio_lpm_set(unsigned long mfp_pin);
  56. /* Assembler externals mioa701_bootresume.S */
  57. extern u32 mioa701_bootstrap;
  58. extern u32 mioa701_jumpaddr;
  59. extern u32 mioa701_bootstrap_lg;
  60. #endif /* _MIOA701_H */