diff options
author | Deepak Saxena <dsaxena@plexity.net> | 2005-10-28 10:19:01 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-10-28 10:19:01 -0400 |
commit | 6f9182eb32a4e6c46813928bee50df71e3fd1c74 (patch) | |
tree | 6d5579e43a5bdb8acc7dfe301906e31087f2e741 /arch/arm/mach-pxa/generic.c | |
parent | 9fe133b149e8a48742a64b72f22041bcd31fe827 (diff) |
[ARM] 2988/1: Replace map_desc.physical with map_desc.pfn: PXA
Patch from Deepak Saxena
PXA 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-pxa/generic.c')
-rw-r--r-- | arch/arm/mach-pxa/generic.c | 44 |
1 files changed, 36 insertions, 8 deletions
diff --git a/arch/arm/mach-pxa/generic.c b/arch/arm/mach-pxa/generic.c index 1d7677669a76..2e9e1702c4b3 100644 --- a/arch/arm/mach-pxa/generic.c +++ b/arch/arm/mach-pxa/generic.c | |||
@@ -92,14 +92,42 @@ EXPORT_SYMBOL(pxa_set_cken); | |||
92 | * and cache flush area. | 92 | * and cache flush area. |
93 | */ | 93 | */ |
94 | static struct map_desc standard_io_desc[] __initdata = { | 94 | static struct map_desc standard_io_desc[] __initdata = { |
95 | /* virtual physical length type */ | 95 | { /* Devs */ |
96 | { 0xf2000000, 0x40000000, 0x02000000, MT_DEVICE }, /* Devs */ | 96 | .virtual = 0xf2000000, |
97 | { 0xf4000000, 0x44000000, 0x00100000, MT_DEVICE }, /* LCD */ | 97 | .pfn = __phys_to_pfn(0x40000000), |
98 | { 0xf6000000, 0x48000000, 0x00100000, MT_DEVICE }, /* Mem Ctl */ | 98 | .length = 0x02000000, |
99 | { 0xf8000000, 0x4c000000, 0x00100000, MT_DEVICE }, /* USB host */ | 99 | .type = MT_DEVICE |
100 | { 0xfa000000, 0x50000000, 0x00100000, MT_DEVICE }, /* Camera */ | 100 | }, { /* LCD */ |
101 | { 0xfe000000, 0x58000000, 0x00100000, MT_DEVICE }, /* IMem ctl */ | 101 | .virtual = 0xf4000000, |
102 | { 0xff000000, 0x00000000, 0x00100000, MT_DEVICE } /* UNCACHED_PHYS_0 */ | 102 | .pfn = __phys_to_pfn(0x44000000), |
103 | .length = 0x00100000, | ||
104 | .type = MT_DEVICE | ||
105 | }, { /* Mem Ctl */ | ||
106 | .virtual = 0xf6000000, | ||
107 | .pfn = __phys_to_pfn(0x48000000), | ||
108 | .length = 0x00100000, | ||
109 | .type = MT_DEVICE | ||
110 | }, { /* USB host */ | ||
111 | .virtual = 0xf8000000, | ||
112 | .pfn = __phys_to_pfn(0x4c000000), | ||
113 | .length = 0x00100000, | ||
114 | .type = MT_DEVICE | ||
115 | }, { /* Camera */ | ||
116 | .virtual = 0xfa000000, | ||
117 | .pfn = __phys_to_pfn(0x50000000), | ||
118 | .length = 0x00100000, | ||
119 | .type = MT_DEVICE | ||
120 | }, { /* IMem ctl */ | ||
121 | .virtual = 0xfe000000, | ||
122 | .pfn = __phys_to_pfn(0x58000000), | ||
123 | .length = 0x00100000, | ||
124 | .type = MT_DEVICE | ||
125 | }, { /* UNCACHED_PHYS_0 */ | ||
126 | .virtual = 0xff000000, | ||
127 | .pfn = __phys_to_pfn(0x00000000), | ||
128 | .length = 0x00100000, | ||
129 | .type = MT_DEVICE | ||
130 | } | ||
103 | }; | 131 | }; |
104 | 132 | ||
105 | void __init pxa_map_io(void) | 133 | void __init pxa_map_io(void) |