From bc1f5761e3b9df92fa06eb8a11c4d17aeafd0bdc Mon Sep 17 00:00:00 2001 From: kleink Date: Thu, 6 Dec 2001 18:54:23 +0000 Subject: [PATCH] Recognize the MK48T18 as well (differs from the MK48T08 only in packaging options and voltages). --- sys/dev/ic/mk48txx.c | 5 +++-- sys/dev/ic/mk48txxreg.h | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sys/dev/ic/mk48txx.c b/sys/dev/ic/mk48txx.c index 0ff301480633..6ce4f1270a35 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 -__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 #include @@ -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 2b0e52a44a38..48bd90fcace7 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