From owner-freebsd-current@FreeBSD.ORG Sun Nov 23 10:40:05 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3FAF16A4CE for ; Sun, 23 Nov 2003 10:40:04 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9A0C43FE5 for ; Sun, 23 Nov 2003 10:40:03 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id hANIe1Dx009627; Sun, 23 Nov 2003 19:40:01 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: current@freebsd.org, soekris-tech@lists.soekris.com From: Poul-Henning Kamp Date: Sun, 23 Nov 2003 19:40:01 +0100 Message-ID: <9626.1069612801@critter.freebsd.dk> Subject: Patch to Elan520/Soekris 45xx support in FreeBSD-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Nov 2003 18:40:05 -0000 http://phk.freebsd.dk/patch/cpu_elan.patch http://phk.freebsd.dk/patch/CPU_ELAN.4 The major new things are: ELAN_XTAL option now called CPU_ELAN_XTAL ELAN_PPS option now called CPU_ELAN_PPS /dev/led/error for the error LED. More LEDs can be configured on the GPIO pins, for instance: sysctl machdep.elan_gpio_config="-----LLLE--lp--------LL---------" Configures active high LEDS on GPIO5,6,7,21 & 22, an active low LED on GPIO11. These will appear as devices "/dev/led/gpio5" etc. The 'p' on GPIO12 and 'E' on GPIO8 are PPS input and PPS-echo configurations (enabled by CPU_ELAN_PPS option). The led(4) interface is of course not only useful with lamps, you can use it with any sort of gadget connected to a GPIO pin. I can not guarantee that these patches will make it into FreeBSD 5.2. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.