Date: Mon, 26 Dec 2011 07:48:29 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r228892 - head/sys/dev/ath Message-ID: <201112260748.pBQ7mTQP095644@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Mon Dec 26 07:48:29 2011 New Revision: 228892 URL: http://svn.freebsd.org/changeset/base/228892 Log: Since the only thing with a mux is the AR5416 and later, and we're now doing split software/hardware LED configuration, we can now simply treat "softled" as an "output" mux type. This works fine on this DWA-552. Previous generation (pre-11n NICs) don't have a GPIO mux - only input/output configuration - so they ignore this field. Modified: head/sys/dev/ath/if_ath_led.c Modified: head/sys/dev/ath/if_ath_led.c ============================================================================== --- head/sys/dev/ath/if_ath_led.c Mon Dec 26 07:47:05 2011 (r228891) +++ head/sys/dev/ath/if_ath_led.c Mon Dec 26 07:48:29 2011 (r228892) @@ -125,7 +125,7 @@ ath_led_config(struct ath_softc *sc) /* Software LED blinking - GPIO controlled LED */ if (sc->sc_softled) { ath_hal_gpioCfgOutput(sc->sc_ah, sc->sc_ledpin, - HAL_GPIO_MUX_MAC_NETWORK_LED); + HAL_GPIO_MUX_OUTPUT); ath_hal_gpioset(sc->sc_ah, sc->sc_ledpin, !sc->sc_ledon); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112260748.pBQ7mTQP095644>