diff options
author | Deepak Saxena <dsaxena@plexity.net> | 2005-10-28 10:19:02 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-10-28 10:19:02 -0400 |
commit | f9258f226baf663099acb7972287ea0e26ce05a7 (patch) | |
tree | 107f3597d7e9af9f58219e5f30ac3b7131da78ce /arch/arm/mach-rpc | |
parent | 6f9182eb32a4e6c46813928bee50df71e3fd1c74 (diff) |
[ARM] 2989/1: Replace map_desc.physical with map_desc.pfn: RiscPC
Patch from Deepak Saxena
RiscPC 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-rpc')
-rw-r--r-- | arch/arm/mach-rpc/riscpc.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/arch/arm/mach-rpc/riscpc.c b/arch/arm/mach-rpc/riscpc.c index e3587efec4bf..5c4ac1c008a6 100644 --- a/arch/arm/mach-rpc/riscpc.c +++ b/arch/arm/mach-rpc/riscpc.c | |||
@@ -61,9 +61,22 @@ static int __init parse_tag_acorn(const struct tag *tag) | |||
61 | __tagtable(ATAG_ACORN, parse_tag_acorn); | 61 | __tagtable(ATAG_ACORN, parse_tag_acorn); |
62 | 62 | ||
63 | static struct map_desc rpc_io_desc[] __initdata = { | 63 | static struct map_desc rpc_io_desc[] __initdata = { |
64 | { SCREEN_BASE, SCREEN_START, 2*1048576, MT_DEVICE }, /* VRAM */ | 64 | { /* VRAM */ |
65 | { (u32)IO_BASE, IO_START, IO_SIZE , MT_DEVICE }, /* IO space */ | 65 | .virtual = SCREEN_BASE, |
66 | { EASI_BASE, EASI_START, EASI_SIZE, MT_DEVICE } /* EASI space */ | 66 | .pfn = __phys_to_pfn(SCREEN_START), |
67 | .length = 2*1048576, | ||
68 | .type = MT_DEVICE | ||
69 | }, { /* IO space */ | ||
70 | .virtual = (u32)IO_BASE, | ||
71 | .pfn = __phys_to_pfn(IO_START), | ||
72 | .length = IO_SIZE , | ||
73 | .type = MT_DEVICE | ||
74 | }, { /* EASI space */ | ||
75 | .virtual = EASI_BASE, | ||
76 | .pfn = __phys_to_pfn(EASI_START), | ||
77 | .length = EASI_SIZE, | ||
78 | .type = MT_DEVICE | ||
79 | } | ||
67 | }; | 80 | }; |
68 | 81 | ||
69 | static void __init rpc_map_io(void) | 82 | static void __init rpc_map_io(void) |