Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* arch/arm/mach-msm/board-mahimahi.h |
| 2 | * |
| 3 | * Copyright (C) 2009 HTC Corporation. |
| 4 | * Author: Haley Teng <Haley_Teng@htc.com> |
| 5 | * |
| 6 | * This software is licensed under the terms of the GNU General Public |
| 7 | * License version 2, as published by the Free Software Foundation, and |
| 8 | * may be copied, distributed, and modified under those terms. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | */ |
| 15 | |
| 16 | #ifndef __ARCH_ARM_MACH_MSM_BOARD_MAHIMAHI_H |
| 17 | #define __ARCH_ARM_MACH_MSM_BOARD_MAHIMAHI_H |
| 18 | |
| 19 | #include <mach/board.h> |
| 20 | |
| 21 | #define MSM_SMI_BASE 0x02B00000 |
| 22 | #define MSM_SMI_SIZE 0x01500000 |
| 23 | |
| 24 | #define MSM_RAM_CONSOLE_BASE 0x03A00000 |
| 25 | #define MSM_RAM_CONSOLE_SIZE 0x00040000 |
| 26 | |
| 27 | #define MSM_FB_BASE 0x03B00000 |
| 28 | #define MSM_FB_SIZE 0x00465000 |
| 29 | |
| 30 | #define MSM_EBI1_BANK0_BASE 0x20000000 |
| 31 | #define MSM_EBI1_BANK0_SIZE 0x0E000000 |
| 32 | |
| 33 | #define MSM_GPU_MEM_BASE 0x2DB00000 |
| 34 | #define MSM_GPU_MEM_SIZE 0x00500000 |
| 35 | |
| 36 | #define MSM_EBI1_BANK1_BASE 0x30000000 |
| 37 | #define MSM_EBI1_BANK1_SIZE 0x10000000 |
| 38 | |
| 39 | #define MSM_PMEM_MDP_BASE 0x30000000 |
| 40 | #define MSM_PMEM_MDP_SIZE 0x02000000 |
| 41 | |
| 42 | #define MSM_PMEM_ADSP_BASE 0x32000000 |
| 43 | #define MSM_PMEM_ADSP_SIZE 0x02900000 |
| 44 | |
| 45 | #define MSM_PMEM_CAMERA_BASE 0x34900000 |
| 46 | #define MSM_PMEM_CAMERA_SIZE 0x00800000 |
| 47 | |
| 48 | #define MSM_HIGHMEM_BASE 0x35100000 |
| 49 | #define MSM_HIGHMEM_SIZE 0x0AF00000 |
| 50 | |
| 51 | #define MAHIMAHI_GPIO_PS_HOLD 25 |
| 52 | |
| 53 | #define MAHIMAHI_GPIO_UP_INT_N 35 |
| 54 | #define MAHIMAHI_GPIO_UP_RESET_N 82 |
| 55 | #define MAHIMAHI_GPIO_LS_EN_N 119 |
| 56 | |
| 57 | #define MAHIMAHI_GPIO_TP_INT_N 92 |
| 58 | #define MAHIMAHI_GPIO_TP_LS_EN 93 |
| 59 | #define MAHIMAHI_GPIO_TP_EN 160 |
| 60 | |
| 61 | #define MAHIMAHI_GPIO_POWER_KEY 94 |
| 62 | #define MAHIMAHI_GPIO_SDMC_CD_REV0_N 153 |
| 63 | |
| 64 | #define MAHIMAHI_GPIO_WIFI_SHUTDOWN_N 127 |
| 65 | #define MAHIMAHI_GPIO_WIFI_IRQ 152 |
| 66 | |
| 67 | #define MAHIMAHI_GPIO_BALL_UP 38 |
| 68 | #define MAHIMAHI_GPIO_BALL_DOWN 37 |
| 69 | #define MAHIMAHI_GPIO_BALL_LEFT 145 |
| 70 | #define MAHIMAHI_GPIO_BALL_RIGHT 21 |
| 71 | |
| 72 | #define MAHIMAHI_GPIO_BT_UART1_RTS 43 |
| 73 | #define MAHIMAHI_GPIO_BT_UART1_CTS 44 |
| 74 | #define MAHIMAHI_GPIO_BT_UART1_RX 45 |
| 75 | #define MAHIMAHI_GPIO_BT_UART1_TX 46 |
| 76 | #define MAHIMAHI_GPIO_BT_RESET_N 146 |
| 77 | #define MAHIMAHI_GPIO_BT_SHUTDOWN_N 128 |
| 78 | |
| 79 | #define MAHIMAHI_GPIO_BT_WAKE 57 |
| 80 | #define MAHIMAHI_GPIO_BT_HOST_WAKE 86 |
| 81 | |
| 82 | #define MAHIMAHI_GPIO_PROXIMITY_INT_N 90 |
| 83 | #define MAHIMAHI_GPIO_PROXIMITY_EN 120 |
| 84 | |
| 85 | #define MAHIMAHI_GPIO_DS2482_SLP_N 87 |
| 86 | #define MAHIMAHI_GPIO_VIBRATOR_ON 89 |
| 87 | /* Compass */ |
| 88 | #define MAHIMAHI_REV0_GPIO_COMPASS_INT_N 36 |
| 89 | |
| 90 | #define MAHIMAHI_GPIO_COMPASS_INT_N 153 |
| 91 | #define MAHIMAHI_GPIO_COMPASS_RST_N 107 |
| 92 | #define MAHIMAHI_PROJECT_NAME "mahimahi" |
| 93 | #define MAHIMAHI_LAYOUTS { \ |
| 94 | { {-1, 0, 0}, { 0, -1, 0}, {0, 0, 1} }, \ |
| 95 | { { 0, -1, 0}, { 1, 0, 0}, {0, 0, -1} }, \ |
| 96 | { { 0, -1, 0}, { 1, 0, 0}, {0, 0, 1} }, \ |
| 97 | { {-1, 0, 0}, { 0, 0, -1}, {0, 1, 0} } \ |
| 98 | } |
| 99 | |
| 100 | /* Audio */ |
| 101 | #define MAHIMAHI_AUD_JACKHP_EN 157 |
| 102 | #define MAHIMAHI_AUD_2V5_EN 158 |
| 103 | #define MAHIMAHI_AUD_MICPATH_SEL 111 |
| 104 | #define MAHIMAHI_AUD_A1026_INT 112 |
| 105 | #define MAHIMAHI_AUD_A1026_WAKEUP 113 |
| 106 | #define MAHIMAHI_AUD_A1026_RESET 129 |
| 107 | #define MAHIMAHI_AUD_A1026_CLK -1 |
| 108 | #define MAHIMAHI_CDMA_XA_AUD_A1026_CLK 105 |
| 109 | /* NOTE: MAHIMAHI_CDMA_XB_AUD_A1026_WAKEUP on CDMA is the same GPIO as |
| 110 | * MAHIMAHI_GPIO_BATTERY_CHARGER_CURRENT on UMTS. Also, |
| 111 | * MAHIMAHI_CDMA_XB_AUD_A1026_RESET is the same as |
| 112 | * GPIO MAHIMAHI_GPIO_35MM_KEY_INT_SHUTDOWN on UMTS. |
| 113 | */ |
| 114 | #define MAHIMAHI_CDMA_XB_AUD_A1026_WAKEUP 16 |
| 115 | #define MAHIMAHI_CDMA_XB_AUD_A1026_RESET 19 |
| 116 | #define MAHIMAHI_CDMA_XB_AUD_A1026_CLK -1 |
| 117 | |
| 118 | /* Bluetooth PCM */ |
| 119 | #define MAHIMAHI_BT_PCM_OUT 68 |
| 120 | #define MAHIMAHI_BT_PCM_IN 69 |
| 121 | #define MAHIMAHI_BT_PCM_SYNC 70 |
| 122 | #define MAHIMAHI_BT_PCM_CLK 71 |
| 123 | /* flash light */ |
| 124 | #define MAHIMAHI_GPIO_FLASHLIGHT_TORCH 58 |
| 125 | #define MAHIMAHI_GPIO_FLASHLIGHT_FLASH 84 |
| 126 | |
| 127 | #define MAHIMAHI_GPIO_LED_3V3_EN 85 |
| 128 | #define MAHIMAHI_GPIO_LCD_RST_N 29 |
| 129 | #define MAHIMAHI_GPIO_LCD_ID0 147 |
| 130 | |
| 131 | /* 3.5mm remote control key interrupt shutdown signal */ |
| 132 | #define MAHIMAHI_GPIO_35MM_KEY_INT_SHUTDOWN 19 |
| 133 | |
| 134 | #define MAHIMAHI_GPIO_DOCK 106 |
| 135 | |
| 136 | /* speaker amplifier enable pin for mahimahi CDMA version */ |
| 137 | #define MAHIMAHI_CDMA_GPIO_AUD_SPK_AMP_EN 104 |
| 138 | |
| 139 | #define MAHIMAHI_GPIO_BATTERY_DETECTION 39 |
| 140 | #define MAHIMAHI_GPIO_BATTERY_CHARGER_EN 22 |
| 141 | #define MAHIMAHI_GPIO_BATTERY_CHARGER_CURRENT 16 |
| 142 | |
| 143 | #define MAHIMAHI_CDMA_GPIO_BT_WAKE 28 |
| 144 | #define MAHIMAHI_CDMA_GPIO_FLASHLIGHT_TORCH 26 |
| 145 | |
| 146 | #define MAHIMAHI_CDMA_SD_2V85_EN 100 |
| 147 | #define MAHIMAHI_CDMA_JOG_2V6_EN 150 |
| 148 | /* display relative */ |
| 149 | #define MAHIMAHI_LCD_SPI_CLK (17) |
| 150 | #define MAHIMAHI_LCD_SPI_DO (18) |
| 151 | #define MAHIMAHI_LCD_SPI_CSz (20) |
| 152 | #define MAHIMAHI_LCD_RSTz (29) |
| 153 | #define MAHIMAHI_LCD_R1 (114) |
| 154 | #define MAHIMAHI_LCD_R2 (115) |
| 155 | #define MAHIMAHI_LCD_R3 (116) |
| 156 | #define MAHIMAHI_LCD_R4 (117) |
| 157 | #define MAHIMAHI_LCD_R5 (118) |
| 158 | #define MAHIMAHI_LCD_G0 (121) |
| 159 | #define MAHIMAHI_LCD_G1 (122) |
| 160 | #define MAHIMAHI_LCD_G2 (123) |
| 161 | #define MAHIMAHI_LCD_G3 (124) |
| 162 | #define MAHIMAHI_LCD_G4 (125) |
| 163 | #define MAHIMAHI_LCD_G5 (126) |
| 164 | #define MAHIMAHI_LCD_B1 (130) |
| 165 | #define MAHIMAHI_LCD_B2 (131) |
| 166 | #define MAHIMAHI_LCD_B3 (132) |
| 167 | #define MAHIMAHI_LCD_B4 (133) |
| 168 | #define MAHIMAHI_LCD_B5 (134) |
| 169 | #define MAHIMAHI_LCD_PCLK (135) |
| 170 | #define MAHIMAHI_LCD_VSYNC (136) |
| 171 | #define MAHIMAHI_LCD_HSYNC (137) |
| 172 | #define MAHIMAHI_LCD_DE (138) |
| 173 | #define is_cdma_version(rev) (((rev) & 0xF0) == 0xC0) |
| 174 | |
| 175 | #endif /* __ARCH_ARM_MACH_MSM_BOARD_MAHIMAHI_H */ |