From f4aa307936fa87d76580027c0c246301d8c56f96 Mon Sep 17 00:00:00 2001 From: Patrick Wildt Date: Wed, 30 Sep 2020 22:23:42 +0000 Subject: Move mfokclock(4) from loongson to sys/dev/i2c so that it be used by more platforms than just loongson. Rename it to mfokrtc(4) for consistency with other RTC drivers. Make it match on st,m41t83, since that was the chip for which the driver was written for. More compatible strings can be added for each chip of the series verified to behave the same. Discussed with kettenis@ Compile tested on loongson by kn@ Tested on loongson by and ok visa@ --- share/man/man4/Makefile | 6 +++--- share/man/man4/man4.loongson/Makefile | 4 ++-- share/man/man4/man4.loongson/mfokclock.4 | 31 ------------------------------- share/man/man4/mfokrtc.4 | 31 +++++++++++++++++++++++++++++++ 4 files changed, 36 insertions(+), 36 deletions(-) delete mode 100644 share/man/man4/man4.loongson/mfokclock.4 create mode 100644 share/man/man4/mfokrtc.4 (limited to 'share/man') diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile index 4a3df6b33b1..08b69a1f981 100644 --- a/share/man/man4/Makefile +++ b/share/man/man4/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.783 2020/09/15 18:38:51 mglocker Exp $ +# $OpenBSD: Makefile,v 1.784 2020/09/30 22:23:40 patrick Exp $ MAN= aac.4 abcrtc.4 abl.4 ac97.4 acphy.4 acrtc.4 \ acpi.4 acpiac.4 acpials.4 acpiasus.4 acpibat.4 \ @@ -47,8 +47,8 @@ MAN= aac.4 abcrtc.4 abl.4 ac97.4 acphy.4 acrtc.4 \ kate.4 kcov.4 km.4 ksmn.4 ksyms.4 kubsan.4 kue.4 lc.4 lge.4 lii.4 \ lisa.4 lm.4 lmenv.4 lmn.4 lmtemp.4 lo.4 lpt.4 lxtphy.4 luphy.4 \ maestro.4 mainbus.4 malo.4 maxds.4 maxrtc.4 maxtmp.4 mbg.4 \ - mcprtc.4 mcx.4 midi.4 mii.4 mfi.4 \ - mfii.4 mlphy.4 moscom.4 mos.4 mpe.4 mpath.4 mpi.4 mpii.4 \ + mcprtc.4 mcx.4 midi.4 mii.4 mfi.4 mfii.4 mfokrtc.4 \ + mlphy.4 moscom.4 mos.4 mpe.4 mpath.4 mpi.4 mpii.4 \ mpip.4 mpu.4 msk.4 mpw.4 msts.4 mtd.4 mtdphy.4 mtio.4 mue.4 \ multicast.4 mvclock.4 mvdog.4 mvgicp.4 mvgpio.4 mvicu.4 mviic.4 \ mvneta.4 mvpinctrl.4 mvpp.4 mvrng.4 mvrtc.4 mvspi.4 mvtemp.4 mvuart.4 \ diff --git a/share/man/man4/man4.loongson/Makefile b/share/man/man4/man4.loongson/Makefile index 6e133c04f62..96b011f4f2d 100644 --- a/share/man/man4/man4.loongson/Makefile +++ b/share/man/man4/man4.loongson/Makefile @@ -1,7 +1,7 @@ -# $OpenBSD: Makefile,v 1.10 2016/11/17 15:06:16 visa Exp $ +# $OpenBSD: Makefile,v 1.11 2020/09/30 22:23:40 patrick Exp $ MAN= apm.4 autoconf.4 bonito.4 gdiumiic.4 glxclk.4 glxpcib.4 htb.4 intro.4 \ - leioc.4 mem.4 mfokclock.4 sisfb.4 smfb.4 stsec.4 voyager.4 ykbec.4 + leioc.4 mem.4 sisfb.4 smfb.4 stsec.4 voyager.4 ykbec.4 MANSUBDIR=loongson .include diff --git a/share/man/man4/man4.loongson/mfokclock.4 b/share/man/man4/man4.loongson/mfokclock.4 deleted file mode 100644 index 69d122dfdf2..00000000000 --- a/share/man/man4/man4.loongson/mfokclock.4 +++ /dev/null @@ -1,31 +0,0 @@ -.\" $OpenBSD: mfokclock.4,v 1.2 2018/06/18 06:06:52 jmc Exp $ -.\" -.\" Copyright (c) 2010 Miodrag Vallat. -.\" -.\" Permission to use, copy, modify, and distribute this software for any -.\" purpose with or without fee is hereby granted, provided that the above -.\" copyright notice and this permission notice appear in all copies. -.\" -.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -.\" -.Dd $Mdocdate: June 18 2018 $ -.Dt MFOKCLOCK 4 loongson -.Os -.Sh NAME -.Nm mfokclock -.Nd M41T8x real-time clock -.Sh SYNOPSIS -.Cd "mfokclock* at iic? addr 0x68" -.Sh DESCRIPTION -The -.Nm -driver supports two-wire real-time clock chips of the M41T8x family. -.Sh SEE ALSO -.Xr iic 4 , -.Xr intro 4 diff --git a/share/man/man4/mfokrtc.4 b/share/man/man4/mfokrtc.4 new file mode 100644 index 00000000000..777d2902d7d --- /dev/null +++ b/share/man/man4/mfokrtc.4 @@ -0,0 +1,31 @@ +.\" $OpenBSD: mfokrtc.4,v 1.1 2020/09/30 22:23:40 patrick Exp $ +.\" +.\" Copyright (c) 2010 Miodrag Vallat. +.\" +.\" Permission to use, copy, modify, and distribute this software for any +.\" purpose with or without fee is hereby granted, provided that the above +.\" copyright notice and this permission notice appear in all copies. +.\" +.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +.\" +.Dd $Mdocdate: September 30 2020 $ +.Dt MFOKRTC 4 +.Os +.Sh NAME +.Nm mfokrtc +.Nd M41T8x real-time clock +.Sh SYNOPSIS +.Cd "mfokrtc* at iic? addr 0x68" +.Sh DESCRIPTION +The +.Nm +driver supports two-wire real-time clock chips of the M41T8x family. +.Sh SEE ALSO +.Xr iic 4 , +.Xr intro 4 -- cgit v1.2.3