blob: 0bd1e680890b5c1dd1a873470d421f2580e2ec1d [file] [log] [blame]
Deepa Dinamani7d6c8972011-12-14 15:16:56 -08001/* Copyright (c) 2012, Code Aurora Forum. All rights reserved.
2
3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions are
5 * met:
6 * * Redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer.
8 * * Redistributions in binary form must reproduce the above
9 * copyright notice, this list of conditions and the following
10 * disclaimer in the documentation and/or other materials provided
11 * with the distribution.
12 * * Neither the name of Code Aurora Forum, Inc. nor the names of its
13 * contributors may be used to endorse or promote products derived
14 * from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
17 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#ifndef _PLATFORM_MSMCOPPER_IOMAP_H_
30#define _PLATFORM_MSMCOPPER_IOMAP_H_
31
32/* Needs to be changed for 8974
33 * but the def added for compilation of smem.c
34 */
35#define MSM_SHARED_BASE 0x80000000
36
37#define KPSS_BASE 0xF9000000
38
39#define MSM_GIC_DIST_BASE KPSS_BASE
40#define MSM_GIC_CPU_BASE (KPSS_BASE + 0x2000)
41#define APCS_KPSS_ACS_BASE (KPSS_BASE + 0x00008000)
42#define APCS_APC_KPSS_PLL_BASE (KPSS_BASE + 0x0000A000)
43#define APCS_KPSS_CFG_BASE (KPSS_BASE + 0x00010000)
44#define APCS_KPSS_WDT_BASE (KPSS_BASE + 0x00017000)
45
46#define PERIPH_SS_BASE 0xF9800000
47#define BLSP2_BASE (PERIPH_SS_BASE + 0x00140000)
48#define BLSP2_UART2_BASE (BLSP2_BASE + 0x1F000)
49
50#define CLK_CTL_BASE 0xFC400000
51#define TLMM_BASE_ADDR 0xFD400000
52
53#define GPIO_CONFIG_ADDR(x) (TLMM_BASE_ADDR + 0x1000 + (x)*0x10)
54#define GPIO_IN_OUT_ADDR(x) (TLMM_BASE_ADDR + 0x1004 + (x)*0x10)
55
56#endif