浏览代码

qcacmn: Use epping specific shadow register config table

Update shadow register configuration for epping.

Acked-by: Aravind Narasimhan <[email protected]>

Change-Id: Ia975d2a651a7ff4fb5fcd6081b62c574457b016f
CRs-Fixed: 989695
Vishwajith Upendra 9 年之前
父节点
当前提交
70efc7576c
共有 1 个文件被更改,包括 16 次插入1 次删除
  1. 16 1
      hif/src/ce/ce_main.c

+ 16 - 1
hif/src/ce/ce_main.c

@@ -117,7 +117,17 @@ static struct shadow_reg_cfg target_shadow_reg_cfg_map[] = {
 	{ 8, ADRASTEA_DST_WR_INDEX_OFFSET},
 };
 
-
+static struct shadow_reg_cfg target_shadow_reg_cfg_epping[] = {
+	{ 0, ADRASTEA_SRC_WR_INDEX_OFFSET},
+	{ 3, ADRASTEA_SRC_WR_INDEX_OFFSET},
+	{ 4, ADRASTEA_SRC_WR_INDEX_OFFSET},
+	{ 7, ADRASTEA_SRC_WR_INDEX_OFFSET},
+	{ 1, ADRASTEA_DST_WR_INDEX_OFFSET},
+	{ 2, ADRASTEA_DST_WR_INDEX_OFFSET},
+	{ 5, ADRASTEA_DST_WR_INDEX_OFFSET},
+	{ 7, ADRASTEA_DST_WR_INDEX_OFFSET},
+	{ 8, ADRASTEA_DST_WR_INDEX_OFFSET},
+};
 
 /* CE_PCI TABLE */
 /*
@@ -1742,6 +1752,8 @@ void hif_ce_prepare_config(struct hif_softc *scn)
 		    target_service_to_ce_map_wlan_epping;
 		target_service_to_ce_map_sz =
 			sizeof(target_service_to_ce_map_wlan_epping);
+		target_shadow_reg_cfg = target_shadow_reg_cfg_epping;
+		shadow_cfg_sz = sizeof(target_shadow_reg_cfg_epping);
 	}
 }
 
@@ -2109,6 +2121,9 @@ u32 shadow_dst_wr_ind_addr(struct hif_softc *scn, u32 ctrl_addr)
 	case 2:
 		addr = SHADOW_VALUE14;
 		break;
+	case 5:
+		addr = SHADOW_VALUE17;
+		break;
 	case 7:
 		addr = SHADOW_VALUE19;
 		break;