Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/bonito add definitions for Loongson 2F Chip Co...
details: https://anonhg.NetBSD.org/src/rev/33b3757e7f14
branches: trunk
changeset: 786116:33b3757e7f14
user: macallan <macallan%NetBSD.org@localhost>
date: Tue Apr 16 09:02:32 2013 +0000
description:
add definitions for Loongson 2F Chip Config register
diffstat:
sys/arch/mips/bonito/bonitoreg.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r 0be3bce6ebf4 -r 33b3757e7f14 sys/arch/mips/bonito/bonitoreg.h
--- a/sys/arch/mips/bonito/bonitoreg.h Tue Apr 16 07:45:37 2013 +0000
+++ b/sys/arch/mips/bonito/bonitoreg.h Tue Apr 16 09:02:32 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bonitoreg.h,v 1.7 2011/08/27 12:59:17 bouyer Exp $ */
+/* $NetBSD: bonitoreg.h,v 1.8 2013/04/16 09:02:32 macallan Exp $ */
/*
* Bonito Register Map
@@ -221,6 +221,12 @@
#define BONITO_PCIDATA BONITO(BONITO_REGBASE + 0x64)
*/
+#define LS2F_CHIPCFG0 BONITO(BONITO_REGBASE + 0x80)
+#define LS2FCFG_FREQSCALE_MASK 0x00000007
+#define LS2FCFG_DISABLE_SCACHE 0x00000008 /* disable secondary cache */
+#define LS2FCFG_BUFFER_CPU_TO_RAM 0x00000020
+#define LS2FCFG_BUFFER_PCI_TO_RAM 0x00000040
+
/* 7. IDE DMA & Copier */
#define BONITO_CONFIGBASE 0x000
@@ -521,4 +527,5 @@
#define BONITO_DIRECT_MASK(imask) ((imask) & ((1L << BONITO_NDIRECT) - 1))
#define BONITO_ISA_MASK(imask) ((imask) >> BONITO_NDIRECT)
+
#endif /* _BONITO_H_ */
Home |
Main Index |
Thread Index |
Old Index