qcacmn: Data path changes for big endian platform

Add reo ring descrptor swap in case of big endian platform.
Convert msi_data into little endian format before writing into
MSI_DATA register. Also change into little endian format while accessing
the shared LMAC registers.

Change-Id: I07f4ae4e6df4608201b63d325c2cbc37436d1592
This commit is contained in:
Nandha Kishore Easwaran
2020-10-20 12:58:35 +05:30
committed by snandini
parent 47c1479e3f
commit 1a0bc1efc4
4 changed files with 35 additions and 10 deletions

View File

@@ -1942,9 +1942,11 @@ hal_srng_access_end_unlocked(void *hal_soc, hal_ring_handle_t hal_ring_hdl)
* hence written to a shared memory location that is read by FW
*/
if (srng->ring_dir == HAL_SRNG_SRC_RING) {
*(srng->u.src_ring.hp_addr) = srng->u.src_ring.hp;
*srng->u.src_ring.hp_addr =
qdf_cpu_to_le32(srng->u.src_ring.hp);
} else {
*(srng->u.dst_ring.tp_addr) = srng->u.dst_ring.tp;
*srng->u.dst_ring.tp_addr =
qdf_cpu_to_le32(srng->u.dst_ring.tp);
}
} else {
if (srng->ring_dir == HAL_SRNG_SRC_RING)