diff options
Diffstat (limited to 'arch/mips/txx9/rbtx4938/setup.c')
-rw-r--r-- | arch/mips/txx9/rbtx4938/setup.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/mips/txx9/rbtx4938/setup.c b/arch/mips/txx9/rbtx4938/setup.c index c2da92396b7a..c1e076c7b2d2 100644 --- a/arch/mips/txx9/rbtx4938/setup.c +++ b/arch/mips/txx9/rbtx4938/setup.c | |||
@@ -310,7 +310,7 @@ void __init tx4938_board_setup(void) | |||
310 | 310 | ||
311 | printk(KERN_INFO "%s SDRAMC --", txx9_pcode_str); | 311 | printk(KERN_INFO "%s SDRAMC --", txx9_pcode_str); |
312 | for (i = 0; i < 4; i++) { | 312 | for (i = 0; i < 4; i++) { |
313 | unsigned long long cr = tx4938_sdramcptr->cr[i]; | 313 | u64 cr = TX4938_SDRAMC_CR(i); |
314 | unsigned long ram_base, ram_size; | 314 | unsigned long ram_base, ram_size; |
315 | if (!((unsigned long)cr & 0x00000400)) | 315 | if (!((unsigned long)cr & 0x00000400)) |
316 | continue; /* disabled */ | 316 | continue; /* disabled */ |
@@ -318,20 +318,21 @@ void __init tx4938_board_setup(void) | |||
318 | ram_size = ((unsigned long)(cr >> 33) + 1) << 21; | 318 | ram_size = ((unsigned long)(cr >> 33) + 1) << 21; |
319 | if (ram_base >= 0x20000000) | 319 | if (ram_base >= 0x20000000) |
320 | continue; /* high memory (ignore) */ | 320 | continue; /* high memory (ignore) */ |
321 | printk(" CR%d:%016Lx", i, cr); | 321 | printk(KERN_CONT " CR%d:%016llx", i, cr); |
322 | tx4938_sdram_resource[i].name = "SDRAM"; | 322 | tx4938_sdram_resource[i].name = "SDRAM"; |
323 | tx4938_sdram_resource[i].start = ram_base; | 323 | tx4938_sdram_resource[i].start = ram_base; |
324 | tx4938_sdram_resource[i].end = ram_base + ram_size - 1; | 324 | tx4938_sdram_resource[i].end = ram_base + ram_size - 1; |
325 | tx4938_sdram_resource[i].flags = IORESOURCE_MEM; | 325 | tx4938_sdram_resource[i].flags = IORESOURCE_MEM; |
326 | request_resource(&iomem_resource, &tx4938_sdram_resource[i]); | 326 | request_resource(&iomem_resource, &tx4938_sdram_resource[i]); |
327 | } | 327 | } |
328 | printk(" TR:%09Lx\n", tx4938_sdramcptr->tr); | 328 | printk(KERN_CONT " TR:%09llx\n", ____raw_readq(&tx4938_sdramcptr->tr)); |
329 | 329 | ||
330 | /* SRAM */ | 330 | /* SRAM */ |
331 | if (tx4938_sramcptr->cr & 1) { | 331 | if (____raw_readq(&tx4938_sramcptr->cr) & 1) { |
332 | unsigned int size = 0x800; | 332 | unsigned int size = 0x800; |
333 | unsigned long base = | 333 | unsigned long base = |
334 | (tx4938_sramcptr->cr >> (39-11)) & ~(size - 1); | 334 | (____raw_readq(&tx4938_sramcptr->cr) >> (39-11)) |
335 | & ~(size - 1); | ||
335 | tx4938_sram_resource.name = "SRAM"; | 336 | tx4938_sram_resource.name = "SRAM"; |
336 | tx4938_sram_resource.start = base; | 337 | tx4938_sram_resource.start = base; |
337 | tx4938_sram_resource.end = base + size - 1; | 338 | tx4938_sram_resource.end = base + size - 1; |