blob: 44f0a8b57d82855838d72686b696aae94f9caa93 [file] [log] [blame]
Gregory Beand2e753b2010-04-30 21:33:38 -07001/* arch/arm/mach-msm/include/mach/msm_iomap.h
2 *
3 * Copyright (C) 2007 Google, Inc.
4 * Author: Brian Swetland <swetland@google.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 * The MSM peripherals are spread all over across 768MB of physical
17 * space, which makes just having a simple IO_ADDRESS macro to slide
18 * them into the right virtual location rough. Instead, we will
19 * provide a master phys->virt mapping for peripherals here.
20 *
21 */
22
23#ifndef __ASM_ARCH_MSM_IOMAP_7X00_H
24#define __ASM_ARCH_MSM_IOMAP_7X00_H
25
26#include <asm/sizes.h>
27
28/* Physical base address and size of peripherals.
29 * Ordered by the virtual base addresses they will be mapped at.
30 *
31 * MSM_VIC_BASE must be an value that can be loaded via a "mov"
32 * instruction, otherwise entry-macro.S will not compile.
33 *
34 * If you add or remove entries here, you'll want to edit the
35 * msm_io_desc array in arch/arm/mach-msm/io.c to reflect your
36 * changes.
37 *
38 */
39
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070040#define MSM_VIC_BASE IOMEM(0xF8000000)
Gregory Beand2e753b2010-04-30 21:33:38 -070041#define MSM_VIC_PHYS 0xC0000000
42#define MSM_VIC_SIZE SZ_4K
43
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070044#define MSM_CSR_BASE IOMEM(0xF8001000)
45#define MSM_CSR_PHYS 0xC0100000
46#define MSM_CSR_SIZE SZ_4K
Gregory Beand2e753b2010-04-30 21:33:38 -070047
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070048#define MSM_TMR_PHYS MSM_CSR_PHYS
49#define MSM_TMR_BASE MSM_CSR_BASE
50#define MSM_TMR_SIZE SZ_4K
Gregory Beand2e753b2010-04-30 21:33:38 -070051
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070052#define MSM_GPT_BASE MSM_TMR_BASE
53#define MSM_DGT_BASE (MSM_TMR_BASE + 0x10)
Gregory Beand2e753b2010-04-30 21:33:38 -070054
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070055#define MSM_GPIO1_BASE IOMEM(0xF8003000)
Gregory Beand2e753b2010-04-30 21:33:38 -070056#define MSM_GPIO1_PHYS 0xA9200000
57#define MSM_GPIO1_SIZE SZ_4K
Gregory Beand2e753b2010-04-30 21:33:38 -070058
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070059#define MSM_GPIO2_BASE IOMEM(0xF8004000)
Gregory Beand2e753b2010-04-30 21:33:38 -070060#define MSM_GPIO2_PHYS 0xA9300000
61#define MSM_GPIO2_SIZE SZ_4K
62
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070063#define MSM_CLK_CTL_BASE IOMEM(0xF8005000)
Gregory Beand2e753b2010-04-30 21:33:38 -070064#define MSM_CLK_CTL_PHYS 0xA8600000
65#define MSM_CLK_CTL_SIZE SZ_4K
66
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070067#define MSM_SHARED_RAM_BASE IOMEM(0xF8100000)
Gregory Beand2e753b2010-04-30 21:33:38 -070068#define MSM_SHARED_RAM_PHYS 0x01F00000
69#define MSM_SHARED_RAM_SIZE SZ_1M
70
71#define MSM_UART1_PHYS 0xA9A00000
72#define MSM_UART1_SIZE SZ_4K
73
74#define MSM_UART2_PHYS 0xA9B00000
75#define MSM_UART2_SIZE SZ_4K
76
77#define MSM_UART3_PHYS 0xA9C00000
78#define MSM_UART3_SIZE SZ_4K
79
Gregory Beand2e753b2010-04-30 21:33:38 -070080#define MSM_SDC1_PHYS 0xA0400000
81#define MSM_SDC1_SIZE SZ_4K
82
83#define MSM_SDC2_PHYS 0xA0500000
84#define MSM_SDC2_SIZE SZ_4K
85
86#define MSM_SDC3_PHYS 0xA0600000
87#define MSM_SDC3_SIZE SZ_4K
88
89#define MSM_SDC4_PHYS 0xA0700000
90#define MSM_SDC4_SIZE SZ_4K
91
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070092#define MSM_NAND_PHYS 0xA0A00000
93#define MSM_NAND_SIZE SZ_4K
94
Gregory Beand2e753b2010-04-30 21:33:38 -070095#define MSM_I2C_PHYS 0xA9900000
96#define MSM_I2C_SIZE SZ_4K
97
98#define MSM_HSUSB_PHYS 0xA0800000
99#define MSM_HSUSB_SIZE SZ_4K
100
101#define MSM_PMDH_PHYS 0xAA600000
102#define MSM_PMDH_SIZE SZ_4K
103
104#define MSM_EMDH_PHYS 0xAA700000
105#define MSM_EMDH_SIZE SZ_4K
106
107#define MSM_MDP_PHYS 0xAA200000
108#define MSM_MDP_SIZE 0x000F0000
109
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700110#define MSM_MDC_BASE IOMEM(0xF8200000)
Gregory Beand2e753b2010-04-30 21:33:38 -0700111#define MSM_MDC_PHYS 0xAA500000
112#define MSM_MDC_SIZE SZ_1M
113
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700114#define MSM_AD5_BASE IOMEM(0xF8300000)
Gregory Beand2e753b2010-04-30 21:33:38 -0700115#define MSM_AD5_PHYS 0xAC000000
116#define MSM_AD5_SIZE (SZ_1M*13)
117
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700118#define MSM_VFE_PHYS 0xA0F00000
119#define MSM_VFE_SIZE SZ_1M
Rob Herringb12e9ba2012-02-13 13:27:24 -0600120
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700121#define MSM_UART1DM_PHYS 0xA0200000
122#define MSM_UART2DM_PHYS 0xA0300000
Rob Herringb12e9ba2012-02-13 13:27:24 -0600123
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700124#define MSM_SSBI_PHYS 0xA8100000
125#define MSM_SSBI_SIZE SZ_4K
126
127#define MSM_TSSC_PHYS 0xAA300000
128#define MSM_TSSC_SIZE SZ_4K
129
130#if defined(CONFIG_ARCH_MSM7X30)
131#define MSM_GCC_BASE IOMEM(0xF8009000)
132#define MSM_GCC_PHYS 0xC0182000
133#define MSM_GCC_SIZE SZ_4K
Rob Herringb12e9ba2012-02-13 13:27:24 -0600134#endif
Gregory Beand2e753b2010-04-30 21:33:38 -0700135
Gregory Beand2e753b2010-04-30 21:33:38 -0700136#endif