diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2022-10-18 16:08:00 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2022-10-18 16:08:00 +0000 |
commit | fb140f2218e05127c265a4f42699042b8d76ca98 (patch) | |
tree | 156b3a1ce1a5bbab8edea96587ac9b40b99a01ce /sys/dev | |
parent | a6c27eb5a4bd53b21928559b6f3376b59e5e443d (diff) |
Add support for the DS1339 RTC, like found on the PiJuice.
From Michal Mynar -- Thanks!
ok deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/i2c/ds1307.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 <mglocker@openbsd.org> @@ -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); |