diff options
Diffstat (limited to 'arch/mips/tx4927/common/tx4927_prom.c')
-rw-r--r-- | arch/mips/tx4927/common/tx4927_prom.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/mips/tx4927/common/tx4927_prom.c b/arch/mips/tx4927/common/tx4927_prom.c index 7d4cbf512d8a..6eed53d8f386 100644 --- a/arch/mips/tx4927/common/tx4927_prom.c +++ b/arch/mips/tx4927/common/tx4927_prom.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #include <asm/bootinfo.h> | 38 | #include <asm/bootinfo.h> |
39 | #include <asm/tx4927/tx4927.h> | 39 | #include <asm/tx4927/tx4927.h> |
40 | 40 | ||
41 | static unsigned int __init tx4927_process_sdccr(u64 * addr) | 41 | static unsigned int __init tx4927_process_sdccr(unsigned long addr) |
42 | { | 42 | { |
43 | u64 val; | 43 | u64 val; |
44 | unsigned int sdccr_ce; | 44 | unsigned int sdccr_ce; |
@@ -52,7 +52,7 @@ static unsigned int __init tx4927_process_sdccr(u64 * addr) | |||
52 | unsigned int mw = 0; | 52 | unsigned int mw = 0; |
53 | unsigned int msize = 0; | 53 | unsigned int msize = 0; |
54 | 54 | ||
55 | val = (*((vu64 *) (addr))); | 55 | val = __raw_readq((void __iomem *)addr); |
56 | 56 | ||
57 | /* MVMCP -- need #defs for these bits masks */ | 57 | /* MVMCP -- need #defs for these bits masks */ |
58 | sdccr_ce = ((val & (1 << 10)) >> 10); | 58 | sdccr_ce = ((val & (1 << 10)) >> 10); |
@@ -136,10 +136,10 @@ unsigned int __init tx4927_get_mem_size(void) | |||
136 | unsigned int total; | 136 | unsigned int total; |
137 | 137 | ||
138 | /* MVMCP -- need #defs for these registers */ | 138 | /* MVMCP -- need #defs for these registers */ |
139 | c0 = tx4927_process_sdccr((u64 *) 0xff1f8000); | 139 | c0 = tx4927_process_sdccr(0xff1f8000); |
140 | c1 = tx4927_process_sdccr((u64 *) 0xff1f8008); | 140 | c1 = tx4927_process_sdccr(0xff1f8008); |
141 | c2 = tx4927_process_sdccr((u64 *) 0xff1f8010); | 141 | c2 = tx4927_process_sdccr(0xff1f8010); |
142 | c3 = tx4927_process_sdccr((u64 *) 0xff1f8018); | 142 | c3 = tx4927_process_sdccr(0xff1f8018); |
143 | total = c0 + c1 + c2 + c3; | 143 | total = c0 + c1 + c2 + c3; |
144 | 144 | ||
145 | return (total); | 145 | return (total); |