Commit 473dfbfa authored by Amitkumar Karwar's avatar Amitkumar Karwar Committed by Kalle Valo

mwifiex: Change default firmware for PCIe8997 chipset

PCIe-USB8997 variant is being used in the product. Let's change default
firmware from PCIe-UART to PCIe-USB. So by default PCIe-USB firmware would
be downloaded if version register doesn't give any information.
Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent c18b104d
...@@ -2841,20 +2841,20 @@ static void mwifiex_pcie_get_fw_name(struct mwifiex_adapter *adapter) ...@@ -2841,20 +2841,20 @@ static void mwifiex_pcie_get_fw_name(struct mwifiex_adapter *adapter)
version &= 0x7; version &= 0x7;
switch (revision_id) { switch (revision_id) {
case PCIE8997_V2: case PCIE8997_V2:
if (version == CHIP_VER_PCIEUSB) if (version == CHIP_VER_PCIEUART)
strcpy(adapter->fw_name, strcpy(adapter->fw_name,
PCIEUSB8997_FW_NAME_V2); PCIEUART8997_FW_NAME_V2);
else else
strcpy(adapter->fw_name, strcpy(adapter->fw_name,
PCIEUART8997_FW_NAME_V2); PCIEUSB8997_FW_NAME_V2);
break; break;
case PCIE8997_Z: case PCIE8997_Z:
if (version == CHIP_VER_PCIEUSB) if (version == CHIP_VER_PCIEUART)
strcpy(adapter->fw_name, strcpy(adapter->fw_name,
PCIEUSB8997_FW_NAME_Z); PCIEUART8997_FW_NAME_Z);
else else
strcpy(adapter->fw_name, strcpy(adapter->fw_name,
PCIEUART8997_FW_NAME_Z); PCIEUSB8997_FW_NAME_Z);
break; break;
default: default:
strcpy(adapter->fw_name, PCIE8997_DEFAULT_FW_NAME); strcpy(adapter->fw_name, PCIE8997_DEFAULT_FW_NAME);
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#define PCIE8897_DEFAULT_FW_NAME "mrvl/pcie8897_uapsta.bin" #define PCIE8897_DEFAULT_FW_NAME "mrvl/pcie8897_uapsta.bin"
#define PCIE8897_A0_FW_NAME "mrvl/pcie8897_uapsta_a0.bin" #define PCIE8897_A0_FW_NAME "mrvl/pcie8897_uapsta_a0.bin"
#define PCIE8897_B0_FW_NAME "mrvl/pcie8897_uapsta.bin" #define PCIE8897_B0_FW_NAME "mrvl/pcie8897_uapsta.bin"
#define PCIE8997_DEFAULT_FW_NAME "mrvl/pcieuart8997_combo_v2.bin" #define PCIE8997_DEFAULT_FW_NAME "mrvl/pcieusb8997_combo_v2.bin"
#define PCIEUART8997_FW_NAME_Z "mrvl/pcieuart8997_combo.bin" #define PCIEUART8997_FW_NAME_Z "mrvl/pcieuart8997_combo.bin"
#define PCIEUART8997_FW_NAME_V2 "mrvl/pcieuart8997_combo_v2.bin" #define PCIEUART8997_FW_NAME_V2 "mrvl/pcieuart8997_combo_v2.bin"
#define PCIEUSB8997_FW_NAME_Z "mrvl/pcieusb8997_combo.bin" #define PCIEUSB8997_FW_NAME_Z "mrvl/pcieusb8997_combo.bin"
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
#define PCIE8897_B0 0x1200 #define PCIE8897_B0 0x1200
#define PCIE8997_Z 0x0 #define PCIE8997_Z 0x0
#define PCIE8997_V2 0x471 #define PCIE8997_V2 0x471
#define CHIP_VER_PCIEUSB 0x2 #define CHIP_VER_PCIEUART 0x3
/* Constants for Buffer Descriptor (BD) rings */ /* Constants for Buffer Descriptor (BD) rings */
#define MWIFIEX_MAX_TXRX_BD 0x20 #define MWIFIEX_MAX_TXRX_BD 0x20
......
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