|
@@ -44,7 +44,7 @@
|
|
|
|
|
|
#define QCA6390_PATH_PREFIX "qca6390/"
|
|
|
#define QCA6490_PATH_PREFIX "qca6490/"
|
|
|
-#define WCN7850_PATH_PREFIX "wcn7850/"
|
|
|
+#define KIWI_PATH_PREFIX "kiwi/"
|
|
|
#define DEFAULT_PHY_M3_FILE_NAME "m3.bin"
|
|
|
#define DEFAULT_PHY_UCODE_FILE_NAME "phy_ucode.elf"
|
|
|
#define DEFAULT_FW_FILE_NAME "amss.bin"
|
|
@@ -1449,7 +1449,7 @@ int cnss_pci_recover_link_down(struct cnss_pci_data *pci_priv)
|
|
|
switch (pci_priv->device_id) {
|
|
|
case QCA6390_DEVICE_ID:
|
|
|
case QCA6490_DEVICE_ID:
|
|
|
- case WCN7850_DEVICE_ID:
|
|
|
+ case KIWI_DEVICE_ID:
|
|
|
break;
|
|
|
default:
|
|
|
return -EOPNOTSUPP;
|
|
@@ -1686,11 +1686,11 @@ static void cnss_pci_dump_bl_sram_mem(struct cnss_pci_data *pci_priv)
|
|
|
pbl_log_max_size = QCA6490_DEBUG_PBL_LOG_SRAM_MAX_SIZE;
|
|
|
sbl_log_max_size = QCA6490_DEBUG_SBL_LOG_SRAM_MAX_SIZE;
|
|
|
break;
|
|
|
- case WCN7850_DEVICE_ID:
|
|
|
- pbl_bootstrap_status_reg = WCN7850_PBL_BOOTSTRAP_STATUS;
|
|
|
- pbl_log_sram_start = WCN7850_DEBUG_PBL_LOG_SRAM_START;
|
|
|
- pbl_log_max_size = WCN7850_DEBUG_PBL_LOG_SRAM_MAX_SIZE;
|
|
|
- sbl_log_max_size = WCN7850_DEBUG_SBL_LOG_SRAM_MAX_SIZE;
|
|
|
+ case KIWI_DEVICE_ID:
|
|
|
+ pbl_bootstrap_status_reg = KIWI_PBL_BOOTSTRAP_STATUS;
|
|
|
+ pbl_log_sram_start = KIWI_DEBUG_PBL_LOG_SRAM_START;
|
|
|
+ pbl_log_max_size = KIWI_DEBUG_PBL_LOG_SRAM_MAX_SIZE;
|
|
|
+ sbl_log_max_size = KIWI_DEBUG_SBL_LOG_SRAM_MAX_SIZE;
|
|
|
default:
|
|
|
return;
|
|
|
}
|
|
@@ -2921,7 +2921,7 @@ int cnss_pci_dev_powerup(struct cnss_pci_data *pci_priv)
|
|
|
case QCA6290_DEVICE_ID:
|
|
|
case QCA6390_DEVICE_ID:
|
|
|
case QCA6490_DEVICE_ID:
|
|
|
- case WCN7850_DEVICE_ID:
|
|
|
+ case KIWI_DEVICE_ID:
|
|
|
ret = cnss_qca6290_powerup(pci_priv);
|
|
|
break;
|
|
|
default:
|
|
@@ -2949,7 +2949,7 @@ int cnss_pci_dev_shutdown(struct cnss_pci_data *pci_priv)
|
|
|
case QCA6290_DEVICE_ID:
|
|
|
case QCA6390_DEVICE_ID:
|
|
|
case QCA6490_DEVICE_ID:
|
|
|
- case WCN7850_DEVICE_ID:
|
|
|
+ case KIWI_DEVICE_ID:
|
|
|
ret = cnss_qca6290_shutdown(pci_priv);
|
|
|
break;
|
|
|
default:
|
|
@@ -2977,7 +2977,7 @@ int cnss_pci_dev_crash_shutdown(struct cnss_pci_data *pci_priv)
|
|
|
case QCA6290_DEVICE_ID:
|
|
|
case QCA6390_DEVICE_ID:
|
|
|
case QCA6490_DEVICE_ID:
|
|
|
- case WCN7850_DEVICE_ID:
|
|
|
+ case KIWI_DEVICE_ID:
|
|
|
cnss_qca6290_crash_shutdown(pci_priv);
|
|
|
break;
|
|
|
default:
|
|
@@ -3005,7 +3005,7 @@ int cnss_pci_dev_ramdump(struct cnss_pci_data *pci_priv)
|
|
|
case QCA6290_DEVICE_ID:
|
|
|
case QCA6390_DEVICE_ID:
|
|
|
case QCA6490_DEVICE_ID:
|
|
|
- case WCN7850_DEVICE_ID:
|
|
|
+ case KIWI_DEVICE_ID:
|
|
|
ret = cnss_qca6290_ramdump(pci_priv);
|
|
|
break;
|
|
|
default:
|
|
@@ -3986,7 +3986,7 @@ int cnss_pci_force_wake_request_sync(struct device *dev, int timeout_us)
|
|
|
switch (pci_priv->device_id) {
|
|
|
case QCA6390_DEVICE_ID:
|
|
|
case QCA6490_DEVICE_ID:
|
|
|
- case WCN7850_DEVICE_ID:
|
|
|
+ case KIWI_DEVICE_ID:
|
|
|
break;
|
|
|
default:
|
|
|
return 0;
|
|
@@ -4027,7 +4027,7 @@ int cnss_pci_force_wake_request(struct device *dev)
|
|
|
switch (pci_priv->device_id) {
|
|
|
case QCA6390_DEVICE_ID:
|
|
|
case QCA6490_DEVICE_ID:
|
|
|
- case WCN7850_DEVICE_ID:
|
|
|
+ case KIWI_DEVICE_ID:
|
|
|
break;
|
|
|
default:
|
|
|
return 0;
|
|
@@ -4062,7 +4062,7 @@ int cnss_pci_is_device_awake(struct device *dev)
|
|
|
switch (pci_priv->device_id) {
|
|
|
case QCA6390_DEVICE_ID:
|
|
|
case QCA6490_DEVICE_ID:
|
|
|
- case WCN7850_DEVICE_ID:
|
|
|
+ case KIWI_DEVICE_ID:
|
|
|
break;
|
|
|
default:
|
|
|
return 0;
|
|
@@ -4089,7 +4089,7 @@ int cnss_pci_force_wake_release(struct device *dev)
|
|
|
switch (pci_priv->device_id) {
|
|
|
case QCA6390_DEVICE_ID:
|
|
|
case QCA6490_DEVICE_ID:
|
|
|
- case WCN7850_DEVICE_ID:
|
|
|
+ case KIWI_DEVICE_ID:
|
|
|
break;
|
|
|
default:
|
|
|
return 0;
|
|
@@ -4830,7 +4830,7 @@ static int cnss_pci_enable_bus(struct cnss_pci_data *pci_priv)
|
|
|
break;
|
|
|
case QCA6390_DEVICE_ID:
|
|
|
case QCA6490_DEVICE_ID:
|
|
|
- case WCN7850_DEVICE_ID:
|
|
|
+ case KIWI_DEVICE_ID:
|
|
|
pci_priv->dma_bit_mask = PCI_DMA_MASK_36_BIT;
|
|
|
break;
|
|
|
default:
|
|
@@ -5361,9 +5361,9 @@ void cnss_pci_add_fw_prefix_name(struct cnss_pci_data *pci_priv,
|
|
|
scnprintf(prefix_name, MAX_FIRMWARE_NAME_LEN,
|
|
|
QCA6490_PATH_PREFIX "%s", name);
|
|
|
break;
|
|
|
- case WCN7850_DEVICE_ID:
|
|
|
+ case KIWI_DEVICE_ID:
|
|
|
scnprintf(prefix_name, MAX_FIRMWARE_NAME_LEN,
|
|
|
- WCN7850_PATH_PREFIX "%s", name);
|
|
|
+ KIWI_PATH_PREFIX "%s", name);
|
|
|
break;
|
|
|
default:
|
|
|
scnprintf(prefix_name, MAX_FIRMWARE_NAME_LEN, "%s", name);
|
|
@@ -6016,7 +6016,7 @@ static int cnss_pci_probe(struct pci_dev *pci_dev,
|
|
|
case QCA6290_DEVICE_ID:
|
|
|
case QCA6390_DEVICE_ID:
|
|
|
case QCA6490_DEVICE_ID:
|
|
|
- case WCN7850_DEVICE_ID:
|
|
|
+ case KIWI_DEVICE_ID:
|
|
|
cnss_pci_set_wlaon_pwr_ctrl(pci_priv, false, false, false);
|
|
|
timer_setup(&pci_priv->dev_rddm_timer,
|
|
|
cnss_dev_rddm_timeout_hdlr, 0);
|
|
@@ -6081,7 +6081,7 @@ static void cnss_pci_remove(struct pci_dev *pci_dev)
|
|
|
case QCA6290_DEVICE_ID:
|
|
|
case QCA6390_DEVICE_ID:
|
|
|
case QCA6490_DEVICE_ID:
|
|
|
- case WCN7850_DEVICE_ID:
|
|
|
+ case KIWI_DEVICE_ID:
|
|
|
cnss_pci_wake_gpio_deinit(pci_priv);
|
|
|
del_timer(&pci_priv->boot_debug_timer);
|
|
|
del_timer(&pci_priv->dev_rddm_timer);
|
|
@@ -6109,7 +6109,7 @@ static const struct pci_device_id cnss_pci_id_table[] = {
|
|
|
{ QCA6290_VENDOR_ID, QCA6290_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID },
|
|
|
{ QCA6390_VENDOR_ID, QCA6390_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID },
|
|
|
{ QCA6490_VENDOR_ID, QCA6490_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID },
|
|
|
- { WCN7850_VENDOR_ID, WCN7850_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID },
|
|
|
+ { KIWI_VENDOR_ID, KIWI_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID },
|
|
|
{ 0 }
|
|
|
};
|
|
|
MODULE_DEVICE_TABLE(pci, cnss_pci_id_table);
|