summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2010-06-21 19:31:13 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2010-06-21 19:31:13 +0000
commitf1541690ad00cd05bc3f2b05d5e3de36272e6607 (patch)
treed208f7a2345e20da6679433bb4db92ca31b4fcc6
parentb93989c68b950f293fb7214a7584c903c9fcbb0c (diff)
no delay is necessary on the AR9003 after writing an analog register.
-rw-r--r--sys/dev/ic/ar9003.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/ic/ar9003.c b/sys/dev/ic/ar9003.c
index 35b756def54..18eef5be06a 100644
--- a/sys/dev/ic/ar9003.c
+++ b/sys/dev/ic/ar9003.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar9003.c,v 1.12 2010/06/05 18:43:57 damien Exp $ */
+/* $OpenBSD: ar9003.c,v 1.13 2010/06/21 19:31:12 damien Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -2315,8 +2315,6 @@ ar9003_hw_init(struct athn_softc *sc, struct ieee80211_channel *c,
DPRINTFN(4, ("writing pre and core init vals\n"));
for (i = 0; i < ini->ncmregs; i++) {
AR_WRITE(sc, X(ini->cmregs[i]), ini->cmvals[i]);
- if (AR_IS_ANALOG_REG(X(ini->cmregs[i])))
- DELAY(100);
if ((i & 0x1f) == 0)
DELAY(1);
}
@@ -2342,8 +2340,6 @@ ar9003_hw_init(struct athn_softc *sc, struct ieee80211_channel *c,
DPRINTFN(4, ("writing post init vals\n"));
for (i = 0; i < ini->nregs; i++) {
AR_WRITE(sc, X(ini->regs[i]), pvals[i]);
- if (AR_IS_ANALOG_REG(X(ini->regs[i])))
- DELAY(100);
if ((i & 0x1f) == 0)
DELAY(1);
}
@@ -2365,8 +2361,6 @@ ar9003_hw_init(struct athn_softc *sc, struct ieee80211_channel *c,
DPRINTFN(4, ("writing fast pll clock init vals\n"));
for (i = 0; i < ini->nfastregs; i++) {
AR_WRITE(sc, X(ini->fastregs[i]), pvals[i]);
- if (AR_IS_ANALOG_REG(X(ini->fastregs[i])))
- DELAY(100);
if ((i & 0x1f) == 0)
DELAY(1);
}