Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 1 | /* arch/arm/mach-msm/io.c |
| 2 | * |
Daniel Walker | cf62ffa | 2010-05-04 15:12:27 -0700 | [diff] [blame] | 3 | * MSM7K, QSD io support |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 4 | * |
| 5 | * Copyright (C) 2007 Google, Inc. |
David Brown | 8c27e6f | 2011-01-07 10:20:49 -0800 | [diff] [blame] | 6 | * Copyright (c) 2008-2011, Code Aurora Forum. All rights reserved. |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 7 | * Author: Brian Swetland <swetland@google.com> |
| 8 | * |
| 9 | * This software is licensed under the terms of the GNU General Public |
| 10 | * License version 2, as published by the Free Software Foundation, and |
| 11 | * may be copied, distributed, and modified under those terms. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | */ |
| 19 | |
| 20 | #include <linux/kernel.h> |
| 21 | #include <linux/init.h> |
Russell King | fced80c | 2008-09-06 12:10:45 +0100 | [diff] [blame] | 22 | #include <linux/io.h> |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 23 | #include <linux/module.h> |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 24 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 25 | #include <mach/hardware.h> |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 26 | #include <asm/page.h> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 27 | #include <mach/msm_iomap.h> |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 28 | #include <asm/mach/map.h> |
| 29 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 30 | #include <mach/board.h> |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 31 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 32 | #define MSM_CHIP_DEVICE(name, chip) { \ |
Brian Swetland | bcc0f6a | 2008-09-10 14:00:53 -0700 | [diff] [blame] | 33 | .virtual = (unsigned long) MSM_##name##_BASE, \ |
David Brown | 8c27e6f | 2011-01-07 10:20:49 -0800 | [diff] [blame] | 34 | .pfn = __phys_to_pfn(chip##_##name##_PHYS), \ |
| 35 | .length = chip##_##name##_SIZE, \ |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 36 | .type = MT_DEVICE_NONSHARED, \ |
| 37 | } |
| 38 | |
David Brown | 8c27e6f | 2011-01-07 10:20:49 -0800 | [diff] [blame] | 39 | #define MSM_DEVICE(name) MSM_CHIP_DEVICE(name, MSM) |
| 40 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 41 | /* msm_shared_ram_phys default value of 0x00100000 is the most common value |
| 42 | * and should work as-is for any target without stacked memory. |
| 43 | */ |
| 44 | unsigned int msm_shared_ram_phys = 0x00100000; |
| 45 | |
| 46 | static void msm_map_io(struct map_desc *io_desc, int size) |
| 47 | { |
| 48 | int i; |
| 49 | |
| 50 | BUG_ON(!size); |
| 51 | for (i = 0; i < size; i++) |
| 52 | if (io_desc[i].virtual == (unsigned long)MSM_SHARED_RAM_BASE) |
| 53 | io_desc[i].pfn = __phys_to_pfn(msm_shared_ram_phys); |
| 54 | |
| 55 | iotable_init(io_desc, size); |
| 56 | } |
| 57 | |
| 58 | #if defined(CONFIG_ARCH_MSM7X01A) || defined(CONFIG_ARCH_MSM7X27) \ |
Daniel Walker | cf62ffa | 2010-05-04 15:12:27 -0700 | [diff] [blame] | 59 | || defined(CONFIG_ARCH_MSM7X25) |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 60 | static struct map_desc msm_io_desc[] __initdata = { |
| 61 | MSM_DEVICE(VIC), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 62 | MSM_DEVICE(CSR), |
| 63 | MSM_DEVICE(TMR), |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 64 | MSM_DEVICE(DMOV), |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 65 | MSM_DEVICE(GPIO1), |
| 66 | MSM_DEVICE(GPIO2), |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 67 | MSM_DEVICE(CLK_CTL), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 68 | MSM_DEVICE(AD5), |
| 69 | MSM_DEVICE(MDC), |
Pavel Machek | 6339f66 | 2009-11-02 11:48:29 +0100 | [diff] [blame] | 70 | #ifdef CONFIG_MSM_DEBUG_UART |
| 71 | MSM_DEVICE(DEBUG_UART), |
| 72 | #endif |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 73 | #ifdef CONFIG_CACHE_L2X0 |
| 74 | { |
| 75 | .virtual = (unsigned long) MSM_L2CC_BASE, |
| 76 | .pfn = __phys_to_pfn(MSM_L2CC_PHYS), |
| 77 | .length = MSM_L2CC_SIZE, |
| 78 | .type = MT_DEVICE, |
| 79 | }, |
Dima Zavin | b42dc44 | 2010-01-29 11:43:42 -0800 | [diff] [blame] | 80 | #endif |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 81 | { |
Brian Swetland | bcc0f6a | 2008-09-10 14:00:53 -0700 | [diff] [blame] | 82 | .virtual = (unsigned long) MSM_SHARED_RAM_BASE, |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 83 | .length = MSM_SHARED_RAM_SIZE, |
| 84 | .type = MT_DEVICE, |
| 85 | }, |
| 86 | }; |
| 87 | |
| 88 | void __init msm_map_common_io(void) |
| 89 | { |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 90 | /*Peripheral port memory remap, nothing looks to be there for |
| 91 | * cortex a5. |
| 92 | */ |
| 93 | #ifndef CONFIG_ARCH_MSM_CORTEX_A5 |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 94 | /* Make sure the peripheral register window is closed, since |
| 95 | * we will use PTE flags (TEX[1]=1,B=0,C=1) to determine which |
| 96 | * pages are peripheral interface or not. |
| 97 | */ |
| 98 | asm("mcr p15, 0, %0, c15, c2, 4" : : "r" (0)); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 99 | #endif |
| 100 | msm_map_io(msm_io_desc, ARRAY_SIZE(msm_io_desc)); |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 101 | } |
Daniel Walker | cf62ffa | 2010-05-04 15:12:27 -0700 | [diff] [blame] | 102 | #endif |
| 103 | |
| 104 | #ifdef CONFIG_ARCH_QSD8X50 |
| 105 | static struct map_desc qsd8x50_io_desc[] __initdata = { |
| 106 | MSM_DEVICE(VIC), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 107 | MSM_DEVICE(CSR), |
| 108 | MSM_DEVICE(TMR), |
Daniel Walker | cf62ffa | 2010-05-04 15:12:27 -0700 | [diff] [blame] | 109 | MSM_DEVICE(DMOV), |
| 110 | MSM_DEVICE(GPIO1), |
| 111 | MSM_DEVICE(GPIO2), |
| 112 | MSM_DEVICE(CLK_CTL), |
| 113 | MSM_DEVICE(SIRC), |
| 114 | MSM_DEVICE(SCPLL), |
| 115 | MSM_DEVICE(AD5), |
| 116 | MSM_DEVICE(MDC), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 117 | MSM_DEVICE(TCSR), |
Daniel Walker | cf62ffa | 2010-05-04 15:12:27 -0700 | [diff] [blame] | 118 | #ifdef CONFIG_MSM_DEBUG_UART |
| 119 | MSM_DEVICE(DEBUG_UART), |
| 120 | #endif |
| 121 | { |
| 122 | .virtual = (unsigned long) MSM_SHARED_RAM_BASE, |
Daniel Walker | cf62ffa | 2010-05-04 15:12:27 -0700 | [diff] [blame] | 123 | .length = MSM_SHARED_RAM_SIZE, |
| 124 | .type = MT_DEVICE, |
| 125 | }, |
| 126 | }; |
| 127 | |
| 128 | void __init msm_map_qsd8x50_io(void) |
| 129 | { |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 130 | msm_map_io(qsd8x50_io_desc, ARRAY_SIZE(qsd8x50_io_desc)); |
Daniel Walker | cf62ffa | 2010-05-04 15:12:27 -0700 | [diff] [blame] | 131 | } |
| 132 | #endif /* CONFIG_ARCH_QSD8X50 */ |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 133 | |
Steve Muckle | 6cf6dfe | 2010-01-06 14:55:24 -0800 | [diff] [blame] | 134 | #ifdef CONFIG_ARCH_MSM8X60 |
| 135 | static struct map_desc msm8x60_io_desc[] __initdata = { |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 136 | MSM_DEVICE(QGIC_DIST), |
| 137 | MSM_DEVICE(QGIC_CPU), |
| 138 | MSM_DEVICE(TMR), |
| 139 | MSM_DEVICE(TMR0), |
| 140 | MSM_DEVICE(RPM_MPM), |
Steve Muckle | 6cf6dfe | 2010-01-06 14:55:24 -0800 | [diff] [blame] | 141 | MSM_DEVICE(ACC), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 142 | MSM_DEVICE(ACC0), |
| 143 | MSM_DEVICE(ACC1), |
| 144 | MSM_DEVICE(SAW0), |
| 145 | MSM_DEVICE(SAW1), |
Steve Muckle | 6cf6dfe | 2010-01-06 14:55:24 -0800 | [diff] [blame] | 146 | MSM_DEVICE(GCC), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 147 | MSM_DEVICE(TLMM), |
| 148 | MSM_DEVICE(DMOV_ADM0), |
| 149 | MSM_DEVICE(DMOV_ADM1), |
| 150 | MSM_DEVICE(SCPLL), |
| 151 | MSM_DEVICE(RPM), |
| 152 | MSM_DEVICE(CLK_CTL), |
| 153 | MSM_DEVICE(MMSS_CLK_CTL), |
| 154 | MSM_DEVICE(LPASS_CLK_CTL), |
| 155 | MSM_DEVICE(TCSR), |
| 156 | MSM_DEVICE(IMEM), |
| 157 | MSM_DEVICE(HDMI), |
| 158 | #ifdef CONFIG_MSM_DEBUG_UART |
| 159 | MSM_DEVICE(DEBUG_UART), |
| 160 | #endif |
| 161 | MSM_DEVICE(SIC_NON_SECURE), |
| 162 | { |
| 163 | .virtual = (unsigned long) MSM_SHARED_RAM_BASE, |
| 164 | .length = MSM_SHARED_RAM_SIZE, |
| 165 | .type = MT_DEVICE, |
| 166 | }, |
| 167 | MSM_DEVICE(QFPROM), |
Steve Muckle | 6cf6dfe | 2010-01-06 14:55:24 -0800 | [diff] [blame] | 168 | }; |
| 169 | |
| 170 | void __init msm_map_msm8x60_io(void) |
| 171 | { |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 172 | msm_map_io(msm8x60_io_desc, ARRAY_SIZE(msm8x60_io_desc)); |
Steve Muckle | 6cf6dfe | 2010-01-06 14:55:24 -0800 | [diff] [blame] | 173 | } |
| 174 | #endif /* CONFIG_ARCH_MSM8X60 */ |
| 175 | |
Stepan Moskovchenko | 5d0afd7 | 2010-12-01 19:05:49 -0800 | [diff] [blame] | 176 | #ifdef CONFIG_ARCH_MSM8960 |
| 177 | static struct map_desc msm8960_io_desc[] __initdata = { |
| 178 | MSM_CHIP_DEVICE(QGIC_DIST, MSM8960), |
| 179 | MSM_CHIP_DEVICE(QGIC_CPU, MSM8960), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 180 | MSM_CHIP_DEVICE(ACC0, MSM8960), |
| 181 | MSM_CHIP_DEVICE(ACC1, MSM8960), |
Stepan Moskovchenko | 5d0afd7 | 2010-12-01 19:05:49 -0800 | [diff] [blame] | 182 | MSM_CHIP_DEVICE(TMR, MSM8960), |
| 183 | MSM_CHIP_DEVICE(TMR0, MSM8960), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 184 | MSM_CHIP_DEVICE(RPM_MPM, MSM8960), |
| 185 | MSM_CHIP_DEVICE(CLK_CTL, MSM8960), |
| 186 | MSM_CHIP_DEVICE(MMSS_CLK_CTL, MSM8960), |
| 187 | MSM_CHIP_DEVICE(LPASS_CLK_CTL, MSM8960), |
| 188 | MSM_CHIP_DEVICE(RPM, MSM8960), |
| 189 | MSM_CHIP_DEVICE(DMOV, MSM8960), |
| 190 | MSM_CHIP_DEVICE(TLMM, MSM8960), |
| 191 | MSM_CHIP_DEVICE(HFPLL, MSM8960), |
| 192 | MSM_CHIP_DEVICE(SAW0, MSM8960), |
| 193 | MSM_CHIP_DEVICE(SAW1, MSM8960), |
| 194 | MSM_CHIP_DEVICE(SAW_L2, MSM8960), |
| 195 | MSM_CHIP_DEVICE(SIC_NON_SECURE, MSM8960), |
| 196 | MSM_CHIP_DEVICE(APCS_GCC, MSM8960), |
| 197 | MSM_CHIP_DEVICE(TCSR, MSM8960), |
| 198 | MSM_CHIP_DEVICE(IMEM, MSM8960), |
| 199 | MSM_CHIP_DEVICE(HDMI, MSM8960), |
| 200 | { |
| 201 | .virtual = (unsigned long) MSM_SHARED_RAM_BASE, |
| 202 | .length = MSM_SHARED_RAM_SIZE, |
| 203 | .type = MT_DEVICE, |
| 204 | }, |
| 205 | #ifdef CONFIG_MSM_DEBUG_UART |
| 206 | MSM_DEVICE(DEBUG_UART), |
| 207 | #endif |
Stepan Moskovchenko | 5d0afd7 | 2010-12-01 19:05:49 -0800 | [diff] [blame] | 208 | }; |
| 209 | |
| 210 | void __init msm_map_msm8960_io(void) |
| 211 | { |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 212 | msm_map_io(msm8960_io_desc, ARRAY_SIZE(msm8960_io_desc)); |
Stepan Moskovchenko | 5d0afd7 | 2010-12-01 19:05:49 -0800 | [diff] [blame] | 213 | } |
| 214 | #endif /* CONFIG_ARCH_MSM8960 */ |
| 215 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 216 | #ifdef CONFIG_ARCH_APQ8064 |
| 217 | static struct map_desc apq8064_io_desc[] __initdata = { |
| 218 | MSM_CHIP_DEVICE(QGIC_DIST, APQ8064), |
| 219 | MSM_CHIP_DEVICE(QGIC_CPU, APQ8064), |
| 220 | MSM_CHIP_DEVICE(TMR, APQ8064), |
| 221 | MSM_CHIP_DEVICE(TMR0, APQ8064), |
Joel King | 0581896d | 2011-07-19 16:43:28 -0700 | [diff] [blame] | 222 | MSM_CHIP_DEVICE(DMOV, APQ8064), |
Joel King | 4ebccc6 | 2011-07-22 09:43:22 -0700 | [diff] [blame] | 223 | MSM_CHIP_DEVICE(TLMM, APQ8064), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 224 | { |
| 225 | .virtual = (unsigned long) MSM_SHARED_RAM_BASE, |
| 226 | .length = MSM_SHARED_RAM_SIZE, |
| 227 | .type = MT_DEVICE, |
| 228 | }, |
| 229 | }; |
| 230 | |
| 231 | void __init msm_map_apq8064_io(void) |
| 232 | { |
| 233 | msm_map_io(apq8064_io_desc, ARRAY_SIZE(apq8064_io_desc)); |
| 234 | } |
| 235 | #endif /* CONFIG_ARCH_APQ8064 */ |
| 236 | |
Daniel Walker | c83b2bf | 2010-05-04 15:26:13 -0700 | [diff] [blame] | 237 | #ifdef CONFIG_ARCH_MSM7X30 |
| 238 | static struct map_desc msm7x30_io_desc[] __initdata = { |
| 239 | MSM_DEVICE(VIC), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 240 | MSM_DEVICE(CSR), |
| 241 | MSM_DEVICE(TMR), |
Daniel Walker | c83b2bf | 2010-05-04 15:26:13 -0700 | [diff] [blame] | 242 | MSM_DEVICE(DMOV), |
| 243 | MSM_DEVICE(GPIO1), |
| 244 | MSM_DEVICE(GPIO2), |
| 245 | MSM_DEVICE(CLK_CTL), |
| 246 | MSM_DEVICE(CLK_CTL_SH2), |
| 247 | MSM_DEVICE(AD5), |
| 248 | MSM_DEVICE(MDC), |
| 249 | MSM_DEVICE(ACC), |
| 250 | MSM_DEVICE(SAW), |
| 251 | MSM_DEVICE(GCC), |
| 252 | MSM_DEVICE(TCSR), |
| 253 | #ifdef CONFIG_MSM_DEBUG_UART |
| 254 | MSM_DEVICE(DEBUG_UART), |
| 255 | #endif |
| 256 | { |
| 257 | .virtual = (unsigned long) MSM_SHARED_RAM_BASE, |
Daniel Walker | c83b2bf | 2010-05-04 15:26:13 -0700 | [diff] [blame] | 258 | .length = MSM_SHARED_RAM_SIZE, |
| 259 | .type = MT_DEVICE, |
| 260 | }, |
| 261 | }; |
| 262 | |
| 263 | void __init msm_map_msm7x30_io(void) |
| 264 | { |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 265 | msm_map_io(msm7x30_io_desc, ARRAY_SIZE(msm7x30_io_desc)); |
Daniel Walker | c83b2bf | 2010-05-04 15:26:13 -0700 | [diff] [blame] | 266 | } |
| 267 | #endif /* CONFIG_ARCH_MSM7X30 */ |
| 268 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 269 | #ifdef CONFIG_ARCH_FSM9XXX |
| 270 | static struct map_desc fsm9xxx_io_desc[] __initdata = { |
| 271 | MSM_DEVICE(VIC), |
| 272 | MSM_DEVICE(SIRC), |
| 273 | MSM_DEVICE(CSR), |
| 274 | MSM_DEVICE(TLMM), |
| 275 | MSM_DEVICE(TCSR), |
| 276 | MSM_DEVICE(CLK_CTL), |
| 277 | MSM_DEVICE(ACC), |
| 278 | MSM_DEVICE(SAW), |
| 279 | MSM_DEVICE(GCC), |
| 280 | MSM_DEVICE(GRFC), |
| 281 | MSM_DEVICE(DMOV_SD0), |
| 282 | MSM_DEVICE(DMOV_SD1), |
| 283 | MSM_DEVICE(DMOV_SD2), |
| 284 | MSM_DEVICE(DMOV_SD3), |
| 285 | MSM_DEVICE(QFP_FUSE), |
| 286 | MSM_DEVICE(HH), |
| 287 | #ifdef CONFIG_MSM_DEBUG_UART |
| 288 | MSM_DEVICE(DEBUG_UART), |
| 289 | #endif |
| 290 | { |
| 291 | .virtual = (unsigned long) MSM_SHARED_RAM_BASE, |
| 292 | .length = MSM_SHARED_RAM_SIZE, |
| 293 | .type = MT_DEVICE, |
| 294 | }, |
| 295 | }; |
| 296 | |
| 297 | void __init msm_map_fsm9xxx_io(void) |
| 298 | { |
| 299 | msm_map_io(fsm9xxx_io_desc, ARRAY_SIZE(fsm9xxx_io_desc)); |
| 300 | } |
| 301 | #endif /* CONFIG_ARCH_FSM9XXX */ |
| 302 | |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 303 | void __iomem * |
| 304 | __msm_ioremap(unsigned long phys_addr, size_t size, unsigned int mtype) |
| 305 | { |
| 306 | if (mtype == MT_DEVICE) { |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 307 | /* The peripherals in the 88000000 - F0000000 range |
| 308 | * are only accessable by type MT_DEVICE_NONSHARED. |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 309 | * Adjust mtype as necessary to make this "just work." |
| 310 | */ |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 311 | if ((phys_addr >= 0x88000000) && (phys_addr < 0xF0000000)) |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 312 | mtype = MT_DEVICE_NONSHARED; |
| 313 | } |
| 314 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 315 | return __arm_ioremap(phys_addr, size, mtype); |
Brian Swetland | 3042102 | 2007-11-26 04:11:43 -0800 | [diff] [blame] | 316 | } |
Pavankumar Kondeti | 4916a10 | 2010-11-09 15:41:29 +0530 | [diff] [blame] | 317 | EXPORT_SYMBOL(__msm_ioremap); |