aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2440/mach-osiris.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2007-06-06 04:51:51 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-06-11 04:09:15 -0400
commitc362aecdb51ecb364d427a9b947fd2dfbd4cb86a (patch)
tree4e88fb0552ff6578c1018924e9ed735056d18ef5 /arch/arm/mach-s3c2440/mach-osiris.c
parent5d4cae5fe2ea1a0974962e2c49dca5c9c4b14cc0 (diff)
[ARM] 4442/1: OSIRIS: Fix CPLD register definitions
Fix the CPLD register definitions to correctly mirror the documentation Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s3c2440/mach-osiris.c')
-rw-r--r--arch/arm/mach-s3c2440/mach-osiris.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/arch/arm/mach-s3c2440/mach-osiris.c b/arch/arm/mach-s3c2440/mach-osiris.c
index 4d6c7a574c1a..4525bb0f8513 100644
--- a/arch/arm/mach-s3c2440/mach-osiris.c
+++ b/arch/arm/mach-s3c2440/mach-osiris.c
@@ -65,6 +65,11 @@ static struct map_desc osiris_iodesc[] __initdata = {
65 /* CPLD control registers */ 65 /* CPLD control registers */
66 66
67 { 67 {
68 .virtual = (u32)OSIRIS_VA_CTRL0,
69 .pfn = __phys_to_pfn(OSIRIS_PA_CTRL0),
70 .length = SZ_16K,
71 .type = MT_DEVICE,
72 }, {
68 .virtual = (u32)OSIRIS_VA_CTRL1, 73 .virtual = (u32)OSIRIS_VA_CTRL1,
69 .pfn = __phys_to_pfn(OSIRIS_PA_CTRL1), 74 .pfn = __phys_to_pfn(OSIRIS_PA_CTRL1),
70 .length = SZ_16K, 75 .length = SZ_16K,
@@ -74,6 +79,11 @@ static struct map_desc osiris_iodesc[] __initdata = {
74 .pfn = __phys_to_pfn(OSIRIS_PA_CTRL2), 79 .pfn = __phys_to_pfn(OSIRIS_PA_CTRL2),
75 .length = SZ_16K, 80 .length = SZ_16K,
76 .type = MT_DEVICE, 81 .type = MT_DEVICE,
82 }, {
83 .virtual = (u32)OSIRIS_VA_IDREG,
84 .pfn = __phys_to_pfn(OSIRIS_PA_IDREG),
85 .length = SZ_16K,
86 .type = MT_DEVICE,
77 }, 87 },
78}; 88};
79 89
@@ -195,13 +205,13 @@ static void osiris_nand_select(struct s3c2410_nand_set *set, int slot)
195 pr_debug("osiris_nand: selecting slot %d (set %p,%p)\n", 205 pr_debug("osiris_nand: selecting slot %d (set %p,%p)\n",
196 slot, set, set->nr_map); 206 slot, set, set->nr_map);
197 207
198 tmp = __raw_readb(OSIRIS_VA_CTRL1); 208 tmp = __raw_readb(OSIRIS_VA_CTRL0);
199 tmp &= ~OSIRIS_CTRL1_NANDSEL; 209 tmp &= ~OSIRIS_CTRL0_NANDSEL;
200 tmp |= slot; 210 tmp |= slot;
201 211
202 pr_debug("osiris_nand: ctrl1 now %02x\n", tmp); 212 pr_debug("osiris_nand: ctrl0 now %02x\n", tmp);
203 213
204 __raw_writeb(tmp, OSIRIS_VA_CTRL1); 214 __raw_writeb(tmp, OSIRIS_VA_CTRL0);
205} 215}
206 216
207static struct s3c2410_platform_nand osiris_nand_info = { 217static struct s3c2410_platform_nand osiris_nand_info = {