From: aoyama Date: Sun, 6 Jun 2021 10:48:30 +0000 (+0000) Subject: Add firmware selection for BRCM_CC_43241_CHIP_ID (0x4324). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3e3c1da1cc368cb04244669e3e236c02ee937806;p=openbsd 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@ --- 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 @@ -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;