1*28564486SViorel Suman /* SPDX-License-Identifier: GPL-2.0 */ 2*28564486SViorel Suman /* 3*28564486SViorel Suman * NXP XCVR ALSA SoC Digital Audio Interface (DAI) driver 4*28564486SViorel Suman * 5*28564486SViorel Suman * Copyright 2019 NXP 6*28564486SViorel Suman */ 7*28564486SViorel Suman 8*28564486SViorel Suman #ifndef __FSL_XCVR_H 9*28564486SViorel Suman #define __FSL_XCVR_H 10*28564486SViorel Suman 11*28564486SViorel Suman #define FSL_XCVR_MODE_SPDIF 0 12*28564486SViorel Suman #define FSL_XCVR_MODE_ARC 1 13*28564486SViorel Suman #define FSL_XCVR_MODE_EARC 2 14*28564486SViorel Suman 15*28564486SViorel Suman /* XCVR Registers */ 16*28564486SViorel Suman #define FSL_XCVR_REG_OFFSET 0x800 /* regs offset */ 17*28564486SViorel Suman #define FSL_XCVR_FIFO_SIZE 0x80 /* 128 */ 18*28564486SViorel Suman #define FSL_XCVR_FIFO_WMK_RX (FSL_XCVR_FIFO_SIZE >> 1) /* 64 */ 19*28564486SViorel Suman #define FSL_XCVR_FIFO_WMK_TX (FSL_XCVR_FIFO_SIZE >> 1) /* 64 */ 20*28564486SViorel Suman #define FSL_XCVR_MAXBURST_RX (FSL_XCVR_FIFO_WMK_RX >> 2) /* 16 */ 21*28564486SViorel Suman #define FSL_XCVR_MAXBURST_TX (FSL_XCVR_FIFO_WMK_TX >> 2) /* 16 */ 22*28564486SViorel Suman 23*28564486SViorel Suman #define FSL_XCVR_RX_FIFO_ADDR 0x0C00 24*28564486SViorel Suman #define FSL_XCVR_TX_FIFO_ADDR 0x0E00 25*28564486SViorel Suman 26*28564486SViorel Suman #define FSL_XCVR_VERSION 0x00 /* Version */ 27*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL 0x10 /* Control */ 28*28564486SViorel Suman #define FSL_XCVR_EXT_STATUS 0x20 /* Status */ 29*28564486SViorel Suman #define FSL_XCVR_EXT_IER0 0x30 /* Interrupt en 0 */ 30*28564486SViorel Suman #define FSL_XCVR_EXT_IER1 0x40 /* Interrupt en 1 */ 31*28564486SViorel Suman #define FSL_XCVR_EXT_ISR 0x50 /* Interrupt status */ 32*28564486SViorel Suman #define FSL_XCVR_EXT_ISR_SET 0x54 /* Interrupt status */ 33*28564486SViorel Suman #define FSL_XCVR_EXT_ISR_CLR 0x58 /* Interrupt status */ 34*28564486SViorel Suman #define FSL_XCVR_EXT_ISR_TOG 0x5C /* Interrupt status */ 35*28564486SViorel Suman #define FSL_XCVR_IER 0x70 /* Interrupt en for M0+ */ 36*28564486SViorel Suman #define FSL_XCVR_ISR 0x80 /* Interrupt status */ 37*28564486SViorel Suman #define FSL_XCVR_ISR_SET 0x84 /* Interrupt status set */ 38*28564486SViorel Suman #define FSL_XCVR_ISR_CLR 0x88 /* Interrupt status clear */ 39*28564486SViorel Suman #define FSL_XCVR_ISR_TOG 0x8C /* Interrupt status toggle */ 40*28564486SViorel Suman #define FSL_XCVR_PHY_AI_CTRL 0x90 41*28564486SViorel Suman #define FSL_XCVR_PHY_AI_CTRL_SET 0x94 42*28564486SViorel Suman #define FSL_XCVR_PHY_AI_CTRL_CLR 0x98 43*28564486SViorel Suman #define FSL_XCVR_PHY_AI_CTRL_TOG 0x9C 44*28564486SViorel Suman #define FSL_XCVR_PHY_AI_WDATA 0xA0 45*28564486SViorel Suman #define FSL_XCVR_PHY_AI_RDATA 0xA4 46*28564486SViorel Suman #define FSL_XCVR_CLK_CTRL 0xB0 47*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL 0x180 /* RX datapath ctrl reg */ 48*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_SET 0x184 49*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_CLR 0x188 50*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_TOG 0x18c 51*28564486SViorel Suman 52*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL 0x220 /* TX datapath ctrl reg */ 53*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_SET 0x224 54*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_CLR 0x228 55*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_TOG 0x22C 56*28564486SViorel Suman #define FSL_XCVR_TX_CS_DATA_0 0x230 /* TX channel status bits regs */ 57*28564486SViorel Suman #define FSL_XCVR_TX_CS_DATA_1 0x234 58*28564486SViorel Suman #define FSL_XCVR_TX_CS_DATA_2 0x238 59*28564486SViorel Suman #define FSL_XCVR_TX_CS_DATA_3 0x23C 60*28564486SViorel Suman #define FSL_XCVR_TX_CS_DATA_4 0x240 61*28564486SViorel Suman #define FSL_XCVR_TX_CS_DATA_5 0x244 62*28564486SViorel Suman #define FSL_XCVR_DEBUG_REG_0 0x2E0 63*28564486SViorel Suman #define FSL_XCVR_DEBUG_REG_1 0x2F0 64*28564486SViorel Suman 65*28564486SViorel Suman #define FSL_XCVR_MAX_REG FSL_XCVR_DEBUG_REG_1 66*28564486SViorel Suman 67*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_CORE_RESET BIT(31) 68*28564486SViorel Suman 69*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_RX_CMDC_RESET BIT(30) 70*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_TX_CMDC_RESET BIT(29) 71*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_CMDC_RESET(t) (t ? BIT(29) : BIT(30)) 72*28564486SViorel Suman 73*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_RX_DPTH_RESET BIT(28) 74*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_TX_DPTH_RESET BIT(27) 75*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_DPTH_RESET(t) (t ? BIT(27) : BIT(28)) 76*28564486SViorel Suman 77*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_TX_RX_MODE BIT(26) 78*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_DMA_RD_DIS BIT(25) 79*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_DMA_WR_DIS BIT(24) 80*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_DMA_DIS(t) (t ? BIT(24) : BIT(25)) 81*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_SPDIF_MODE BIT(23) 82*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_SLEEP_MODE BIT(21) 83*28564486SViorel Suman 84*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_TX_FWM_SHFT 0 85*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_TX_FWM_MASK GENMASK(6, 0) 86*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_TX_FWM(i) (((i) << FSL_XCVR_EXT_CTRL_TX_FWM_SHFT) \ 87*28564486SViorel Suman & FSL_XCVR_EXT_CTRL_TX_FWM_MASK) 88*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_RX_FWM_SHFT 8 89*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_RX_FWM_MASK GENMASK(14, 8) 90*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_RX_FWM(i) (((i) << FSL_XCVR_EXT_CTRL_RX_FWM_SHFT) \ 91*28564486SViorel Suman & FSL_XCVR_EXT_CTRL_RX_FWM_MASK) 92*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_PAGE_SHFT 16 93*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_PAGE_MASK GENMASK(19, 16) 94*28564486SViorel Suman #define FSL_XCVR_EXT_CTRL_PAGE(i) (((i) << FSL_XCVR_EXT_CTRL_PAGE_SHFT) \ 95*28564486SViorel Suman & FSL_XCVR_EXT_CTRL_PAGE_MASK) 96*28564486SViorel Suman 97*28564486SViorel Suman #define FSL_XCVR_EXT_STUS_NT_FIFO_ENTR GENMASK(7, 0) 98*28564486SViorel Suman #define FSL_XCVR_EXT_STUS_NR_FIFO_ENTR GENMASK(15, 8) 99*28564486SViorel Suman #define FSL_XCVR_EXT_STUS_CM0_SLEEPING BIT(16) 100*28564486SViorel Suman #define FSL_XCVR_EXT_STUS_CM0_DEEP_SLP BIT(17) 101*28564486SViorel Suman #define FSL_XCVR_EXT_STUS_CM0_SLP_HACK BIT(18) 102*28564486SViorel Suman #define FSL_XCVR_EXT_STUS_RX_CMDC_RSTO BIT(23) 103*28564486SViorel Suman #define FSL_XCVR_EXT_STUS_TX_CMDC_RSTO BIT(24) 104*28564486SViorel Suman #define FSL_XCVR_EXT_STUS_RX_CMDC_COTO BIT(25) 105*28564486SViorel Suman #define FSL_XCVR_EXT_STUS_TX_CMDC_COTO BIT(26) 106*28564486SViorel Suman #define FSL_XCVR_EXT_STUS_HB_STATUS BIT(27) 107*28564486SViorel Suman #define FSL_XCVR_EXT_STUS_NEW_UD4_REC BIT(28) 108*28564486SViorel Suman #define FSL_XCVR_EXT_STUS_NEW_UD5_REC BIT(29) 109*28564486SViorel Suman #define FSL_XCVR_EXT_STUS_NEW_UD6_REC BIT(30) 110*28564486SViorel Suman #define FSL_XCVR_EXT_STUS_HPD_INPUT BIT(31) 111*28564486SViorel Suman 112*28564486SViorel Suman #define FSL_XCVR_IRQ_NEW_CS BIT(0) 113*28564486SViorel Suman #define FSL_XCVR_IRQ_NEW_UD BIT(1) 114*28564486SViorel Suman #define FSL_XCVR_IRQ_MUTE BIT(2) 115*28564486SViorel Suman #define FSL_XCVR_IRQ_CMDC_RESP_TO BIT(3) 116*28564486SViorel Suman #define FSL_XCVR_IRQ_ECC_ERR BIT(4) 117*28564486SViorel Suman #define FSL_XCVR_IRQ_PREAMBLE_MISMATCH BIT(5) 118*28564486SViorel Suman #define FSL_XCVR_IRQ_FIFO_UOFL_ERR BIT(6) 119*28564486SViorel Suman #define FSL_XCVR_IRQ_HOST_WAKEUP BIT(7) 120*28564486SViorel Suman #define FSL_XCVR_IRQ_HOST_OHPD BIT(8) 121*28564486SViorel Suman #define FSL_XCVR_IRQ_DMAC_NO_DATA_REC BIT(9) 122*28564486SViorel Suman #define FSL_XCVR_IRQ_DMAC_FMT_CHG_DET BIT(10) 123*28564486SViorel Suman #define FSL_XCVR_IRQ_HB_STATE_CHG BIT(11) 124*28564486SViorel Suman #define FSL_XCVR_IRQ_CMDC_STATUS_UPD BIT(12) 125*28564486SViorel Suman #define FSL_XCVR_IRQ_TEMP_UPD BIT(13) 126*28564486SViorel Suman #define FSL_XCVR_IRQ_DMA_RD_REQ BIT(14) 127*28564486SViorel Suman #define FSL_XCVR_IRQ_DMA_WR_REQ BIT(15) 128*28564486SViorel Suman #define FSL_XCVR_IRQ_DMAC_BME_BIT_ERR BIT(16) 129*28564486SViorel Suman #define FSL_XCVR_IRQ_PREAMBLE_MATCH BIT(17) 130*28564486SViorel Suman #define FSL_XCVR_IRQ_M_W_PRE_MISMATCH BIT(18) 131*28564486SViorel Suman #define FSL_XCVR_IRQ_B_PRE_MISMATCH BIT(19) 132*28564486SViorel Suman #define FSL_XCVR_IRQ_UNEXP_PRE_REC BIT(20) 133*28564486SViorel Suman #define FSL_XCVR_IRQ_ARC_MODE BIT(21) 134*28564486SViorel Suman #define FSL_XCVR_IRQ_CH_UD_OFLOW BIT(22) 135*28564486SViorel Suman #define FSL_XCVR_IRQ_EARC_ALL (FSL_XCVR_IRQ_NEW_CS | \ 136*28564486SViorel Suman FSL_XCVR_IRQ_NEW_UD | \ 137*28564486SViorel Suman FSL_XCVR_IRQ_MUTE | \ 138*28564486SViorel Suman FSL_XCVR_IRQ_FIFO_UOFL_ERR | \ 139*28564486SViorel Suman FSL_XCVR_IRQ_HOST_WAKEUP | \ 140*28564486SViorel Suman FSL_XCVR_IRQ_ARC_MODE) 141*28564486SViorel Suman 142*28564486SViorel Suman #define FSL_XCVR_ISR_CMDC_TX_EN BIT(3) 143*28564486SViorel Suman #define FSL_XCVR_ISR_HPD_TGL BIT(15) 144*28564486SViorel Suman #define FSL_XCVR_ISR_DMAC_SPARE_INT BIT(19) 145*28564486SViorel Suman #define FSL_XCVR_ISR_SET_SPDIF_RX_INT BIT(20) 146*28564486SViorel Suman #define FSL_XCVR_ISR_SET_SPDIF_TX_INT BIT(21) 147*28564486SViorel Suman #define FSL_XCVR_ISR_SET_SPDIF_MODE(t) (t ? BIT(21) : BIT(20)) 148*28564486SViorel Suman #define FSL_XCVR_ISR_SET_ARC_CM_INT BIT(22) 149*28564486SViorel Suman #define FSL_XCVR_ISR_SET_ARC_SE_INT BIT(23) 150*28564486SViorel Suman 151*28564486SViorel Suman #define FSL_XCVR_PHY_AI_ADDR_MASK GENMASK(7, 0) 152*28564486SViorel Suman #define FSL_XCVR_PHY_AI_RESETN BIT(15) 153*28564486SViorel Suman #define FSL_XCVR_PHY_AI_TOG_PLL BIT(24) 154*28564486SViorel Suman #define FSL_XCVR_PHY_AI_TOG_DONE_PLL BIT(25) 155*28564486SViorel Suman #define FSL_XCVR_PHY_AI_TOG_PHY BIT(26) 156*28564486SViorel Suman #define FSL_XCVR_PHY_AI_TOG_DONE_PHY BIT(27) 157*28564486SViorel Suman #define FSL_XCVR_PHY_AI_RW_MASK BIT(31) 158*28564486SViorel Suman 159*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_PAPB_FIFO_STATUS BIT(0) 160*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_DIS_PRE_ERR_CHK BIT(1) 161*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_DIS_NOD_REC_CHK BIT(2) 162*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_ECC_VUC_BIT_CHK BIT(3) 163*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_EN_CMP_PAR_CALC BIT(4) 164*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_RST_PKT_CNT_FIFO BIT(5) 165*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_STORE_FMT BIT(6) 166*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_EN_PAR_CALC BIT(7) 167*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_UDR BIT(8) 168*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_CSR BIT(9) 169*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_UDA BIT(10) 170*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_CSA BIT(11) 171*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_CLR_RX_FIFO BIT(12) 172*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_DIS_B_PRE_ERR_CHK BIT(13) 173*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_PABS BIT(19) 174*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_DTS_CDS BIT(20) 175*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_BLKC BIT(21) 176*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_MUTE_CTRL BIT(22) 177*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_MUTE_MODE BIT(23) 178*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_FMT_CHG_CTRL BIT(24) 179*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_FMT_CHG_MODE BIT(25) 180*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_LAYB_CTRL BIT(26) 181*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_LAYB_MODE BIT(27) 182*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_PRC BIT(28) 183*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_COMP BIT(29) 184*28564486SViorel Suman #define FSL_XCVR_RX_DPTH_CTRL_FSM GENMASK(31, 30) 185*28564486SViorel Suman 186*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_CS_ACK BIT(0) 187*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_UD_ACK BIT(1) 188*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_CS_MOD BIT(2) 189*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_UD_MOD BIT(3) 190*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_VLD_MOD BIT(4) 191*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_FRM_VLD BIT(5) 192*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_EN_PARITY BIT(6) 193*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_EN_PREAMBLE BIT(7) 194*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_EN_ECC_INTER BIT(8) 195*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_BYPASS_FEM BIT(10) 196*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_FRM_FMT BIT(11) 197*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_STRT_DATA_TX BIT(14) 198*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_ADD_CYC_TX_OE_STR BIT(15) 199*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_ADD_CYC_TX_OE_END BIT(16) 200*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_CLK_RATIO BIT(29) 201*28564486SViorel Suman #define FSL_XCVR_TX_DPTH_CTRL_TM_NO_PRE_BME GENMASK(31, 30) 202*28564486SViorel Suman 203*28564486SViorel Suman #define FSL_XCVR_PHY_AI_CTRL_AI_RESETN BIT(15) 204*28564486SViorel Suman 205*28564486SViorel Suman #define FSL_XCVR_PLL_CTRL0 0x00 206*28564486SViorel Suman #define FSL_XCVR_PLL_CTRL0_SET 0x04 207*28564486SViorel Suman #define FSL_XCVR_PLL_CTRL0_CLR 0x08 208*28564486SViorel Suman #define FSL_XCVR_PLL_NUM 0x20 209*28564486SViorel Suman #define FSL_XCVR_PLL_DEN 0x30 210*28564486SViorel Suman #define FSL_XCVR_PLL_PDIV 0x40 211*28564486SViorel Suman #define FSL_XCVR_PLL_BANDGAP_SET 0x54 212*28564486SViorel Suman #define FSL_XCVR_PHY_CTRL 0x00 213*28564486SViorel Suman #define FSL_XCVR_PHY_CTRL_SET 0x04 214*28564486SViorel Suman #define FSL_XCVR_PHY_CTRL_CLR 0x08 215*28564486SViorel Suman #define FSL_XCVR_PHY_CTRL2 0x70 216*28564486SViorel Suman #define FSL_XCVR_PHY_CTRL2_SET 0x74 217*28564486SViorel Suman #define FSL_XCVR_PHY_CTRL2_CLR 0x78 218*28564486SViorel Suman 219*28564486SViorel Suman #define FSL_XCVR_PLL_BANDGAP_EN_VBG BIT(0) 220*28564486SViorel Suman #define FSL_XCVR_PLL_CTRL0_HROFF BIT(13) 221*28564486SViorel Suman #define FSL_XCVR_PLL_CTRL0_PWP BIT(14) 222*28564486SViorel Suman #define FSL_XCVR_PLL_CTRL0_CM0_EN BIT(24) 223*28564486SViorel Suman #define FSL_XCVR_PLL_CTRL0_CM1_EN BIT(25) 224*28564486SViorel Suman #define FSL_XCVR_PLL_CTRL0_CM2_EN BIT(26) 225*28564486SViorel Suman #define FSL_XCVR_PLL_PDIVx(v, i) ((v & 0x7) << (4 * i)) 226*28564486SViorel Suman 227*28564486SViorel Suman #define FSL_XCVR_PHY_CTRL_PHY_EN BIT(0) 228*28564486SViorel Suman #define FSL_XCVR_PHY_CTRL_RX_CM_EN BIT(1) 229*28564486SViorel Suman #define FSL_XCVR_PHY_CTRL_TSDIFF_OE BIT(5) 230*28564486SViorel Suman #define FSL_XCVR_PHY_CTRL_SPDIF_EN BIT(8) 231*28564486SViorel Suman #define FSL_XCVR_PHY_CTRL_ARC_MODE_SE_EN BIT(9) 232*28564486SViorel Suman #define FSL_XCVR_PHY_CTRL_ARC_MODE_CM_EN BIT(10) 233*28564486SViorel Suman #define FSL_XCVR_PHY_CTRL_TX_CLK_MASK GENMASK(26, 25) 234*28564486SViorel Suman #define FSL_XCVR_PHY_CTRL_TX_CLK_HDMI_SS BIT(25) 235*28564486SViorel Suman #define FSL_XCVR_PHY_CTRL_TX_CLK_AUD_SS BIT(26) 236*28564486SViorel Suman #define FSL_XCVR_PHY_CTRL2_EARC_TXMS BIT(14) 237*28564486SViorel Suman 238*28564486SViorel Suman #define FSL_XCVR_CS_DATA_0_FS_MASK GENMASK(31, 24) 239*28564486SViorel Suman #define FSL_XCVR_CS_DATA_0_FS_32000 0x3000000 240*28564486SViorel Suman #define FSL_XCVR_CS_DATA_0_FS_44100 0x0000000 241*28564486SViorel Suman #define FSL_XCVR_CS_DATA_0_FS_48000 0x2000000 242*28564486SViorel Suman #define FSL_XCVR_CS_DATA_0_FS_64000 0xB000000 243*28564486SViorel Suman #define FSL_XCVR_CS_DATA_0_FS_88200 0x8000000 244*28564486SViorel Suman #define FSL_XCVR_CS_DATA_0_FS_96000 0xA000000 245*28564486SViorel Suman #define FSL_XCVR_CS_DATA_0_FS_176400 0xC000000 246*28564486SViorel Suman #define FSL_XCVR_CS_DATA_0_FS_192000 0xE000000 247*28564486SViorel Suman 248*28564486SViorel Suman #define FSL_XCVR_CS_DATA_0_CH_MASK 0x3A 249*28564486SViorel Suman #define FSL_XCVR_CS_DATA_0_CH_U2LPCM 0x00 250*28564486SViorel Suman #define FSL_XCVR_CS_DATA_0_CH_UMLPCM 0x20 251*28564486SViorel Suman #define FSL_XCVR_CS_DATA_0_CH_U1BAUD 0x30 252*28564486SViorel Suman 253*28564486SViorel Suman #define FSL_XCVR_CS_DATA_1_CH_MASK 0xF000 254*28564486SViorel Suman #define FSL_XCVR_CS_DATA_1_CH_2 0x0000 255*28564486SViorel Suman #define FSL_XCVR_CS_DATA_1_CH_8 0x7000 256*28564486SViorel Suman #define FSL_XCVR_CS_DATA_1_CH_16 0xB000 257*28564486SViorel Suman #define FSL_XCVR_CS_DATA_1_CH_32 0x3000 258*28564486SViorel Suman 259*28564486SViorel Suman /* Data memory structures */ 260*28564486SViorel Suman #define FSL_XCVR_RX_CS_CTRL_0 0x20 /* First RX CS control register */ 261*28564486SViorel Suman #define FSL_XCVR_RX_CS_CTRL_1 0x24 /* Second RX CS control register */ 262*28564486SViorel Suman #define FSL_XCVR_RX_CS_BUFF_0 0x80 /* First RX CS buffer */ 263*28564486SViorel Suman #define FSL_XCVR_RX_CS_BUFF_1 0xA0 /* Second RX CS buffer */ 264*28564486SViorel Suman #define FSL_XCVR_CAP_DATA_STR 0x300 /* Capabilities data structure */ 265*28564486SViorel Suman 266*28564486SViorel Suman #endif /* __FSL_XCVR_H */ 267