/* * Copyright (c) 2012-2013 The Linux Foundation. All rights reserved.* */ /* * Copyright (C) 2007 Google, Inc. * Copyright (c) 2008-2012, The Linux Foundation. All rights reserved. * Author: Brian Swetland * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * * The MSM peripherals are spread all over across 768MB of physical * space, which makes just having a simple IO_ADDRESS macro to slide * them into the right virtual location rough. Instead, we will * provide a master phys->virt mapping for peripherals here. * */ #ifndef __ASM_ARCH_MSM_IOMAP_H #define __ASM_ARCH_MSM_IOMAP_H #include /* Physical base address and size of peripherals. * Ordered by the virtual base addresses they will be mapped at. * * MSM_VIC_BASE must be an value that can be loaded via a "mov" * instruction, otherwise entry-macro.S will not compile. * * If you add or remove entries here, you'll want to edit the * msm_io_desc array in arch/arm/mach-msm/io.c to reflect your * changes. * */ #define MSM_DEBUG_UART_SIZE SZ_4K #if defined(CONFIG_DEBUG_MSM_UART1) || defined(CONFIG_DEBUG_MSM_UART2) \ || defined(CONFIG_DEBUG_MSM_UART3) #define MSM_DEBUG_UART_BASE 0xFC000000 #define MSM_DEBUG_UART_PHYS CONFIG_MSM_DEBUG_UART_PHYS #endif #define MSM8625_WARM_BOOT_PHYS 0x0FD00000 #if defined(CONFIG_ARCH_MSM8960) || defined(CONFIG_ARCH_APQ8064) || \ defined(CONFIG_ARCH_MSM7X27) || \ defined(CONFIG_ARCH_MSM7X25) || defined(CONFIG_ARCH_MSM7X01A) || \ defined(CONFIG_ARCH_MSM8625) || defined(CONFIG_ARCH_MSM7X30) || \ defined(CONFIG_ARCH_IPQ806X) /* Unified iomap */ #define MSM_TMR_BASE IOMEM(0xFA000000) /* 4K */ #define MSM_TMR0_BASE IOMEM(0xFA001000) /* 4K */ #define MSM_QGIC_DIST_BASE IOMEM(0xFA002000) /* 4K */ #define MSM_QGIC_CPU_BASE IOMEM(0xFA003000) /* 4K */ #define MSM_TCSR_BASE IOMEM(0xFA004000) /* 4K */ #define MSM_APCS_GCC_BASE IOMEM(0xFA006000) /* 4K */ #define MSM_SAW_L2_BASE IOMEM(0xFA007000) /* 4K */ #define MSM_SAW0_BASE IOMEM(0xFA008000) /* 4K */ #define MSM_SAW1_BASE IOMEM(0xFA009000) /* 4K */ #define MSM_IMEM_BASE IOMEM(0xFA00A000) /* 4K */ #define MSM_ACC0_BASE IOMEM(0xFA00B000) /* 4K */ #define MSM_ACC1_BASE IOMEM(0xFA00C000) /* 4K */ #define MSM_ACC2_BASE IOMEM(0xFA00D000) /* 4K */ #define MSM_ACC3_BASE IOMEM(0xFA00E000) /* 4K */ #define MSM_CLK_CTL_BASE IOMEM(0xFA010000) /* 16K */ #define MSM_MMSS_CLK_CTL_BASE IOMEM(0xFA014000) /* 4K */ #define MSM_LPASS_CLK_CTL_BASE IOMEM(0xFA015000) /* 4K */ #define MSM_HFPLL_BASE IOMEM(0xFA016000) /* 4K */ #define MSM_TLMM_BASE IOMEM(0xFA017000) /* 16K */ #define MSM_RPM_TIMERS_BASE IOMEM(0xFA062000) /* 4K */ #define MSM_SHARED_RAM_BASE IOMEM(0xFA300000) /* 2M */ #define MSM_SIC_NON_SECURE_BASE IOMEM(0xFA600000) /* 64K */ #define MSM_HDMI_BASE IOMEM(0xFA800000) /* 4K */ #define MSM_RPM_BASE IOMEM(0xFA801000) /* 4K */ #define MSM_RPM_MPM_BASE IOMEM(0xFA802000) /* 4K */ #define MSM_QFPROM_BASE IOMEM(0xFA700000) /* 4K */ #define MSM_L2CC_BASE IOMEM(0xFA701000) /* 4K */ #define MSM_APCS_GLB_BASE IOMEM(0xFA702000) /* 4K */ #define MSM_SAW2_BASE IOMEM(0xFA703000) /* 4k */ #define MSM_SAW3_BASE IOMEM(0xFA704000) /* 4k */ #define MSM_VIC_BASE IOMEM(0xFA100000) /* 4K */ #define MSM_CSR_BASE IOMEM(0xFA101000) /* 4K */ #define MSM_GPIO1_BASE IOMEM(0xFA102000) /* 4K */ #define MSM_GPIO2_BASE IOMEM(0xFA103000) /* 4K */ #define MSM_SCU_BASE IOMEM(0xFA104000) /* 4K */ #define MSM_CFG_CTL_BASE IOMEM(0xFA105000) /* 4K */ #define MSM_CLK_CTL_SH2_BASE IOMEM(0xFA106000) /* 4K */ #define MSM_MPM2_PSHOLD_BASE IOMEM(0xFA107000) /* 4k */ #define MSM_MDC_BASE IOMEM(0xFA400000) /* 1M */ #define MSM_AD5_BASE IOMEM(0xFA900000) /* 13M (D00000) 0xFB600000 */ #define MSM_STRONGLY_ORDERED_PAGE 0xFA0F0000 #define MSM8625_SECONDARY_PHYS 0x0FE00000 /* * Reserved 128KB for NSS TCM @ 0xFB700000 for now */ #define MSM_NSS_TCM_BASE IOMEM(0xFB700000) /* 128K */ #define MSM_NSS_FPB_BASE IOMEM(0xFB720000) /* 4K */ #define MSM_UBI32_0_CSM_BASE IOMEM(0xFB721000) /* 4K */ #define MSM_UBI32_1_CSM_BASE IOMEM(0xFB722000) /* 4K */ #define MSM_SFAB_BASE IOMEM(0xFB740000) #define MSM_AFAB_BASE IOMEM(0xFB750000) #define MSM_NSSFAB_0_BASE IOMEM(0xFB760000) #define MSM_NSSFAB_1_BASE IOMEM(0xFB770000) #define MSM_DAY_CFG_BASE IOMEM(0xFB780000) #if defined(CONFIG_ARCH_MSM7X27) \ || defined(CONFIG_ARCH_MSM7X30) #define MSM_SHARED_RAM_SIZE SZ_1M #else #define MSM_SHARED_RAM_SIZE SZ_2M #endif #include "msm_iomap-7xxx.h" #include "msm_iomap-7x30.h" #include "msm_iomap-8625.h" #include "msm_iomap-8960.h" #include "msm_iomap-8064.h" #include "msm_iomap-ipq806x.h" #else /* Legacy single-target iomap */ #if defined(CONFIG_ARCH_QSD8X50) #include "msm_iomap-8x50.h" #elif defined(CONFIG_ARCH_MSM8X60) #include "msm_iomap-8x60.h" #elif defined(CONFIG_ARCH_FSM9XXX) #include "msm_iomap-fsm9xxx.h" #else #error "Target compiled without IO map\n" #endif #endif #endif