net: wwan: t7xx: Add AP CLDMA
[platform/kernel/linux-rpi.git] / drivers / net / wwan / t7xx / t7xx_hif_cldma.c
index 7162bf3..cc70360 100644 (file)
@@ -1066,13 +1066,18 @@ static void t7xx_hw_info_init(struct cldma_ctrl *md_ctrl)
        struct t7xx_cldma_hw *hw_info = &md_ctrl->hw_info;
        u32 phy_ao_base, phy_pd_base;
 
-       if (md_ctrl->hif_id != CLDMA_ID_MD)
-               return;
-
-       phy_ao_base = CLDMA1_AO_BASE;
-       phy_pd_base = CLDMA1_PD_BASE;
-       hw_info->phy_interrupt_id = CLDMA1_INT;
        hw_info->hw_mode = MODE_BIT_64;
+
+       if (md_ctrl->hif_id == CLDMA_ID_MD) {
+               phy_ao_base = CLDMA1_AO_BASE;
+               phy_pd_base = CLDMA1_PD_BASE;
+               hw_info->phy_interrupt_id = CLDMA1_INT;
+       } else {
+               phy_ao_base = CLDMA0_AO_BASE;
+               phy_pd_base = CLDMA0_PD_BASE;
+               hw_info->phy_interrupt_id = CLDMA0_INT;
+       }
+
        hw_info->ap_ao_base = t7xx_pcie_addr_transfer(pbase->pcie_ext_reg_base,
                                                      pbase->pcie_dev_reg_trsl_addr, phy_ao_base);
        hw_info->ap_pdn_base = t7xx_pcie_addr_transfer(pbase->pcie_ext_reg_base,