1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-29 16:44:03 +00:00

Enable 8051 before downloading firmware.

Tested by:	Carlos Jacobo Puga Medina <cpm at fbsd dot es>
This commit is contained in:
Kevin Lo 2014-07-10 09:42:34 +00:00
parent 32487a8973
commit b11ce478cf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268487

View File

@ -2281,9 +2281,6 @@ urtwn_fw_reset(struct urtwn_softc *sc)
}
/* Force 8051 reset. */
urtwn_write_2(sc, R92C_SYS_FUNC_EN, reg & ~R92C_SYS_FUNC_EN_CPUEN);
urtwn_write_2(sc, R92C_SYS_FUNC_EN,
urtwn_read_2(sc, R92C_SYS_FUNC_EN) |
R92C_SYS_FUNC_EN_CPUEN);
}
static void
@ -2383,6 +2380,11 @@ urtwn_load_firmware(struct urtwn_softc *sc)
urtwn_write_1(sc, R92C_MCUFWDL, 0);
}
if (!(sc->chip & URTWN_CHIP_88E)) {
urtwn_write_2(sc, R92C_SYS_FUNC_EN,
urtwn_read_2(sc, R92C_SYS_FUNC_EN) |
R92C_SYS_FUNC_EN_CPUEN);
}
urtwn_write_1(sc, R92C_MCUFWDL,
urtwn_read_1(sc, R92C_MCUFWDL) | R92C_MCUFWDL_EN);
urtwn_write_1(sc, R92C_MCUFWDL + 2,