linux/sound/soc/rockchip/rockchip_pdm.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Rockchip PDM ALSA SoC Digital Audio Interface(DAI)  driver
 *
 * Copyright (C) 2017 Fuzhou Rockchip Electronics Co., Ltd
 */

#ifndef _ROCKCHIP_PDM_H
#define _ROCKCHIP_PDM_H

/* PDM REGS */
#define PDM_SYSCONFIG
#define PDM_CTRL0
#define PDM_CTRL1
#define PDM_CLK_CTRL
#define PDM_HPF_CTRL
#define PDM_FIFO_CTRL
#define PDM_DMA_CTRL
#define PDM_INT_EN
#define PDM_INT_CLR
#define PDM_INT_ST
#define PDM_RXFIFO_DATA
#define PDM_DATA_VALID
#define PDM_VERSION

/* PDM_SYSCONFIG */
#define PDM_RX_MASK
#define PDM_RX_START
#define PDM_RX_STOP
#define PDM_RX_CLR_MASK
#define PDM_RX_CLR_WR
#define PDM_RX_CLR_DONE

/* PDM CTRL0 */
#define PDM_PATH_MSK
#define PDM_MODE_MSK
#define PDM_MODE_RJ
#define PDM_MODE_LJ
#define PDM_PATH3_EN
#define PDM_PATH2_EN
#define PDM_PATH1_EN
#define PDM_PATH0_EN
#define PDM_HWT_EN
#define PDM_SAMPLERATE_MSK
#define PDM_SAMPLERATE(x)
#define PDM_VDW_MSK
#define PDM_VDW(X)

/* PDM CTRL1 */
#define PDM_FD_NUMERATOR_SFT
#define PDM_FD_NUMERATOR_MSK
#define PDM_FD_DENOMINATOR_SFT
#define PDM_FD_DENOMINATOR_MSK

/* PDM CLK CTRL */
#define PDM_PATH_SHIFT(x)
#define PDM_PATH_MASK(x)
#define PDM_PATH(x, v)
#define PDM_CLK_FD_RATIO_MSK
#define PDM_CLK_FD_RATIO_40
#define PDM_CLK_FD_RATIO_35
#define PDM_CLK_MSK
#define PDM_CLK_EN
#define PDM_CLK_DIS
#define PDM_CKP_MSK
#define PDM_CKP_NORMAL
#define PDM_CKP_INVERTED
#define PDM_DS_RATIO_MSK
#define PDM_CLK_320FS
#define PDM_CLK_640FS
#define PDM_CLK_1280FS
#define PDM_CLK_2560FS
#define PDM_CLK_5120FS
#define PDM_CIC_RATIO_MSK

/* PDM HPF CTRL */
#define PDM_HPF_LE
#define PDM_HPF_RE
#define PDM_HPF_CF_MSK
#define PDM_HPF_3P79HZ
#define PDM_HPF_60HZ
#define PDM_HPF_243HZ
#define PDM_HPF_493HZ

/* PDM DMA CTRL */
#define PDM_DMA_RD_MSK
#define PDM_DMA_RD_EN
#define PDM_DMA_RD_DIS
#define PDM_DMA_RDL_MSK
#define PDM_DMA_RDL(X)

#endif /* _ROCKCHIP_PDM_H */