linux-firmware: use upstream firmware for cypress-firmware-4339-sdio
authorLech Perczak <lech.perczak@gmail.com>
Thu, 28 Apr 2022 20:59:03 +0000 (22:59 +0200)
committerPiotr Dymacz <pepe2k@gmail.com>
Mon, 11 Jul 2022 12:18:40 +0000 (14:18 +0200)
Old firmware provided by 'cypress-firmware' suite is not sufficient for
AP6335 module used in PICO-PI-IMX7D board to probe successfully. Use the
upstream version from linux-firmware instead.

At the same time, drop the old firmware from 'cypress-firmware' package.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
package/firmware/cypress-firmware/Makefile
package/firmware/linux-firmware/cypress.mk [new file with mode: 0644]

index c5f41e0cb43af8cd429dc4d7d647e1ebbff47d30..769e69a97318080b786ed6e806f57e56b54f1dbd 100644 (file)
@@ -81,21 +81,6 @@ endef
 
 $(eval $(call BuildPackage,cypress-firmware-43362-sdio))
 
-# Cypress 4339 SDIO Firmware
-define Package/cypress-firmware-4339-sdio
-  $(Package/cypress-firmware-default)
-  TITLE:=CYW4339 FullMac SDIO firmware
-endef
-
-define Package/cypress-firmware-4339-sdio/install
-       $(INSTALL_DIR) $(1)/lib/firmware/brcm
-       $(INSTALL_DATA) \
-               $(PKG_BUILD_DIR)/firmware/cyfmac4339-sdio.bin \
-               $(1)/lib/firmware/brcm/brcmfmac4339-sdio.bin
-endef
-
-$(eval $(call BuildPackage,cypress-firmware-4339-sdio))
-
 # Cypress 43430 SDIO Firmware
 define Package/cypress-firmware-43430-sdio
   $(Package/cypress-firmware-default)
diff --git a/package/firmware/linux-firmware/cypress.mk b/package/firmware/linux-firmware/cypress.mk
new file mode 100644 (file)
index 0000000..2f5b66f
--- /dev/null
@@ -0,0 +1,8 @@
+Package/cypress-firmware-4339-sdio = $(call Package/firmware-default,Broadcom BCM4339 FullMac SDIO firmware)
+define Package/cypress-firmware-4339-sdio/install
+       $(INSTALL_DIR) $(1)/lib/firmware/brcm
+       $(INSTALL_DATA) \
+               $(PKG_BUILD_DIR)/cypress/cyfmac4339-sdio.bin \
+               $(1)/lib/firmware/brcm/brcmfmac4339-sdio.bin
+endef
+$(eval $(call BuildPackage,cypress-firmware-4339-sdio))