summaryrefslogtreecommitdiffstats
path: root/arch/mips/sni/setup.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-03-04 08:47:27 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-03-04 08:47:27 +0000
commit2bcf5c9ad01156ed4973c0d16cccf9d84062622d (patch)
treebc31972c7465054b4e82778a6e37d6fcf80884a1 /arch/mips/sni/setup.c
parent664937a3d90d3e11b486b2c019041dc901d2893f (diff)
More Second level cache changes. Guess now you understand why I said
it's not sooo trivial ...
Diffstat (limited to 'arch/mips/sni/setup.c')
-rw-r--r--arch/mips/sni/setup.c30
1 files changed, 4 insertions, 26 deletions
diff --git a/arch/mips/sni/setup.c b/arch/mips/sni/setup.c
index 41f64b618..6297fb369 100644
--- a/arch/mips/sni/setup.c
+++ b/arch/mips/sni/setup.c
@@ -7,7 +7,7 @@
*
* Copyright (C) 1996, 1997 by Ralf Baechle
*
- * $Id: setup.c,v 1.5 1997/12/01 16:19:12 ralf Exp $
+ * $Id: setup.c,v 1.6 1997/12/20 13:09:29 ralf Exp $
*/
#include <asm/ptrace.h>
#include <linux/ioport.h>
@@ -16,6 +16,7 @@
#include <linux/interrupt.h>
#include <linux/timex.h>
#include <linux/pci.h>
+#include <asm/bcache.h>
#include <asm/bootinfo.h>
#include <asm/keyboard.h>
#include <asm/io.h>
@@ -94,32 +95,8 @@ static inline void sni_pcimt_detect(void)
asic = (csmsr & 0x08) ? asic : !asic;
p += sprintf(p, ", ASIC PCI Rev %s", asic ? "1.0" : "1.1");
printk("%s.\n", boardtype);
-
- cacheconf = *(volatile unsigned int *)PCIMT_CACHECONF;
- switch(cacheconf & 7) {
- case 0:
- printk("Secondary cache disabled\n");
- break;
- case 1:
- printk("256kb secondary cache\n");
- break;
- case 2:
- printk("512kb secondary cache\n");
- break;
- case 3:
- printk("1mb secondary cache\n");
- break;
- case 4:
- printk("2mb secondary cache\n");
- break;
- case 5:
- printk("4mb secondary cache\n");
- break;
- default:
- panic("invalid secondary cache size\n");
- }
}
-
+
__initfunc(void sni_rm200_pci_setup(void))
{
tag *atag;
@@ -149,6 +126,7 @@ __initfunc(void sni_rm200_pci_setup(void))
}
sni_pcimt_detect();
+ sni_pcimt_sc_init();
irq_setup = sni_irq_setup;
fd_cacheflush = sni_fd_cacheflush; // Will go away