diff options
author | Ben Dooks <ben-linux@fluff.org> | 2005-11-09 09:05:31 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-11-09 09:05:31 -0500 |
commit | cbe69f95fa7ffc4604622cd4f7efd56ed10999fe (patch) | |
tree | 35649c360fe6e8361ef05c3447dbec8f7619a894 | |
parent | ff6ffa82fe122ecda457bb10dbab7b0c08ee3803 (diff) |
[ARM] 3138/1: SMDK2440 - fix map_desc initialisation (and ISA memory space)
Patch from Ben Dooks
Fix the map_desc initialisers for the SMDK2440 machine
to use the new .pfn method, and at the same time making
the differntiation between ISA IO and Memory space
accesses
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/mach-s3c2410/mach-smdk2440.c | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/arch/arm/mach-s3c2410/mach-smdk2440.c b/arch/arm/mach-s3c2410/mach-smdk2440.c index d666c621ad06..4e31118533e6 100644 --- a/arch/arm/mach-s3c2410/mach-smdk2440.c +++ b/arch/arm/mach-s3c2410/mach-smdk2440.c | |||
@@ -58,8 +58,27 @@ | |||
58 | static struct map_desc smdk2440_iodesc[] __initdata = { | 58 | static struct map_desc smdk2440_iodesc[] __initdata = { |
59 | /* ISA IO Space map (memory space selected by A24) */ | 59 | /* ISA IO Space map (memory space selected by A24) */ |
60 | 60 | ||
61 | { (u32)S3C24XX_VA_ISA_WORD, S3C2410_CS2, SZ_16M, MT_DEVICE }, | 61 | { |
62 | { (u32)S3C24XX_VA_ISA_BYTE, S3C2410_CS2, SZ_16M, MT_DEVICE }, | 62 | .virtual = (u32)S3C24XX_VA_ISA_WORD, |
63 | .pfn = __phys_to_pfn(S3C2410_CS2), | ||
64 | .length = 0x10000, | ||
65 | .type = MT_DEVICE, | ||
66 | }, { | ||
67 | .virtual = (u32)S3C24XX_VA_ISA_WORD + 0x10000, | ||
68 | .pfn = __phys_to_pfn(S3C2410_CS2 + (1<<24)), | ||
69 | .length = SZ_4M, | ||
70 | .type = MT_DEVICE, | ||
71 | }, { | ||
72 | .virtual = (u32)S3C24XX_VA_ISA_BYTE, | ||
73 | .pfn = __phys_to_pfn(S3C2410_CS2), | ||
74 | .length = 0x10000, | ||
75 | .type = MT_DEVICE, | ||
76 | }, { | ||
77 | .virtual = (u32)S3C24XX_VA_ISA_BYTE + 0x10000, | ||
78 | .pfn = __phys_to_pfn(S3C2410_CS2 + (1<<24)), | ||
79 | .length = SZ_4M, | ||
80 | .type = MT_DEVICE, | ||
81 | } | ||
63 | }; | 82 | }; |
64 | 83 | ||
65 | #define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK | 84 | #define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK |