blob: f3f8b8fcca3eb033a5ca48398fc0ed33d9508c11 [file] [log] [blame]
Stepan Moskovchenko2b992ad2011-10-18 17:24:18 -07001/*
2 * Copyright (C) 2007 Google, Inc.
3 * Copyright (c) 2008-2011, Code Aurora Forum. All rights reserved.
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_8930_H
24#define __ASM_ARCH_MSM_IOMAP_8930_H
25
26/* Physical base address and size of peripherals.
27 * Ordered by the virtual base addresses they will be mapped at.
28 *
29 * If you add or remove entries here, you'll want to edit the
30 * msm_io_desc array in arch/arm/mach-msm/io.c to reflect your
31 * changes.
32 *
33 */
34
35#define MSM8930_TMR_PHYS 0x0200A000
36#define MSM8930_TMR_SIZE SZ_4K
37
38#define MSM8930_TMR0_PHYS 0x0208A000
39#define MSM8930_TMR0_SIZE SZ_4K
40
41#define MSM8930_RPM_PHYS 0x00108000
42#define MSM8930_RPM_SIZE SZ_4K
43
44#define MSM8930_RPM_MPM_PHYS 0x00200000
45#define MSM8930_RPM_MPM_SIZE SZ_4K
46
47#define MSM8930_TCSR_PHYS 0x1A400000
48#define MSM8930_TCSR_SIZE SZ_4K
49
50#define MSM8930_APCS_GCC_PHYS 0x02011000
51#define MSM8930_APCS_GCC_SIZE SZ_4K
52
53#define MSM8930_SAW_L2_PHYS 0x02012000
54#define MSM8930_SAW_L2_SIZE SZ_4K
55
56#define MSM8930_SAW0_PHYS 0x02089000
57#define MSM8930_SAW0_SIZE SZ_4K
58
59#define MSM8930_SAW1_PHYS 0x02099000
60#define MSM8930_SAW1_SIZE SZ_4K
61
62#define MSM8930_IMEM_PHYS 0x2A03F000
63#define MSM8930_IMEM_SIZE SZ_4K
64
65#define MSM8930_ACC0_PHYS 0x02088000
66#define MSM8930_ACC0_SIZE SZ_4K
67
68#define MSM8930_ACC1_PHYS 0x02098000
69#define MSM8930_ACC1_SIZE SZ_4K
70
71#define MSM8930_QGIC_DIST_PHYS 0x02000000
72#define MSM8930_QGIC_DIST_SIZE SZ_4K
73
74#define MSM8930_QGIC_CPU_PHYS 0x02002000
75#define MSM8930_QGIC_CPU_SIZE SZ_4K
76
77#define MSM8930_CLK_CTL_PHYS 0x00900000
78#define MSM8930_CLK_CTL_SIZE SZ_16K
79
80#define MSM8930_MMSS_CLK_CTL_PHYS 0x04000000
81#define MSM8930_MMSS_CLK_CTL_SIZE SZ_4K
82
83#define MSM8930_LPASS_CLK_CTL_PHYS 0x28000000
84#define MSM8930_LPASS_CLK_CTL_SIZE SZ_4K
85
86#define MSM8930_HFPLL_PHYS 0x00903000
87#define MSM8930_HFPLL_SIZE SZ_4K
88
89#define MSM8930_TLMM_PHYS 0x00800000
90#define MSM8930_TLMM_SIZE SZ_16K
91
92#define MSM8930_DMOV_PHYS 0x18320000
93#define MSM8930_DMOV_SIZE SZ_1M
94
95#define MSM8930_SIC_NON_SECURE_PHYS 0x12100000
96#define MSM8930_SIC_NON_SECURE_SIZE SZ_64K
97
98#define MSM_GPT_BASE (MSM_TMR_BASE + 0x4)
99#define MSM_DGT_BASE (MSM_TMR_BASE + 0x24)
100
101#define MSM8930_HDMI_PHYS 0x04A00000
102#define MSM8930_HDMI_SIZE SZ_4K
103
Sathish Ambleybb87d5f2011-11-08 15:14:01 -0800104#ifdef CONFIG_DEBUG_MSM8930_UART
Stepan Moskovchenko2b992ad2011-10-18 17:24:18 -0700105#define MSM_DEBUG_UART_BASE IOMEM(0xFA740000)
Stepan Moskovchenko2b992ad2011-10-18 17:24:18 -0700106#define MSM_DEBUG_UART_PHYS 0x16440000
107#endif
Stepan Moskovchenko2b992ad2011-10-18 17:24:18 -0700108
109#define MSM8930_QFPROM_PHYS 0x00700000
110#define MSM8930_QFPROM_SIZE SZ_4K
111
112#endif