diff options
author | Deepak Saxena <dsaxena@plexity.net> | 2005-10-28 10:19:10 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-10-28 10:19:10 -0400 |
commit | c8d2729858d76de4ef7522c8171004fc1959cc44 (patch) | |
tree | 1ee360c926ef6544b7a1701fe4558ddab1824733 /arch/arm/mach-integrator/integrator_cp.c | |
parent | adecef744fc5b4e9316c851feec2a4d2640dd7ae (diff) |
[ARM] 3001/1: Replace map_desc.physical with map_desc.pfn: Integrator
Patch from Deepak Saxena
Integrator map_desc.pfn conversion
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-integrator/integrator_cp.c')
-rw-r--r-- | arch/arm/mach-integrator/integrator_cp.c | 67 |
1 files changed, 56 insertions, 11 deletions
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c index 2be5c03ab87f..aa34c58b96c4 100644 --- a/arch/arm/mach-integrator/integrator_cp.c +++ b/arch/arm/mach-integrator/integrator_cp.c | |||
@@ -74,17 +74,62 @@ | |||
74 | */ | 74 | */ |
75 | 75 | ||
76 | static struct map_desc intcp_io_desc[] __initdata = { | 76 | static struct map_desc intcp_io_desc[] __initdata = { |
77 | { IO_ADDRESS(INTEGRATOR_HDR_BASE), INTEGRATOR_HDR_BASE, SZ_4K, MT_DEVICE }, | 77 | { |
78 | { IO_ADDRESS(INTEGRATOR_SC_BASE), INTEGRATOR_SC_BASE, SZ_4K, MT_DEVICE }, | 78 | .virtual = IO_ADDRESS(INTEGRATOR_HDR_BASE), |
79 | { IO_ADDRESS(INTEGRATOR_EBI_BASE), INTEGRATOR_EBI_BASE, SZ_4K, MT_DEVICE }, | 79 | .pfn = __phys_to_pfn(INTEGRATOR_HDR_BASE), |
80 | { IO_ADDRESS(INTEGRATOR_CT_BASE), INTEGRATOR_CT_BASE, SZ_4K, MT_DEVICE }, | 80 | .length = SZ_4K, |
81 | { IO_ADDRESS(INTEGRATOR_IC_BASE), INTEGRATOR_IC_BASE, SZ_4K, MT_DEVICE }, | 81 | .type = MT_DEVICE |
82 | { IO_ADDRESS(INTEGRATOR_UART0_BASE), INTEGRATOR_UART0_BASE, SZ_4K, MT_DEVICE }, | 82 | }, { |
83 | { IO_ADDRESS(INTEGRATOR_UART1_BASE), INTEGRATOR_UART1_BASE, SZ_4K, MT_DEVICE }, | 83 | .virtual = IO_ADDRESS(INTEGRATOR_SC_BASE), |
84 | { IO_ADDRESS(INTEGRATOR_DBG_BASE), INTEGRATOR_DBG_BASE, SZ_4K, MT_DEVICE }, | 84 | .pfn = __phys_to_pfn(INTEGRATOR_SC_BASE), |
85 | { IO_ADDRESS(INTEGRATOR_GPIO_BASE), INTEGRATOR_GPIO_BASE, SZ_4K, MT_DEVICE }, | 85 | .length = SZ_4K, |
86 | { 0xfca00000, 0xca000000, SZ_4K, MT_DEVICE }, | 86 | .type = MT_DEVICE |
87 | { 0xfcb00000, 0xcb000000, SZ_4K, MT_DEVICE }, | 87 | }, { |
88 | .virtual = IO_ADDRESS(INTEGRATOR_EBI_BASE), | ||
89 | .pfn = __phys_to_pfn(INTEGRATOR_EBI_BASE), | ||
90 | .length = SZ_4K, | ||
91 | .type = MT_DEVICE | ||
92 | }, { | ||
93 | .virtual = IO_ADDRESS(INTEGRATOR_CT_BASE), | ||
94 | .pfn = __phys_to_pfn(INTEGRATOR_CT_BASE), | ||
95 | .length = SZ_4K, | ||
96 | .type = MT_DEVICE | ||
97 | }, { | ||
98 | .virtual = IO_ADDRESS(INTEGRATOR_IC_BASE), | ||
99 | .pfn = __phys_to_pfn(INTEGRATOR_IC_BASE), | ||
100 | .length = SZ_4K, | ||
101 | .type = MT_DEVICE | ||
102 | }, { | ||
103 | .virtual = IO_ADDRESS(INTEGRATOR_UART0_BASE), | ||
104 | .pfn = __phys_to_pfn(INTEGRATOR_UART0_BASE), | ||
105 | .length = SZ_4K, | ||
106 | .type = MT_DEVICE | ||
107 | }, { | ||
108 | .virtual = IO_ADDRESS(INTEGRATOR_UART1_BASE), | ||
109 | .pfn = __phys_to_pfn(INTEGRATOR_UART1_BASE), | ||
110 | .length = SZ_4K, | ||
111 | .type = MT_DEVICE | ||
112 | }, { | ||
113 | .virtual = IO_ADDRESS(INTEGRATOR_DBG_BASE), | ||
114 | .pfn = __phys_to_pfn(INTEGRATOR_DBG_BASE), | ||
115 | .length = SZ_4K, | ||
116 | .type = MT_DEVICE | ||
117 | }, { | ||
118 | .virtual = IO_ADDRESS(INTEGRATOR_GPIO_BASE), | ||
119 | .pfn = __phys_to_pfn(INTEGRATOR_GPIO_BASE), | ||
120 | .length = SZ_4K, | ||
121 | .type = MT_DEVICE | ||
122 | }, { | ||
123 | .virtual = 0xfca00000, | ||
124 | .pfn = __phys_to_pfn(0xca000000), | ||
125 | .length = SZ_4K, | ||
126 | .type = MT_DEVICE | ||
127 | }, { | ||
128 | .virtual = 0xfcb00000, | ||
129 | .pfn = __phys_to_pfn(0xcb000000), | ||
130 | .length = SZ_4K, | ||
131 | .type = MT_DEVICE | ||
132 | } | ||
88 | }; | 133 | }; |
89 | 134 | ||
90 | static void __init intcp_map_io(void) | 135 | static void __init intcp_map_io(void) |