summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/mk48txx.c5
-rw-r--r--sys/dev/ic/mk48txxreg.h7
2 files changed, 8 insertions, 4 deletions
diff --git a/sys/dev/ic/mk48txx.c b/sys/dev/ic/mk48txx.c
index 0ff30148063..6ce4f1270a3 100644
--- a/sys/dev/ic/mk48txx.c
+++ b/sys/dev/ic/mk48txx.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mk48txx.c,v 1.8 2001/11/13 13:14:41 lukem Exp $ */
+/* $NetBSD: mk48txx.c,v 1.9 2001/12/06 18:54:23 kleink Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mk48txx.c,v 1.8 2001/11/13 13:14:41 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mk48txx.c,v 1.9 2001/12/06 18:54:23 kleink Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@@ -77,6 +77,7 @@ struct {
} mk48txx_models[] = {
{ "mk48t02", MK48T02_CLKSZ, MK48T02_CLKOFF, 0 },
{ "mk48t08", MK48T08_CLKSZ, MK48T08_CLKOFF, 0 },
+ { "mk48t18", MK48T18_CLKSZ, MK48T18_CLKOFF, 0 },
{ "mk48t59", MK48T59_CLKSZ, MK48T59_CLKOFF, MK48TXX_EXT_REGISTERS },
};
diff --git a/sys/dev/ic/mk48txxreg.h b/sys/dev/ic/mk48txxreg.h
index 2b0e52a44a3..48bd90fcace 100644
--- a/sys/dev/ic/mk48txxreg.h
+++ b/sys/dev/ic/mk48txxreg.h
@@ -1,4 +1,4 @@
-/* $NetBSD: mk48txxreg.h,v 1.4 2000/11/11 11:59:42 pk Exp $ */
+/* $NetBSD: mk48txxreg.h,v 1.5 2001/12/06 18:54:23 kleink Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -41,7 +41,7 @@
* The MK48T02 has 2KB of non-volatile memory. The time-of-day clock
* registers start at offset 0x7f8.
*
- * The MK48T08 has 8KB of non-volatile memory
+ * The MK48T08 and MK48T18 have 8KB of non-volatile memory
*
* The MK48T59 also has 8KB of non-volatile memory but in addition it
* has a battery low detection bit and a power supply wakeup alarm for
@@ -78,6 +78,9 @@
#define MK48T08_CLKSZ 8192
#define MK48T08_CLKOFF 0x1ff0
+#define MK48T18_CLKSZ 8192
+#define MK48T18_CLKOFF 0x1ff0
+
#define MK48T59_CLKSZ 8192
#define MK48T59_CLKOFF 0x1ff0