Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jul 2011 17:31:09 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r224346 - stable/8/sys/dev/mk48txx
Message-ID:  <201107251731.p6PHV9me067633@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Mon Jul 25 17:31:09 2011
New Revision: 224346
URL: http://svn.freebsd.org/changeset/base/224346

Log:
  MFC: r221957
  
  Add support for MK48T37.

Modified:
  stable/8/sys/dev/mk48txx/mk48txx.c
  stable/8/sys/dev/mk48txx/mk48txxreg.h
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/geom/label/   (props changed)

Modified: stable/8/sys/dev/mk48txx/mk48txx.c
==============================================================================
--- stable/8/sys/dev/mk48txx/mk48txx.c	Mon Jul 25 17:20:36 2011	(r224345)
+++ stable/8/sys/dev/mk48txx/mk48txx.c	Mon Jul 25 17:31:09 2011	(r224346)
@@ -33,7 +33,8 @@
 __FBSDID("$FreeBSD$");
 
 /*
- * Mostek MK48T02, MK48T08, MK48T18, MK48T59 time-of-day chip subroutines
+ * Mostek MK48T02, MK48T08, MK48T18, MK48T37 and MK48T59 time-of-day chip
+ * subroutines
  */
 
 #include <sys/param.h>
@@ -67,6 +68,7 @@ static const struct {
 	{ "mk48t02", MK48T02_CLKSZ, MK48T02_CLKOFF, 0 },
 	{ "mk48t08", MK48T08_CLKSZ, MK48T08_CLKOFF, 0 },
 	{ "mk48t18", MK48T18_CLKSZ, MK48T18_CLKOFF, 0 },
+	{ "mk48t37", MK48T37_CLKSZ, MK48T37_CLKOFF, MK48TXX_EXT_REGISTERS },
 	{ "mk48t59", MK48T59_CLKSZ, MK48T59_CLKOFF, MK48TXX_EXT_REGISTERS },
 };
 

Modified: stable/8/sys/dev/mk48txx/mk48txxreg.h
==============================================================================
--- stable/8/sys/dev/mk48txx/mk48txxreg.h	Mon Jul 25 17:20:36 2011	(r224345)
+++ stable/8/sys/dev/mk48txx/mk48txxreg.h	Mon Jul 25 17:31:09 2011	(r224346)
@@ -152,5 +152,8 @@
 #define	MK48T18_CLKSZ		8192
 #define	MK48T18_CLKOFF		0x1ff0
 
+#define	MK48T37_CLKSZ		32768
+#define	MK48T37_CLKOFF		0x1ff0
+
 #define	MK48T59_CLKSZ		8192
 #define	MK48T59_CLKOFF		0x1ff0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107251731.p6PHV9me067633>