diff options
author | Steven J. Hill <Steven.Hill@imgtec.com> | 2013-03-25 15:47:05 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-05-08 06:30:09 -0400 |
commit | b431f09d552cc85b19ee1d029eb1d3a992b73166 (patch) | |
tree | 004295e9c6dd55bf0164d1ddd48474642ac012a0 /arch/mips/mti-malta/malta-setup.c | |
parent | 0be2abbceeb837bf938c85db03142b5b0e4675f4 (diff) |
MIPS: FW: malta: Use new common FW library variable processing.
Remove old YAMON prom code and use common firmware library code.
Signed-off-by: Steven J. Hill <Steven.Hill@imgtec.com>
Diffstat (limited to 'arch/mips/mti-malta/malta-setup.c')
-rw-r--r-- | arch/mips/mti-malta/malta-setup.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/mips/mti-malta/malta-setup.c b/arch/mips/mti-malta/malta-setup.c index a85557171faa..9e3937602571 100644 --- a/arch/mips/mti-malta/malta-setup.c +++ b/arch/mips/mti-malta/malta-setup.c | |||
@@ -25,9 +25,8 @@ | |||
25 | #include <linux/screen_info.h> | 25 | #include <linux/screen_info.h> |
26 | #include <linux/time.h> | 26 | #include <linux/time.h> |
27 | 27 | ||
28 | #include <asm/bootinfo.h> | 28 | #include <asm/fw/fw.h> |
29 | #include <asm/mips-boards/generic.h> | 29 | #include <asm/mips-boards/generic.h> |
30 | #include <asm/mips-boards/prom.h> | ||
31 | #include <asm/mips-boards/malta.h> | 30 | #include <asm/mips-boards/malta.h> |
32 | #include <asm/mips-boards/maltaint.h> | 31 | #include <asm/mips-boards/maltaint.h> |
33 | #include <asm/dma.h> | 32 | #include <asm/dma.h> |
@@ -176,7 +175,7 @@ static void __init pci_clock_check(void) | |||
176 | 33, 20, 25, 30, 12, 16, 37, 10 | 175 | 33, 20, 25, 30, 12, 16, 37, 10 |
177 | }; | 176 | }; |
178 | int pciclock = pciclocks[jmpr]; | 177 | int pciclock = pciclocks[jmpr]; |
179 | char *argptr = prom_getcmdline(); | 178 | char *argptr = fw_getcmdline(); |
180 | 179 | ||
181 | if (pciclock != 33 && !strstr(argptr, "idebus=")) { | 180 | if (pciclock != 33 && !strstr(argptr, "idebus=")) { |
182 | printk(KERN_WARNING "WARNING: PCI clock is %dMHz, " | 181 | printk(KERN_WARNING "WARNING: PCI clock is %dMHz, " |
@@ -214,7 +213,7 @@ static void __init bonito_quirks_setup(void) | |||
214 | { | 213 | { |
215 | char *argptr; | 214 | char *argptr; |
216 | 215 | ||
217 | argptr = prom_getcmdline(); | 216 | argptr = fw_getcmdline(); |
218 | if (strstr(argptr, "debug")) { | 217 | if (strstr(argptr, "debug")) { |
219 | BONITO_BONGENCFG |= BONITO_BONGENCFG_DEBUGMODE; | 218 | BONITO_BONGENCFG |= BONITO_BONGENCFG_DEBUGMODE; |
220 | printk(KERN_INFO "Enabled Bonito debug mode\n"); | 219 | printk(KERN_INFO "Enabled Bonito debug mode\n"); |
@@ -226,7 +225,7 @@ static void __init bonito_quirks_setup(void) | |||
226 | BONITO_PCICACHECTRL |= BONITO_PCICACHECTRL_CPUCOH_EN; | 225 | BONITO_PCICACHECTRL |= BONITO_PCICACHECTRL_CPUCOH_EN; |
227 | printk(KERN_INFO "Enabled Bonito CPU coherency\n"); | 226 | printk(KERN_INFO "Enabled Bonito CPU coherency\n"); |
228 | 227 | ||
229 | argptr = prom_getcmdline(); | 228 | argptr = fw_getcmdline(); |
230 | if (strstr(argptr, "iobcuncached")) { | 229 | if (strstr(argptr, "iobcuncached")) { |
231 | BONITO_PCICACHECTRL &= ~BONITO_PCICACHECTRL_IOBCCOH_EN; | 230 | BONITO_PCICACHECTRL &= ~BONITO_PCICACHECTRL_IOBCCOH_EN; |
232 | BONITO_PCIMEMBASECFG = BONITO_PCIMEMBASECFG & | 231 | BONITO_PCIMEMBASECFG = BONITO_PCIMEMBASECFG & |