blob: 28347a9a3d3dec37df2420c63170888dfa17369a [file] [log] [blame]
Brian Swetland2500aa12009-01-01 04:33:55 -08001/*
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 Swetlandd5b7ac12009-01-02 01:32:12 -080035#define MSM_GPIO1_BASE 0xA9200000
36#define MSM_GPIO2_BASE 0xA9300000
37
Brian Swetland2500aa12009-01-01 04:33:55 -080038#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 Jadiaeda4e62011-07-19 18:07:29 -070044
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 Swetland2500aa12009-01-01 04:33:55 -080058#define MSM_CSR_BASE 0xC0100000
Subbaraman Narayanamurthybc089032010-08-27 18:28:28 -070059#define MSM_CLK_CTL_BASE 0xA8600000
Brian Swetland2500aa12009-01-01 04:33:55 -080060
Chandan Uddaraju48a2f552009-11-18 15:35:46 -080061#define MSM_SHARED_BASE 0x00100000
Brian Swetland2500aa12009-01-01 04:33:55 -080062
Ajay Dudani2676ea92010-08-10 07:15:45 -070063#define MSM_SDC1_BASE 0xA0400000
Subbaraman Narayanamurthy31c174e2011-02-04 12:35:09 -080064#define MSM_SDC2_BASE 0xA0500000
65#define MSM_SDC3_BASE 0xA0600000
66#define MSM_SDC4_BASE 0xA0700000
Ajay Dudani2676ea92010-08-10 07:15:45 -070067
Brian Swetland2500aa12009-01-01 04:33:55 -080068#endif