From: mglocker Date: Tue, 18 Oct 2022 16:07:59 +0000 (+0000) Subject: Add support for the DS1339 RTC, like found on the PiJuice. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a89e3c5aa499575d666581f0dd125852ac6a7a30;p=openbsd Add support for the DS1339 RTC, like found on the PiJuice. From Michal Mynar -- Thanks! ok deraadt@ --- diff --git a/sys/dev/i2c/ds1307.c b/sys/dev/i2c/ds1307.c index 0e4cec7a808..912548ab52e 100644 --- a/sys/dev/i2c/ds1307.c +++ b/sys/dev/i2c/ds1307.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ds1307.c,v 1.6 2022/10/15 18:22:53 kettenis Exp $ */ +/* $OpenBSD: ds1307.c,v 1.7 2022/10/18 16:07:59 mglocker Exp $ */ /* * Copyright (c) 2016 Marcus Glocker @@ -93,7 +93,9 @@ maxrtc_match(struct device *parent, void *v, void *arg) struct i2c_attach_args *ia = arg; if (strcmp(ia->ia_name, "dallas,ds1307") == 0 || - strcmp(ia->ia_name, "ds1307") == 0) + strcmp(ia->ia_name, "ds1307") == 0 || + strcmp(ia->ia_name, "dallas,ds1339") == 0 || + strcmp(ia->ia_name, "ds1339") == 0) return (1); return (0);