Path: blob/master/include/dt-bindings/sound/fsl-imx-audmux.h
29271 views
/* SPDX-License-Identifier: GPL-2.0 */1#ifndef __DT_FSL_IMX_AUDMUX_H2#define __DT_FSL_IMX_AUDMUX_H34#define MX27_AUDMUX_HPCR1_SSI0 05#define MX27_AUDMUX_HPCR2_SSI1 16#define MX27_AUDMUX_HPCR3_SSI_PINS_4 27#define MX27_AUDMUX_PPCR1_SSI_PINS_1 38#define MX27_AUDMUX_PPCR2_SSI_PINS_2 49#define MX27_AUDMUX_PPCR3_SSI_PINS_3 51011#define MX31_AUDMUX_PORT1_SSI0 012#define MX31_AUDMUX_PORT2_SSI1 113#define MX31_AUDMUX_PORT3_SSI_PINS_3 214#define MX31_AUDMUX_PORT4_SSI_PINS_4 315#define MX31_AUDMUX_PORT5_SSI_PINS_5 416#define MX31_AUDMUX_PORT6_SSI_PINS_6 517#define MX31_AUDMUX_PORT7_SSI_PINS_7 61819#define MX51_AUDMUX_PORT1_SSI0 020#define MX51_AUDMUX_PORT2_SSI1 121#define MX51_AUDMUX_PORT3 222#define MX51_AUDMUX_PORT4 323#define MX51_AUDMUX_PORT5 424#define MX51_AUDMUX_PORT6 525#define MX51_AUDMUX_PORT7 62627/*28* TFCSEL/RFCSEL (i.MX27) or TFSEL/TCSEL/RFSEL/RCSEL (i.MX31/51/53/6Q)29* can be sourced from Rx/Tx.30*/31#define IMX_AUDMUX_RXFS 0x832#define IMX_AUDMUX_RXCLK 0x83334/* Register definitions for the i.MX21/27 Digital Audio Multiplexer */35#define IMX_AUDMUX_V1_PCR_INMMASK(x) ((x) & 0xff)36#define IMX_AUDMUX_V1_PCR_INMEN (1 << 8)37#define IMX_AUDMUX_V1_PCR_TXRXEN (1 << 10)38#define IMX_AUDMUX_V1_PCR_SYN (1 << 12)39#define IMX_AUDMUX_V1_PCR_RXDSEL(x) (((x) & 0x7) << 13)40#define IMX_AUDMUX_V1_PCR_RFCSEL(x) (((x) & 0xf) << 20)41#define IMX_AUDMUX_V1_PCR_RCLKDIR (1 << 24)42#define IMX_AUDMUX_V1_PCR_RFSDIR (1 << 25)43#define IMX_AUDMUX_V1_PCR_TFCSEL(x) (((x) & 0xf) << 26)44#define IMX_AUDMUX_V1_PCR_TCLKDIR (1 << 30)45#define IMX_AUDMUX_V1_PCR_TFSDIR (1 << 31)4647/* Register definitions for the i.MX25/31/35/51 Digital Audio Multiplexer */48#define IMX_AUDMUX_V2_PTCR_TFSDIR (1 << 31)49#define IMX_AUDMUX_V2_PTCR_TFSEL(x) (((x) & 0xf) << 27)50#define IMX_AUDMUX_V2_PTCR_TCLKDIR (1 << 26)51#define IMX_AUDMUX_V2_PTCR_TCSEL(x) (((x) & 0xf) << 22)52#define IMX_AUDMUX_V2_PTCR_RFSDIR (1 << 21)53#define IMX_AUDMUX_V2_PTCR_RFSEL(x) (((x) & 0xf) << 17)54#define IMX_AUDMUX_V2_PTCR_RCLKDIR (1 << 16)55#define IMX_AUDMUX_V2_PTCR_RCSEL(x) (((x) & 0xf) << 12)56#define IMX_AUDMUX_V2_PTCR_SYN (1 << 11)5758#define IMX_AUDMUX_V2_PDCR_RXDSEL(x) (((x) & 0x7) << 13)59#define IMX_AUDMUX_V2_PDCR_TXRXEN (1 << 12)60#define IMX_AUDMUX_V2_PDCR_MODE(x) (((x) & 0x3) << 8)61#define IMX_AUDMUX_V2_PDCR_INMMASK(x) ((x) & 0xff)6263#endif /* __DT_FSL_IMX_AUDMUX_H */646566