linux/sound/soc/samsung/i2s-regs.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
 *		http://www.samsung.com
 *
 * Samsung I2S driver's register header
 */

#ifndef __SND_SOC_SAMSUNG_I2S_REGS_H
#define __SND_SOC_SAMSUNG_I2S_REGS_H

#define I2SCON
#define I2SMOD
#define I2SFIC
#define I2SPSR
#define I2STXD
#define I2SRXD
#define I2SFICS
#define I2STXDS
#define I2SAHB
#define I2SSTR0
#define I2SSIZE
#define I2STRNCNT
#define I2SLVL0ADDR
#define I2SLVL1ADDR
#define I2SLVL2ADDR
#define I2SLVL3ADDR
#define I2SSTR1
#define I2SVER
#define I2SFIC1
#define I2STDM
#define I2SFSTA

#define CON_RSTCLR
#define CON_FRXOFSTATUS
#define CON_FRXORINTEN
#define CON_FTXSURSTAT
#define CON_FTXSURINTEN
#define CON_TXSDMA_PAUSE
#define CON_TXSDMA_ACTIVE

#define CON_FTXURSTATUS
#define CON_FTXURINTEN
#define CON_TXFIFO2_EMPTY
#define CON_TXFIFO1_EMPTY
#define CON_TXFIFO2_FULL
#define CON_TXFIFO1_FULL

#define CON_LRINDEX
#define CON_TXFIFO_EMPTY
#define CON_RXFIFO_EMPTY
#define CON_TXFIFO_FULL
#define CON_RXFIFO_FULL
#define CON_TXDMA_PAUSE
#define CON_RXDMA_PAUSE
#define CON_TXCH_PAUSE
#define CON_RXCH_PAUSE
#define CON_TXDMA_ACTIVE
#define CON_RXDMA_ACTIVE
#define CON_ACTIVE

#define MOD_OPCLK_SHIFT
#define MOD_OPCLK_CDCLK_OUT
#define MOD_OPCLK_CDCLK_IN
#define MOD_OPCLK_BCLK_OUT
#define MOD_OPCLK_PCLK
#define MOD_OPCLK_MASK
#define MOD_TXS_IDMA

#define MOD_BLCS_SHIFT
#define MOD_BLCS_16BIT
#define MOD_BLCS_8BIT
#define MOD_BLCS_24BIT
#define MOD_BLCS_MASK
#define MOD_BLCP_SHIFT
#define MOD_BLCP_16BIT
#define MOD_BLCP_8BIT
#define MOD_BLCP_24BIT
#define MOD_BLCP_MASK

#define MOD_C2DD_HHALF
#define MOD_C2DD_LHALF
#define MOD_C1DD_HHALF
#define MOD_C1DD_LHALF
#define MOD_DC2_EN
#define MOD_DC1_EN
#define MOD_BLC_16BIT
#define MOD_BLC_8BIT
#define MOD_BLC_24BIT
#define MOD_BLC_MASK

#define MOD_TXONLY
#define MOD_RXONLY
#define MOD_TXRX
#define MOD_MASK
#define MOD_LRP_SHIFT
#define MOD_LR_LLOW
#define MOD_LR_RLOW
#define MOD_SDF_SHIFT
#define MOD_SDF_IIS
#define MOD_SDF_MSB
#define MOD_SDF_LSB
#define MOD_SDF_MASK
#define MOD_RCLK_SHIFT
#define MOD_RCLK_256FS
#define MOD_RCLK_512FS
#define MOD_RCLK_384FS
#define MOD_RCLK_768FS
#define MOD_RCLK_MASK
#define MOD_BCLK_SHIFT
#define MOD_BCLK_32FS
#define MOD_BCLK_48FS
#define MOD_BCLK_16FS
#define MOD_BCLK_24FS
#define MOD_BCLK_MASK
#define MOD_8BIT

#define EXYNOS5420_MOD_LRP_SHIFT
#define EXYNOS5420_MOD_SDF_SHIFT
#define EXYNOS5420_MOD_RCLK_SHIFT
#define EXYNOS5420_MOD_BCLK_SHIFT
#define EXYNOS5420_MOD_BCLK_64FS
#define EXYNOS5420_MOD_BCLK_96FS
#define EXYNOS5420_MOD_BCLK_128FS
#define EXYNOS5420_MOD_BCLK_192FS
#define EXYNOS5420_MOD_BCLK_256FS
#define EXYNOS5420_MOD_BCLK_MASK

#define EXYNOS7_MOD_RCLK_64FS
#define EXYNOS7_MOD_RCLK_128FS
#define EXYNOS7_MOD_RCLK_96FS
#define EXYNOS7_MOD_RCLK_192FS

#define PSR_PSREN
#define PSR_PSVAL(x)

#define FIC_TX2COUNT(x)
#define FIC_TX1COUNT(x)

#define FIC_TXFLUSH
#define FIC_RXFLUSH

#define FIC_TXCOUNT(x)
#define FIC_RXCOUNT(x)
#define FICS_TXCOUNT(x)

#define AHB_INTENLVL0
#define AHB_LVL0INT
#define AHB_CLRLVL0INT
#define AHB_DMARLD
#define AHB_INTMASK
#define AHB_DMAEN
#define AHB_LVLINTMASK

#define I2SSIZE_TRNMSK
#define I2SSIZE_SHIFT

#endif /* __SND_SOC_SAMSUNG_I2S_REGS_H */