Shashank Mittal | 23b8f42 | 2010-04-16 19:27:21 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2008, Google Inc. |
| 2 | * All rights reserved. |
| 3 | * |
| 4 | * Copyright (c) 2009-2010, Code Aurora Forum. All rights reserved. |
| 5 | * |
| 6 | * Redistribution and use in source and binary forms, with or without |
| 7 | * modification, are permitted provided that the following conditions |
| 8 | * are met: |
| 9 | * * Redistributions of source code must retain the above copyright |
| 10 | * notice, this list of conditions and the following disclaimer. |
| 11 | * * Redistributions in binary form must reproduce the above copyright |
| 12 | * notice, this list of conditions and the following disclaimer in |
| 13 | * the documentation and/or other materials provided with the |
| 14 | * distribution. |
| 15 | * * Neither the name of Google, Inc. nor the names of its contributors |
| 16 | * may be used to endorse or promote products derived from this |
| 17 | * software without specific prior written permission. |
| 18 | * |
| 19 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 20 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 21 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 22 | * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
| 23 | * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 24 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
| 25 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS |
| 26 | * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
| 27 | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 28 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
| 29 | * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 30 | * SUCH DAMAGE. |
| 31 | */ |
| 32 | |
| 33 | #ifndef _PLATFORM_MSM8X60_IOMAP_H_ |
| 34 | #define _PLATFORM_MSM8X60_IOMAP_H_ |
| 35 | |
| 36 | #define MSM_UART3_BASE 0xA9C00000 |
| 37 | |
| 38 | #define MSM_VIC_BASE 0x02080000 |
| 39 | #define MSM_TMR_BASE 0x02000000 |
| 40 | #define MSM_GPT_BASE (MSM_TMR_BASE + 0x04) |
| 41 | #define MSM_CSR_BASE 0x02081000 |
| 42 | #define MSM_GCC_BASE 0x02082000 |
| 43 | #define MSM_ACC0_BASE 0x02041000 |
| 44 | #define MSM_ACC1_BASE 0x02051000 |
| 45 | |
Subbaraman Narayanamurthy | c647278 | 2010-09-30 12:39:14 -0700 | [diff] [blame] | 46 | #define MSM_TCSR_BASE 0x16B00000 |
| 47 | #define TCSR_WDOG_CFG 0x30 |
| 48 | #define MSM_WDT0_RST (MSM_TMR_BASE + 0x38) |
| 49 | #define MSM_WDT0_EN (MSM_TMR_BASE + 0x40) |
| 50 | #define MSM_WDT0_BT (MSM_TMR_BASE + 0x4C) |
Shashank Mittal | 23b8f42 | 2010-04-16 19:27:21 -0700 | [diff] [blame] | 51 | |
| 52 | #define MSM_GIC_CPU_BASE 0x02081000 |
| 53 | #define MSM_GIC_DIST_BASE 0x02080000 |
| 54 | |
| 55 | #define MSM_SDC1_BASE 0x12400000 |
Shashank Mittal | 23b8f42 | 2010-04-16 19:27:21 -0700 | [diff] [blame] | 56 | |
Subbaraman Narayanamurthy | c647278 | 2010-09-30 12:39:14 -0700 | [diff] [blame] | 57 | #define MSM_SHARED_BASE 0x40000000 |
Subbaraman Narayanamurthy | f9b6e0d | 2010-09-08 16:51:43 -0700 | [diff] [blame] | 58 | |
Subbaraman Narayanamurthy | c647278 | 2010-09-30 12:39:14 -0700 | [diff] [blame] | 59 | #define SURF_DEBUG_LED_ADDR 0x1D000202 |
Subbaraman Narayanamurthy | f9b6e0d | 2010-09-08 16:51:43 -0700 | [diff] [blame] | 60 | |
| 61 | #define GPIO_CFG133_ADDR 0x00801850 |
| 62 | #define GPIO_CFG135_ADDR 0x00801870 |
| 63 | #define GPIO_CFG136_ADDR 0x00801880 |
| 64 | #define GPIO_CFG137_ADDR 0x00801890 |
| 65 | #define GPIO_CFG138_ADDR 0x008018A0 |
| 66 | #define GPIO_CFG139_ADDR 0x008018B0 |
| 67 | #define GPIO_CFG140_ADDR 0x008018C0 |
| 68 | #define GPIO_CFG141_ADDR 0x008018D0 |
| 69 | #define GPIO_CFG142_ADDR 0x008018E0 |
| 70 | #define GPIO_CFG143_ADDR 0x008018F0 |
| 71 | #define GPIO_CFG144_ADDR 0x00801900 |
| 72 | #define GPIO_CFG145_ADDR 0x00801910 |
| 73 | #define GPIO_CFG146_ADDR 0x00801920 |
| 74 | #define GPIO_CFG147_ADDR 0x00801930 |
| 75 | #define GPIO_CFG148_ADDR 0x00801940 |
| 76 | #define GPIO_CFG149_ADDR 0x00801950 |
| 77 | #define GPIO_CFG150_ADDR 0x00801960 |
| 78 | #define GPIO_CFG151_ADDR 0x00801970 |
| 79 | #define GPIO_CFG152_ADDR 0x00801980 |
| 80 | #define GPIO_CFG153_ADDR 0x00801990 |
| 81 | #define GPIO_CFG154_ADDR 0x008019A0 |
| 82 | #define GPIO_CFG155_ADDR 0x008019B0 |
| 83 | #define GPIO_CFG156_ADDR 0x008019C0 |
| 84 | #define GPIO_CFG157_ADDR 0x008019D0 |
| 85 | #define GPIO_CFG158_ADDR 0x008019E0 |
| 86 | |
Shashank Mittal | c69512e | 2010-09-22 16:40:48 -0700 | [diff] [blame^] | 87 | #define GSBI1_BASE (0x16000000) |
| 88 | #define GSBI2_BASE (0x16100000) |
| 89 | #define GSBI3_BASE (0x16200000) |
| 90 | #define GSBI4_BASE (0x16300000) |
| 91 | #define GSBI5_BASE (0x16400000) |
| 92 | #define GSBI6_BASE (0x16500000) |
| 93 | #define GSBI7_BASE (0x16600000) |
| 94 | #define GSBI8_BASE (0x19800000) |
| 95 | #define GSBI9_BASE (0x19900000) |
| 96 | #define GSBI10_BASE (0x19A00000) |
| 97 | #define GSBI11_BASE (0x19B00000) |
| 98 | #define GSBI12_BASE (0x19C00000) |
| 99 | |
| 100 | #define GSBI1_QUP_BASE (GSBI1_BASE + 0x80000) |
| 101 | #define GSBI2_QUP_BASE (GSBI2_BASE + 0x80000) |
| 102 | #define GSBI3_QUP_BASE (GSBI3_BASE + 0x80000) |
| 103 | #define GSBI4_QUP_BASE (GSBI4_BASE + 0x80000) |
| 104 | #define GSBI5_QUP_BASE (GSBI5_BASE + 0x80000) |
| 105 | #define GSBI6_QUP_BASE (GSBI6_BASE + 0x80000) |
| 106 | #define GSBI7_QUP_BASE (GSBI7_BASE + 0x80000) |
| 107 | #define GSBI8_QUP_BASE (GSBI8_BASE + 0x80000) |
| 108 | #define GSBI9_QUP_BASE (GSBI9_BASE + 0x80000) |
| 109 | #define GSBI10_QUP_BASE (GSBI10_BASE + 0x80000) |
| 110 | #define GSBI11_QUP_BASE (GSBI11_BASE + 0x80000) |
| 111 | #define GSBI12_QUP_BASE (GSBI12_BASE + 0x80000) |
| 112 | |
| 113 | #define GSBI_CTL_PROTOCOL_CODE_I2C (0x20) |
| 114 | |
| 115 | #define CLK_CTL_BASE 0x00900000 |
| 116 | |
| 117 | #define GSBIn_HCLK_CTL(n) ((CLK_CTL_BASE) + 0x29C0 + (32 * ((n) - 1))) |
| 118 | #define GSBIn_HCLK_FS(n) ((CLK_CTL_BASE) + 0x29C4 + (32 * ((n) - 1))) |
| 119 | #define GSBIn_QUP_APPS_MD(n) ((CLK_CTL_BASE) + 0x29C8 + (32 * ((n) - 1))) |
| 120 | #define GSBIn_QUP_APPS_NS(n) ((CLK_CTL_BASE) + 0x29CC + (32 * ((n) - 1))) |
| 121 | |
| 122 | /* Defines for the GPIO EXPANDER chip, SX1509QIULTRT */ |
| 123 | #define GPIO_EXPANDER_REG_OPEN_DRAIN_A (0x0B) |
| 124 | #define GPIO_EXPANDER_REG_DIR_B (0x0E) |
| 125 | #define GPIO_EXPANDER_REG_DIR_A (0x0F) |
| 126 | #define GPIO_EXPANDER_REG_DATA_B (0x10) |
| 127 | #define GPIO_EXPANDER_REG_DATA_A (0x11) |
| 128 | #define CORE_GPIO_EXPANDER_I2C_ADDRESS (0x3E) |
| 129 | #define EEPROM_I2C_ADDRESS (0x52) |
| 130 | |
Subbaraman Narayanamurthy | f9b6e0d | 2010-09-08 16:51:43 -0700 | [diff] [blame] | 131 | #define EBI2_CHIP_SELECT_CFG0 0x1A100000 |
| 132 | #define EBI2_XMEM_CS3_CFG1 0x1A110034 |
Ajay Dudani | 7d60552 | 2010-10-01 19:52:37 -0700 | [diff] [blame] | 133 | |
| 134 | #define MSM_USB_BASE 0x12500000 |
| 135 | #define USB_HS1_XVCR_FS_CLK_MD 0x00902908 |
| 136 | #define USB_HS1_XVCR_FS_CLK_NS 0x0090290C |
| 137 | |
Shashank Mittal | 23b8f42 | 2010-04-16 19:27:21 -0700 | [diff] [blame] | 138 | #endif |