20 #include <linux/kernel.h>
23 #include <linux/export.h>
25 #include <mach/hardware.h>
30 #include <mach/board.h>
34 #define MSM_CHIP_DEVICE_TYPE(name, chip, mem_type) { \
35 .virtual = (unsigned long) MSM_##name##_BASE, \
36 .pfn = __phys_to_pfn(chip##_##name##_PHYS), \
37 .length = chip##_##name##_SIZE, \
41 #define MSM_DEVICE_TYPE(name, mem_type) \
42 MSM_CHIP_DEVICE_TYPE(name, MSM, mem_type)
43 #define MSM_CHIP_DEVICE(name, chip) \
44 MSM_CHIP_DEVICE_TYPE(name, chip, MT_DEVICE)
45 #define MSM_DEVICE(name) MSM_CHIP_DEVICE(name, MSM)
47 #if defined(CONFIG_ARCH_MSM7X00A)
55 #if defined(CONFIG_DEBUG_MSM_UART1) || defined(CONFIG_DEBUG_MSM_UART2) || \
56 defined(CONFIG_DEBUG_MSM_UART3)
73 asm(
"mcr p15, 0, %0, c15, c2, 4" : :
"r" (0));
78 #ifdef CONFIG_ARCH_QSD8X50
79 static struct map_desc qsd8x50_io_desc[] __initdata = {
90 #if defined(CONFIG_DEBUG_MSM_UART1) || defined(CONFIG_DEBUG_MSM_UART2) || \
91 defined(CONFIG_DEBUG_MSM_UART3)
108 #ifdef CONFIG_ARCH_MSM8X60
109 static struct map_desc msm8x60_io_desc[] __initdata = {
114 #ifdef CONFIG_DEBUG_MSM8660_UART
125 #ifdef CONFIG_ARCH_MSM8960
126 static struct map_desc msm8960_io_desc[] __initdata = {
131 #ifdef CONFIG_DEBUG_MSM8960_UART
142 #ifdef CONFIG_ARCH_MSM7X30
143 static struct map_desc msm7x30_io_desc[] __initdata = {
157 #if defined(CONFIG_DEBUG_MSM_UART1) || defined(CONFIG_DEBUG_MSM_UART2) || \
158 defined(CONFIG_DEBUG_MSM_UART3)
176 unsigned int mtype,
void *
caller)
183 if ((phys_addr >= 0x88000000) && (phys_addr < 0xD0000000))
184 mtype = MT_DEVICE_NONSHARED;