Path: blob/master/arch/arm/mach-msm/include/mach/msm_iomap-7x30.h
17787 views
/*1* Copyright (C) 2007 Google, Inc.2* Copyright (c) 2008-2011 Code Aurora Forum. All rights reserved.3* Author: Brian Swetland <[email protected]>4*5* This software is licensed under the terms of the GNU General Public6* License version 2, as published by the Free Software Foundation, and7* may be copied, distributed, and modified under those terms.8*9* This program is distributed in the hope that it will be useful,10* but WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12* GNU General Public License for more details.13*14*15* The MSM peripherals are spread all over across 768MB of physical16* space, which makes just having a simple IO_ADDRESS macro to slide17* them into the right virtual location rough. Instead, we will18* provide a master phys->virt mapping for peripherals here.19*20*/2122#ifndef __ASM_ARCH_MSM_IOMAP_7X30_H23#define __ASM_ARCH_MSM_IOMAP_7X30_H2425/* Physical base address and size of peripherals.26* Ordered by the virtual base addresses they will be mapped at.27*28* MSM_VIC_BASE must be an value that can be loaded via a "mov"29* instruction, otherwise entry-macro.S will not compile.30*31* If you add or remove entries here, you'll want to edit the32* msm_io_desc array in arch/arm/mach-msm/io.c to reflect your33* changes.34*35*/3637#define MSM_VIC_BASE IOMEM(0xE0000000)38#define MSM_VIC_PHYS 0xC008000039#define MSM_VIC_SIZE SZ_4K4041#define MSM7X30_CSR_PHYS 0xC010000042#define MSM7X30_CSR_SIZE SZ_4K4344#define MSM_DMOV_BASE IOMEM(0xE0002000)45#define MSM_DMOV_PHYS 0xAC40000046#define MSM_DMOV_SIZE SZ_4K4748#define MSM_GPIO1_BASE IOMEM(0xE0003000)49#define MSM_GPIO1_PHYS 0xAC00100050#define MSM_GPIO1_SIZE SZ_4K5152#define MSM_GPIO2_BASE IOMEM(0xE0004000)53#define MSM_GPIO2_PHYS 0xAC10100054#define MSM_GPIO2_SIZE SZ_4K5556#define MSM_CLK_CTL_BASE IOMEM(0xE0005000)57#define MSM_CLK_CTL_PHYS 0xAB80000058#define MSM_CLK_CTL_SIZE SZ_4K5960#define MSM_CLK_CTL_SH2_BASE IOMEM(0xE0006000)61#define MSM_CLK_CTL_SH2_PHYS 0xABA0100062#define MSM_CLK_CTL_SH2_SIZE SZ_4K6364#define MSM_ACC_BASE IOMEM(0xE0007000)65#define MSM_ACC_PHYS 0xC010100066#define MSM_ACC_SIZE SZ_4K6768#define MSM_SAW_BASE IOMEM(0xE0008000)69#define MSM_SAW_PHYS 0xC010200070#define MSM_SAW_SIZE SZ_4K7172#define MSM_GCC_BASE IOMEM(0xE0009000)73#define MSM_GCC_PHYS 0xC018200074#define MSM_GCC_SIZE SZ_4K7576#define MSM_TCSR_BASE IOMEM(0xE000A000)77#define MSM_TCSR_PHYS 0xAB60000078#define MSM_TCSR_SIZE SZ_4K7980#define MSM_SHARED_RAM_BASE IOMEM(0xE0100000)81#define MSM_SHARED_RAM_PHYS 0x0010000082#define MSM_SHARED_RAM_SIZE SZ_1M8384#define MSM_UART1_PHYS 0xACA0000085#define MSM_UART1_SIZE SZ_4K8687#define MSM_UART2_PHYS 0xACB0000088#define MSM_UART2_SIZE SZ_4K8990#define MSM_UART3_PHYS 0xACC0000091#define MSM_UART3_SIZE SZ_4K9293#ifdef CONFIG_MSM_DEBUG_UART94#define MSM_DEBUG_UART_BASE 0xE100000095#if CONFIG_MSM_DEBUG_UART == 196#define MSM_DEBUG_UART_PHYS MSM_UART1_PHYS97#elif CONFIG_MSM_DEBUG_UART == 298#define MSM_DEBUG_UART_PHYS MSM_UART2_PHYS99#elif CONFIG_MSM_DEBUG_UART == 3100#define MSM_DEBUG_UART_PHYS MSM_UART3_PHYS101#endif102#define MSM_DEBUG_UART_SIZE SZ_4K103#endif104105#define MSM_MDC_BASE IOMEM(0xE0200000)106#define MSM_MDC_PHYS 0xAA500000107#define MSM_MDC_SIZE SZ_1M108109#define MSM_AD5_BASE IOMEM(0xE0300000)110#define MSM_AD5_PHYS 0xA7000000111#define MSM_AD5_SIZE (SZ_1M*13)112113#define MSM_HSUSB_PHYS 0xA3600000114#define MSM_HSUSB_SIZE SZ_1K115116#endif117118119