Commit dedd4528 authored by Ettore Chimenti's avatar Ettore Chimenti
Browse files

c61: firmware: add firwmare for 1MW CYR43455



Firmware and BT patch for combo wifi/bluetooth
Signed-off-by: Ettore Chimenti's avatarEttore Chimenti <ettore.chimenti@seco.com>
parent 40857cac
......@@ -51,3 +51,6 @@ LOADADDR = ""
UBOOT_SUFFIX = "bin"
UBOOT_MAKE_TARGET = ""
IMX_BOOT_SEEK = "33"
MACHINE_EXTRA_RRECOMMENDS_append = " linux-firmware-bcm43455 linux-firmware-bluetooth-bcm43455 "
SUMMARY = "Bluetooth firmware for BCM43455"
HOMEPAGE = "https://github.com/murata-wireless/cyw-bt-patch"
LICENSE = "Firmware-cypress-bcm43455"
LIC_FILES_CHKSUM = "file://LICENCE.cypress;md5=cbc5f665d04f741f1e006d2096236ba7"
NO_GENERIC_LICENSE[Firmware-cypress-bcm43455] = "LICENCE.cypress"
inherit allarch
SRC_URI = "git://github.com/murata-wireless/cyw-bt-patch;protocol=https"
SRCREV = "580abcb5b5f06c9ccfb1438b1f52d8bccdff57e6"
S = "${WORKDIR}/git"
PACKAGES =+ "${PN}-cypress-license"
do_install() {
install -d ${D}${nonarch_base_libdir}/firmware/brcm/
install -m 644 ${S}/BCM4345C0_003.001.025.0144.0266.1MW.hcd ${D}${nonarch_base_libdir}/firmware/brcm/BCM4345C0.hcd
install -m 644 ${S}/LICENCE.cypress ${D}${nonarch_base_libdir}/firmware/LICENCE.cypress_bcm43455
}
LICENSE_${PN} = "Firmware-cypress-bcm43455"
LICENSE_${PN}-cypress-license = "Firmware-cypress-bcm43455"
FILES_${PN}-cypress-license = "${nonarch_base_libdir}/firmware/LICENCE.cypress_bcm43455"
FILES_${PN} = "${nonarch_base_libdir}/firmware/"
RDEPENDS_${PN} += "${PN}-cypress-license"
# Firmware files are generally not ran on the CPU, so they can be
# allarch despite being architecture specific
INSANE_SKIP = "arch"
# Add calibration file
SRC_URI_append_seco-imx8mm-c61 = " \
git://github.com/murata-wireless/cyw-fmac-fw.git;protocol=https;nobranch=1;name=murata-fw;destsuffix=murata-fw \
git://github.com/murata-wireless/cyw-fmac-nvram.git;protocol=https;nobranch=1;name=murata-nvram;destsuffix=murata-nvram \
"
SRCREV_murata-fw = "ba140e42c3320262fc52e185c3af93eeb10117df"
SRCREV_murata-nvram = "8710e74e79470f666912c3ccadf1e354d6fb209c"
SRCREV_FORMAT = "linux-firmware-murata"
do_install_append_seco-imx8mm-c61() {
#take newest murata firmware
install -m 0644 ${WORKDIR}/murata-fw/cyfmac43455-sdio.bin ${D}${nonarch_base_libdir}/firmware/brcm/brcmfmac43455-sdio.bin
install -m 0644 ${WORKDIR}/murata-fw/cyfmac43455-sdio.1MW.clm_blob ${D}${nonarch_base_libdir}/firmware/brcm/brcmfmac43455-sdio.clm_blob
install -m 0644 ${WORKDIR}/murata-nvram/cyfmac43455-sdio.1MW.txt ${D}${nonarch_base_libdir}/firmware/brcm/brcmfmac43455-sdio.txt
}
FILES_${PN}-bcm43455_append_seco-imx8mm-c61 = " \
${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.clm_blob \
${nonarch_base_libdir}/firmware/brcm/brcmfmac43455-sdio.txt \
${nonarch_base_libdir}/firmware/brcm/brcmfmac43455-sdio.bin \
"
RDEPENDS_${PN}-bcm43455_remove_seco-imx8mm-c61 = " ${PN}-cypress-license "
RRECOMMENDS_${PN}-bcm43455_append_seco-imx8mm-c61 += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'wifi-suspend', '', d)}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment