1.\" $NetBSD: elansc.4,v 1.6 2005/10/10 20:57:43 wiz Exp $ 2.\" 3.\" Copyright (c) 2002 The NetBSD Foundation, Inc. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to The NetBSD Foundation 7.\" by Jason R. Thorpe. 8.\" 9.\" Redistribution and use in source and binary forms, with or without 10.\" modification, are permitted provided that the following conditions 11.\" are met: 12.\" 1. Redistributions of source code must retain the above copyright 13.\" notice, this list of conditions and the following disclaimer. 14.\" 2. Redistributions in binary form must reproduce the above copyright 15.\" notice, this list of conditions and the following disclaimer in the 16.\" documentation and/or other materials provided with the distribution. 17.\" 3. All advertising materials mentioning features or use of this software 18.\" must display the following acknowledgement: 19.\" This product includes software developed by the NetBSD 20.\" Foundation, Inc. and its contributors. 21.\" 4. Neither the name of The NetBSD Foundation nor the names of its 22.\" contributors may be used to endorse or promote products derived 23.\" from this software without specific prior written permission. 24.\" 25.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 26.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 27.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 28.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 29.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 30.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35.\" POSSIBILITY OF SUCH DAMAGE. 36.\" 37.Dd October 6, 2005 38.Dt ELANSC 4 i386 39.Os 40.Sh NAME 41.Nm elansc 42.Nd AMD Elan SC520 System Controller driver 43.Sh SYNOPSIS 44.Cd "elansc* at pci? dev ? function ?" 45.Cd "gpio* at elansc?" 46.Sh DESCRIPTION 47The 48.Nm 49driver supports the system controller of the AMD Elan SC520 microcontroller. 50The SC520 consists of an AMD Am5x86 processor core, integrated PCI host 51controller, and several standard on-chip devices, such as NS16550-compatible 52UARTs, real-time clock, and timers. 53.Pp 54The Elan SC520 also provides several special on-chip devices. 55The following are supported by the 56.Nm 57driver: 58.Bl -bullet 59.It 60Watchdog timer. 61The watchdog timer may be configured for a 1 62second, 2 second, 4 second, 8 second, 16 second, or 32 second 63expiration period. 64.It 65Programmable Input/Output. 66The SC520 microcontroller supports 32 programmable I/O signals (PIOs) 67that can be used on the system board to monitor signals or control devices 68that are not handled by the other functions in the SC520 microcontroller. 69These signals can be programmed to be inputs or to be driven 70.Dq high 71or 72.Dq low 73as outputs. 74Pins can be accessed through the 75.Xr gpio 4 76framework. 77The 78.Xr gpioctl 8 79program allows easy manipulation of pins from userland. 80.El 81.Sh SEE ALSO 82.Xr gpio 4 , 83.Xr gpioctl 8 , 84.Xr wdogctl 8 85.Sh HISTORY 86The 87.Nm 88device first appeared in 89.Nx 2.0 . 90PIO function support was added in 91.Ox 3.6 , 92and subsequently ported to 93.Nx 4.0 . 94.Sh AUTHORS 95The 96.Nm 97driver was written by 98.An Jason R. Thorpe Aq thorpej@NetBSD.org . 99.An Jasper Wallace 100provided the work-around for a hardware bug related to the watchdog timer 101in some steppings of the SC520 CPU. 102Support for the PIO function was added to 103.Ox 3.6 104by 105.An Alexander Yurchenko Aq grange@openbsd.org 106and was ported to 107.Nx 108by 109.An Jeff Rizzo Aq riz@NetBSD.org . 110