summaryrefslogtreecommitdiff
path: root/sys/dev/ic/rt2860.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2010-04-05 19:00:51 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2010-04-05 19:00:51 +0000
commitf72eaec21ea2ca0c18a2c9f8b314352921170f3c (patch)
treea56fe2ce03b24bac2ec189532bf9bc29985bd7f9 /sys/dev/ic/rt2860.c
parent949a5e50bbb2b10122c0e2b8aefaa6d2bfd5deef (diff)
fix regression on RT2860C introduced in previous commit.
Diffstat (limited to 'sys/dev/ic/rt2860.c')
-rw-r--r--sys/dev/ic/rt2860.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/ic/rt2860.c b/sys/dev/ic/rt2860.c
index d439d2d293e..f3ea8430450 100644
--- a/sys/dev/ic/rt2860.c
+++ b/sys/dev/ic/rt2860.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rt2860.c,v 1.44 2010/04/05 14:14:02 damien Exp $ */
+/* $OpenBSD: rt2860.c,v 1.45 2010/04/05 19:00:50 damien Exp $ */
/*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -3039,8 +3039,11 @@ rt2860_bbp_init(struct rt2860_softc *sc)
if (sc->mac_ver == 0x2860 && sc->mac_rev != 0x0101)
rt2860_mcu_bbp_write(sc, 84, 0x19);
- /* fix BBP69 and BBP73 for RT2860C */
- if (sc->mac_ver == 0x2860 && sc->mac_rev != 0x0100) {
+ if (sc->mac_ver >= 0x3090) {
+ rt2860_mcu_bbp_write(sc, 79, 0x13);
+ rt2860_mcu_bbp_write(sc, 80, 0x05);
+ rt2860_mcu_bbp_write(sc, 81, 0x33);
+ } else if (sc->mac_ver == 0x2860 && sc->mac_rev == 0x0100) {
rt2860_mcu_bbp_write(sc, 69, 0x16);
rt2860_mcu_bbp_write(sc, 73, 0x12);
}