Brian Swetland | 2500aa1 | 2009-01-01 04:33:55 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2008, Google Inc. |
| 3 | * All rights reserved. |
| 4 | * |
| 5 | * Redistribution and use in source and binary forms, with or without |
| 6 | * modification, are permitted provided that the following conditions |
| 7 | * are met: |
| 8 | * * Redistributions of source code must retain the above copyright |
| 9 | * notice, this list of conditions and the following disclaimer. |
| 10 | * * Redistributions in binary form must reproduce the above copyright |
| 11 | * notice, this list of conditions and the following disclaimer in |
| 12 | * the documentation and/or other materials provided with the |
| 13 | * distribution. |
| 14 | * * Neither the name of Google, Inc. nor the names of its contributors |
| 15 | * may be used to endorse or promote products derived from this |
| 16 | * software without specific prior written permission. |
| 17 | * |
| 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 19 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 20 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 21 | * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
| 22 | * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 23 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
| 24 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS |
| 25 | * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
| 26 | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 27 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
| 28 | * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 29 | * SUCH DAMAGE. |
| 30 | */ |
| 31 | |
| 32 | #ifndef _PLATFORM_MSM7K_IOMAP_H_ |
| 33 | #define _PLATFORM_MSM7K_IOMAP_H_ |
| 34 | |
Brian Swetland | d5b7ac1 | 2009-01-02 01:32:12 -0800 | [diff] [blame] | 35 | #define MSM_GPIO1_BASE 0xA9200000 |
| 36 | #define MSM_GPIO2_BASE 0xA9300000 |
| 37 | |
Brian Swetland | 2500aa1 | 2009-01-01 04:33:55 -0800 | [diff] [blame] | 38 | #define MSM_UART1_BASE 0xA9A00000 |
| 39 | #define MSM_UART2_BASE 0xA9B00000 |
| 40 | #define MSM_UART3_BASE 0xA9C00000 |
| 41 | |
| 42 | #define MSM_VIC_BASE 0xC0000000 |
| 43 | #define MSM_GPT_BASE 0xC0100000 |
Amol Jadi | aeda4e6 | 2011-07-19 18:07:29 -0700 | [diff] [blame] | 44 | |
| 45 | #define GPT_REG(off) (MSM_GPT_BASE + (off)) |
| 46 | |
| 47 | #define GPT_MATCH_VAL GPT_REG(0x0000) |
| 48 | #define GPT_COUNT_VAL GPT_REG(0x0004) |
| 49 | #define GPT_ENABLE GPT_REG(0x0008) |
| 50 | #define GPT_CLEAR GPT_REG(0x000C) |
| 51 | #define DGT_MATCH_VAL GPT_REG(0x0010) |
| 52 | #define DGT_COUNT_VAL GPT_REG(0x0014) |
| 53 | #define DGT_ENABLE GPT_REG(0x0018) |
| 54 | #define DGT_CLEAR GPT_REG(0x001C) |
| 55 | #define SPSS_TIMER_STATUS GPT_REG(0x0034) |
| 56 | |
| 57 | |
Brian Swetland | 2500aa1 | 2009-01-01 04:33:55 -0800 | [diff] [blame] | 58 | #define MSM_CSR_BASE 0xC0100000 |
Subbaraman Narayanamurthy | bc08903 | 2010-08-27 18:28:28 -0700 | [diff] [blame] | 59 | #define MSM_CLK_CTL_BASE 0xA8600000 |
Brian Swetland | 2500aa1 | 2009-01-01 04:33:55 -0800 | [diff] [blame] | 60 | |
Chandan Uddaraju | 48a2f55 | 2009-11-18 15:35:46 -0800 | [diff] [blame] | 61 | #define MSM_SHARED_BASE 0x00100000 |
Brian Swetland | 2500aa1 | 2009-01-01 04:33:55 -0800 | [diff] [blame] | 62 | |
Ajay Dudani | 2676ea9 | 2010-08-10 07:15:45 -0700 | [diff] [blame] | 63 | #define MSM_SDC1_BASE 0xA0400000 |
Subbaraman Narayanamurthy | 31c174e | 2011-02-04 12:35:09 -0800 | [diff] [blame] | 64 | #define MSM_SDC2_BASE 0xA0500000 |
| 65 | #define MSM_SDC3_BASE 0xA0600000 |
| 66 | #define MSM_SDC4_BASE 0xA0700000 |
Ajay Dudani | 2676ea9 | 2010-08-10 07:15:45 -0700 | [diff] [blame] | 67 | |
Brian Swetland | 2500aa1 | 2009-01-01 04:33:55 -0800 | [diff] [blame] | 68 | #endif |