Browse Source

qcacmn: change in static window mapping for WCN6450

Use qca6750 static window configurations for WCN6450.

Change-Id: I6b5eef653312474a99b07aab0112edf6211005aa
CRs-Fixed: 3483052
Venkateswara Naralasetty 2 years ago
parent
commit
4a88f7af4c
1 changed files with 7 additions and 4 deletions
  1. 7 4
      hal/wifi3.0/wcn6450/hal_wcn6450.c

+ 7 - 4
hal/wifi3.0/wcn6450/hal_wcn6450.c

@@ -340,7 +340,7 @@ static void hal_compute_reo_remap_ix0_6450(uint32_t *remap0)
 {
 }
 
-/*TODO: update proper values */
+#define UMAC_WINDOW_REMAP_RANGE 0x14
 #define CE_WINDOW_REMAP_RANGE 0X37
 #define CMEM_WINDOW_REMAP_RANGE 0x2
 
@@ -361,14 +361,17 @@ static inline qdf_iomem_t hal_get_window_address_6450(struct hal_soc *hal_soc,
 	offset = addr - hal_soc->dev_base_addr;
 	window = (offset >> WINDOW_SHIFT) & WINDOW_VALUE_MASK;
 
-	/* CE: 2nd window, CMEM: 3rd window, unused: 4th window */
+	/* UMAC: 2nd window(unused) CE: 3rd window, CMEM: 4th window */
 	switch (window) {
-	case CE_WINDOW_REMAP_RANGE:
+	case UMAC_WINDOW_REMAP_RANGE:
 		scale = 1;
 		break;
-	case CMEM_WINDOW_REMAP_RANGE:
+	case CE_WINDOW_REMAP_RANGE:
 		scale = 2;
 		break;
+	case CMEM_WINDOW_REMAP_RANGE:
+		scale = 3;
+		break;
 	default:
 		QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR,
 			  "%s: ERROR: Accessing Wrong register\n", __func__);