Recognize the MK48T18 as well (differs from the MK48T08 only in packaging

options and voltages).
This commit is contained in:
kleink 2001-12-06 18:54:23 +00:00
parent 3ec17be693
commit bc1f5761e3
2 changed files with 8 additions and 4 deletions

View File

@ -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 },
};

View File

@ -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