diff options
author | Kenji Aoyama <aoyama@cvs.openbsd.org> | 2021-06-06 10:48:31 +0000 |
---|---|---|
committer | Kenji Aoyama <aoyama@cvs.openbsd.org> | 2021-06-06 10:48:31 +0000 |
commit | d3aed0fdbfa61a7aba00f7b2af258629da3e2664 (patch) | |
tree | 547772b3427db865430e3bdfc30b25869357a941 /sys/dev/sdmmc | |
parent | f7f39d17c836fd98d7f0aec28e1ff02d39fde5c1 (diff) |
Add firmware selection for BRCM_CC_43241_CHIP_ID (0x4324).
According to NetBSD, this chip uses one of three firmwares depending
on its revision, but all of them are already included in the
bwfm-firmware package, so we can load one of them.
ok patrick@ sthen@
Diffstat (limited to 'sys/dev/sdmmc')
-rw-r--r-- | sys/dev/sdmmc/if_bwfm_sdio.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/sdmmc/if_bwfm_sdio.c b/sys/dev/sdmmc/if_bwfm_sdio.c index 694fbbc0579..be86f50a752 100644 --- a/sys/dev/sdmmc/if_bwfm_sdio.c +++ b/sys/dev/sdmmc/if_bwfm_sdio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bwfm_sdio.c,v 1.39 2021/02/26 00:07:41 patrick Exp $ */ +/* $OpenBSD: if_bwfm_sdio.c,v 1.40 2021/06/06 10:48:30 aoyama Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2016,2017 Patrick Wildt <patrick@blueri.se> @@ -360,6 +360,14 @@ bwfm_sdio_preinit(struct bwfm_softc *bwfm) switch (bwfm->sc_chip.ch_chip) { + case BRCM_CC_43241_CHIP_ID: + if (bwfm->sc_chip.ch_chiprev <= 4) + chip = "43241b0"; + else if (bwfm->sc_chip.ch_chiprev == 5) + chip = "43241b4"; + else + chip = "43241b5"; + break; case BRCM_CC_4330_CHIP_ID: chip = "4330"; break; |