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