]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/man/man4/man4.arm/imx6_snvs.4
OpenZFS: MFV 2.0-rc3-gfc5966
[FreeBSD/FreeBSD.git] / share / man / man4 / man4.arm / imx6_snvs.4
1 .\"
2 .\" Copyright (c) 2018 Ian Lepore <ian@freebsd.org>
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\"
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\"    notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\"    notice, this list of conditions and the following disclaimer in the
13 .\"    documentation and/or other materials provided with the distribution.
14 .\"
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 .\"
26 .\" $FreeBSD$
27 .\"
28 .Dd July 8, 2018
29 .Dt IMX6_SNVS 4
30 .Os
31 .Sh NAME
32 .Nm imx6_snvs
33 .Nd device driver for the NXP i.MX6 on-chip Realtime Clock
34 .Sh SYNOPSIS
35 To compile this driver into the kernel,
36 place the following line in your
37 kernel configuration file:
38 .Bd -ragged -offset indent
39 .Cd "device imx6_snvs"
40 .Ed
41 .Pp
42 Alternatively, to load the driver as a
43 module at boot time, place the following line in
44 .Xr loader.conf 5 :
45 .Bd -literal -offset indent
46 imx6_snvs_load="YES"
47 .Ed
48 .Sh DESCRIPTION
49 The
50 .Nm
51 driver provides
52 support for the i.MX6 on-chip realtime clock.
53 It provides the time of day with a resolution of approximately
54 30 microseconds.
55 .Pp
56 .Sq SNVS
57 stands for Secure Non-Volatile Storage, and refers to the subsystem
58 within the chip that (optionally) remains powered by a battery when
59 the rest of the system is powered down.
60 The on-chip realtime clock is part of that subsystem.
61 Other features of the SNVS subsystem are related to security, tamper
62 monitoring, and power control; the
63 .Nm
64 driver does not currently support those features.
65 .Pp
66 Many i.MX6 systems do not use a battery to provide power to the SNVS
67 due to its relatively high power draw.  In such systems, this driver
68 is able to provide a very accurate time following a reboot, but cannot
69 provide time at all if the power is cycled.  If the system provides an
70 i2c or other type of alternate realtime clock with lower resolution,
71 there is value in configuring both clock drivers.
72 Doing so allows SNVS to provide accurate time after a reboot, while the
73 external clock provides approximate time after power cycling.
74 .Sh HISTORY
75 The
76 .Nm
77 driver first appeared in
78 .Fx 12.0 .