linux/include/dt-bindings/sound/fsl-imx-audmux.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __DT_FSL_IMX_AUDMUX_H
#define __DT_FSL_IMX_AUDMUX_H

#define MX27_AUDMUX_HPCR1_SSI0
#define MX27_AUDMUX_HPCR2_SSI1
#define MX27_AUDMUX_HPCR3_SSI_PINS_4
#define MX27_AUDMUX_PPCR1_SSI_PINS_1
#define MX27_AUDMUX_PPCR2_SSI_PINS_2
#define MX27_AUDMUX_PPCR3_SSI_PINS_3

#define MX31_AUDMUX_PORT1_SSI0
#define MX31_AUDMUX_PORT2_SSI1
#define MX31_AUDMUX_PORT3_SSI_PINS_3
#define MX31_AUDMUX_PORT4_SSI_PINS_4
#define MX31_AUDMUX_PORT5_SSI_PINS_5
#define MX31_AUDMUX_PORT6_SSI_PINS_6
#define MX31_AUDMUX_PORT7_SSI_PINS_7

#define MX51_AUDMUX_PORT1_SSI0
#define MX51_AUDMUX_PORT2_SSI1
#define MX51_AUDMUX_PORT3
#define MX51_AUDMUX_PORT4
#define MX51_AUDMUX_PORT5
#define MX51_AUDMUX_PORT6
#define MX51_AUDMUX_PORT7

/*
 * TFCSEL/RFCSEL (i.MX27) or TFSEL/TCSEL/RFSEL/RCSEL (i.MX31/51/53/6Q)
 * can be sourced from Rx/Tx.
 */
#define IMX_AUDMUX_RXFS
#define IMX_AUDMUX_RXCLK

/* Register definitions for the i.MX21/27 Digital Audio Multiplexer */
#define IMX_AUDMUX_V1_PCR_INMMASK(x)
#define IMX_AUDMUX_V1_PCR_INMEN
#define IMX_AUDMUX_V1_PCR_TXRXEN
#define IMX_AUDMUX_V1_PCR_SYN
#define IMX_AUDMUX_V1_PCR_RXDSEL(x)
#define IMX_AUDMUX_V1_PCR_RFCSEL(x)
#define IMX_AUDMUX_V1_PCR_RCLKDIR
#define IMX_AUDMUX_V1_PCR_RFSDIR
#define IMX_AUDMUX_V1_PCR_TFCSEL(x)
#define IMX_AUDMUX_V1_PCR_TCLKDIR
#define IMX_AUDMUX_V1_PCR_TFSDIR

/* Register definitions for the i.MX25/31/35/51 Digital Audio Multiplexer */
#define IMX_AUDMUX_V2_PTCR_TFSDIR
#define IMX_AUDMUX_V2_PTCR_TFSEL(x)
#define IMX_AUDMUX_V2_PTCR_TCLKDIR
#define IMX_AUDMUX_V2_PTCR_TCSEL(x)
#define IMX_AUDMUX_V2_PTCR_RFSDIR
#define IMX_AUDMUX_V2_PTCR_RFSEL(x)
#define IMX_AUDMUX_V2_PTCR_RCLKDIR
#define IMX_AUDMUX_V2_PTCR_RCSEL(x)
#define IMX_AUDMUX_V2_PTCR_SYN

#define IMX_AUDMUX_V2_PDCR_RXDSEL(x)
#define IMX_AUDMUX_V2_PDCR_TXRXEN
#define IMX_AUDMUX_V2_PDCR_MODE(x)
#define IMX_AUDMUX_V2_PDCR_INMMASK(x)

#endif /* __DT_FSL_IMX_AUDMUX_H */