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-7@freebsd.org
Subject:   svn commit: r224347 - stable/7/sys/dev/mk48txx
Message-ID:  <201107251731.p6PHV9tc067641@svn.freebsd.org>

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

Log:
  MFC: r221957
  
  Add support for MK48T37.

Modified:
  stable/7/sys/dev/mk48txx/mk48txx.c
  stable/7/sys/dev/mk48txx/mk48txxreg.h
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/dev/mk48txx/mk48txx.c
==============================================================================
--- stable/7/sys/dev/mk48txx/mk48txx.c	Mon Jul 25 17:31:09 2011	(r224346)
+++ stable/7/sys/dev/mk48txx/mk48txx.c	Mon Jul 25 17:31:09 2011	(r224347)
@@ -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/7/sys/dev/mk48txx/mk48txxreg.h
==============================================================================
--- stable/7/sys/dev/mk48txx/mk48txxreg.h	Mon Jul 25 17:31:09 2011	(r224346)
+++ stable/7/sys/dev/mk48txx/mk48txxreg.h	Mon Jul 25 17:31:09 2011	(r224347)
@@ -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.p6PHV9tc067641>