linux/sound/soc/ti/omap-mcpdm.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * omap-mcpdm.h
 *
 * Copyright (C) 2009 - 2011 Texas Instruments
 *
 * Contact: Misael Lopez Cruz <[email protected]>
 */

#ifndef __OMAP_MCPDM_H__
#define __OMAP_MCPDM_H__

#define MCPDM_REG_REVISION
#define MCPDM_REG_SYSCONFIG
#define MCPDM_REG_IRQSTATUS_RAW
#define MCPDM_REG_IRQSTATUS
#define MCPDM_REG_IRQENABLE_SET
#define MCPDM_REG_IRQENABLE_CLR
#define MCPDM_REG_IRQWAKE_EN
#define MCPDM_REG_DMAENABLE_SET
#define MCPDM_REG_DMAENABLE_CLR
#define MCPDM_REG_DMAWAKEEN
#define MCPDM_REG_CTRL
#define MCPDM_REG_DN_DATA
#define MCPDM_REG_UP_DATA
#define MCPDM_REG_FIFO_CTRL_DN
#define MCPDM_REG_FIFO_CTRL_UP
#define MCPDM_REG_DN_OFFSET

/*
 * MCPDM_IRQ bit fields
 * IRQSTATUS_RAW, IRQSTATUS, IRQENABLE_SET, IRQENABLE_CLR
 */

#define MCPDM_DN_IRQ
#define MCPDM_DN_IRQ_EMPTY
#define MCPDM_DN_IRQ_ALMST_EMPTY
#define MCPDM_DN_IRQ_FULL

#define MCPDM_UP_IRQ
#define MCPDM_UP_IRQ_EMPTY
#define MCPDM_UP_IRQ_ALMST_FULL
#define MCPDM_UP_IRQ_FULL

#define MCPDM_DOWNLINK_IRQ_MASK
#define MCPDM_UPLINK_IRQ_MASK

/*
 * MCPDM_DMAENABLE bit fields
 */

#define MCPDM_DMA_DN_ENABLE
#define MCPDM_DMA_UP_ENABLE

/*
 * MCPDM_CTRL bit fields
 */

#define MCPDM_PDM_UPLINK_EN(x)
#define MCPDM_PDM_DOWNLINK_EN(x)
#define MCPDM_PDMOUTFORMAT
#define MCPDM_CMD_INT
#define MCPDM_STATUS_INT
#define MCPDM_SW_UP_RST
#define MCPDM_SW_DN_RST
#define MCPDM_WD_EN
#define MCPDM_PDM_UP_MASK
#define MCPDM_PDM_DN_MASK


#define MCPDM_PDMOUTFORMAT_LJUST
#define MCPDM_PDMOUTFORMAT_RJUST

/*
 * MCPDM_FIFO_CTRL bit fields
 */

#define MCPDM_UP_THRES_MAX
#define MCPDM_DN_THRES_MAX

/*
 * MCPDM_DN_OFFSET bit fields
 */

#define MCPDM_DN_OFST_RX1_EN
#define MCPDM_DNOFST_RX1(x)
#define MCPDM_DN_OFST_RX2_EN
#define MCPDM_DNOFST_RX2(x)

void omap_mcpdm_configure_dn_offsets(struct snd_soc_pcm_runtime *rtd,
				    u8 rx1, u8 rx2);

#endif	/* End of __OMAP_MCPDM_H__ */