summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_xcvr.h
diff options
context:
space:
mode:
authorViorel Suman <viorel.suman@nxp.com>2020-03-24 16:19:44 +0200
committerViorel Suman <viorel.suman@nxp.com>2020-03-25 10:49:09 +0200
commit6bd55541d4ac77b62395d70919fc7cc398754d73 (patch)
treeac2d1752c93d7b695285fa2740ba5cbaf9a95cce /sound/soc/fsl/fsl_xcvr.h
parentff5a36241f007be167ec7a23a3812de5229f515b (diff)
MLK-23603-4: ASoC: fsl_xcvr: adjust watermark and max burst values
Set watermarks values at half FIFO size, and max burst to 1/8 of FIFO size. Signed-off-by: Viorel Suman <viorel.suman@nxp.com> Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_xcvr.h')
-rw-r--r--sound/soc/fsl/fsl_xcvr.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/soc/fsl/fsl_xcvr.h b/sound/soc/fsl/fsl_xcvr.h
index 64732d0193c0..1b982f5ee405 100644
--- a/sound/soc/fsl/fsl_xcvr.h
+++ b/sound/soc/fsl/fsl_xcvr.h
@@ -25,10 +25,11 @@
/* XCVR Registers */
#define FSL_XCVR_REG_OFFSET 0x800 /* regs offset */
#define FSL_XCVR_FIFO_SIZE 0x80 /* 128 */
-#define FSL_XCVR_FIFO_WMK_RX 4 /* 4 */
-#define FSL_XCVR_FIFO_WMK_TX 4 /* 4 */
-#define FSL_XCVR_MAXBURST_RX 64 /* 64 */
-#define FSL_XCVR_MAXBURST_TX 64 /* 64 */
+#define FSL_XCVR_FIFO_WMK_RX (FSL_XCVR_FIFO_SIZE >> 1) /* 64 */
+#define FSL_XCVR_FIFO_WMK_TX (FSL_XCVR_FIFO_SIZE >> 1) /* 64 */
+#define FSL_XCVR_MAXBURST_RX (FSL_XCVR_FIFO_WMK_RX >> 2) /* 16 */
+#define FSL_XCVR_MAXBURST_TX (FSL_XCVR_FIFO_WMK_TX >> 2) /* 16 */
+
#define FSL_XCVR_RX_FIFO_ADDR 0x0C00
#define FSL_XCVR_TX_FIFO_ADDR 0x0E00