From 2d678980d7caeee986d1cb5b289a2daefdc20fe0 Mon Sep 17 00:00:00 2001 From: mglocker Date: Mon, 20 Jun 2016 13:42:42 +0000 Subject: I2C driver for the Maxim DS1307 Real Time Clock chip. The chip has been found on a Sun Fire V210 as a second RTC hooked up to the SMU. Setting the time there has the advantage that it remains after a boot since the internal V210 RTC will be synced by the DS1307 at boot time. Not linked to sparc64 yet since it will overwrite the internal RTC handler. ok deraadt --- sys/dev/i2c/files.i2c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/dev/i2c/files.i2c') diff --git a/sys/dev/i2c/files.i2c b/sys/dev/i2c/files.i2c index afc58215e4c..c9103c79f1d 100644 --- a/sys/dev/i2c/files.i2c +++ b/sys/dev/i2c/files.i2c @@ -1,4 +1,4 @@ -# $OpenBSD: files.i2c,v 1.55 2016/05/16 22:05:36 kettenis Exp $ +# $OpenBSD: files.i2c,v 1.56 2016/06/20 13:42:42 mglocker Exp $ # $NetBSD: files.i2c,v 1.3 2003/10/20 16:24:10 briggs Exp $ define i2c {[addr = -1], [size = -1]} @@ -74,6 +74,11 @@ device pcagpio: gpiobus attach pcagpio at i2c file dev/i2c/pca9554.c pcagpio +# Maxim DS1307 +device maxrtc +attach maxrtc at i2c +file dev/i2c/ds1307.c maxrtc + # Maxim DS1631 device maxds attach maxds at i2c -- cgit v1.2.3-59-g8ed1b