1 .\" Copyright (c) 2003 Poul-Henning Kamp <phk@FreeBSD.org>
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd AMD Elan 520 CPU support
34 .Cd "options CPU_ELAN"
35 .Cd "options CPU_ELAN_PPS"
36 .Cd "options CPU_ELAN_XTAL"
39 .Va machdep.elan_gpio_config
43 .Cd "options CPU_SOEKRIS"
46 .Cd "options CPU_ELAN"
47 enables support for the AMD Elan 520 CPU.
51 exports the MMCR register bank to userland
57 timer will be adjusted to the slightly unorthodox
58 frequency 1189161 Hz (32768 * 45 * 25 / 31) employed by the Elan.
62 is implemented using the general purpose timer 2,
63 but it will not be usable unless HZ is configured at 150 or higher.
64 This timecounter is much better than the
66 timecounter and should be
70 .Va machdep.elan_gpio_config
73 enables configuration of the GPIO pins of the CPU.
74 The string must be exactly 32 characters long.
77 means the GPIO is unavailable.
80 (lower-case ell) configures a
90 means no configuration for this GPIO.
101 .Cd "options CPU_ELAN_PPS" .
104 .Cd "options CPU_ELAN_XTAL"
106 .Va machdep.elan_freq
109 can be used to set the CPU clock crystal frequency in Hz.
110 The default is 33333333 Hz.
113 .Cd "options CPU_ELAN_PPS"
114 enables precision timestamping using the RFC2783 PPS-API via the
117 The resolution will be approximately 125 nsec
118 and the precision \(+- 125 nsec.
120 .Dq "4 / CPU clock crystal frequency" . )
122 The input signal must be connected to the TMR1IN pin and
124 The GPIO pin must be configured with a
127 .Va machdep.elan_gpio_config .
129 In addition, one GPIO pin can be configured with either
134 (active high) to become a
136 output of the input signal.
137 Please notice that this signal is not suitable for calibration.
140 .Cd "options CPU_SOEKRIS"
141 is given, the support will additionally be tailored to the
142 Soekris Engineering 45xx series of embedded computers.
145 led will be configured (as
147 and the GPIO pins which are not
148 available will be disabled.
155 code first appeared in
158 .An "Poul-Henning Kamp" Aq phk@FreeBSD.org