linux/sound/soc/qcom/lpass-lpaif-reg.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2010-2011,2013-2015 The Linux Foundation. All rights reserved.
 */

#ifndef __LPASS_LPAIF_REG_H__
#define __LPASS_LPAIF_REG_H__

/* LPAIF I2S */

#define LPAIF_I2SCTL_REG_ADDR(v, addr, port)

#define LPAIF_I2SCTL_REG(v, port)

#define LPAIF_I2SCTL_LOOPBACK_DISABLE
#define LPAIF_I2SCTL_LOOPBACK_ENABLE

#define LPAIF_I2SCTL_SPKEN_DISABLE
#define LPAIF_I2SCTL_SPKEN_ENABLE

#define LPAIF_I2SCTL_MODE_NONE
#define LPAIF_I2SCTL_MODE_SD0
#define LPAIF_I2SCTL_MODE_SD1
#define LPAIF_I2SCTL_MODE_SD2
#define LPAIF_I2SCTL_MODE_SD3
#define LPAIF_I2SCTL_MODE_QUAD01
#define LPAIF_I2SCTL_MODE_QUAD23
#define LPAIF_I2SCTL_MODE_6CH
#define LPAIF_I2SCTL_MODE_8CH
#define LPAIF_I2SCTL_MODE_10CH
#define LPAIF_I2SCTL_MODE_12CH
#define LPAIF_I2SCTL_MODE_14CH
#define LPAIF_I2SCTL_MODE_16CH
#define LPAIF_I2SCTL_MODE_SD4
#define LPAIF_I2SCTL_MODE_SD5
#define LPAIF_I2SCTL_MODE_SD6
#define LPAIF_I2SCTL_MODE_SD7
#define LPAIF_I2SCTL_MODE_QUAD45
#define LPAIF_I2SCTL_MODE_QUAD47
#define LPAIF_I2SCTL_MODE_8CH_2

#define LPAIF_I2SCTL_SPKMODE(mode)

#define LPAIF_I2SCTL_SPKMONO_STEREO
#define LPAIF_I2SCTL_SPKMONO_MONO

#define LPAIF_I2SCTL_MICEN_DISABLE
#define LPAIF_I2SCTL_MICEN_ENABLE

#define LPAIF_I2SCTL_MICMODE(mode)

#define LPAIF_I2SCTL_MICMONO_STEREO
#define LPAIF_I2SCTL_MICMONO_MONO

#define LPAIF_I2SCTL_WSSRC_INTERNAL
#define LPAIF_I2SCTL_WSSRC_EXTERNAL

#define LPAIF_I2SCTL_BITWIDTH_16
#define LPAIF_I2SCTL_BITWIDTH_24
#define LPAIF_I2SCTL_BITWIDTH_32

#define LPAIF_I2SCTL_RESET_STATE
#define LPAIF_DMACTL_RESET_STATE


/* LPAIF IRQ */
#define LPAIF_IRQ_REG_ADDR(v, addr, port)

#define LPAIF_IRQ_PORT_HOST

#define LPAIF_IRQEN_REG(v, port)
#define LPAIF_IRQSTAT_REG(v, port)
#define LPAIF_IRQCLEAR_REG(v, port)

/* LPAIF RXTX IRQ */
#define LPAIF_RXTX_IRQ_REG_ADDR(v, addr, port)

#define LPAIF_RXTX_IRQEN_REG(v, port)
#define LPAIF_RXTX_IRQSTAT_REG(v, port)
#define LPAIF_RXTX_IRQCLEAR_REG(v, port)

/* LPAIF VA IRQ */
#define LPAIF_VA_IRQ_REG_ADDR(v, addr, port)

#define LPAIF_VA_IRQEN_REG(v, port)
#define LPAIF_VA_IRQSTAT_REG(v, port)
#define LPAIF_VA_IRQCLEAR_REG(v, port)

#define LPASS_HDMITX_APP_IRQ_REG_ADDR(v, addr)

#define LPASS_HDMITX_APP_IRQEN_REG(v)
#define LPASS_HDMITX_APP_IRQSTAT_REG(v)
#define LPASS_HDMITX_APP_IRQCLEAR_REG(v)

#define LPAIF_IRQ_BITSTRIDE

#define LPAIF_IRQ_PER(chan)
#define LPAIF_IRQ_XRUN(chan)
#define LPAIF_IRQ_ERR(chan)

#define LPAIF_IRQ_ALL(chan)
#define LPAIF_IRQ_HDMI_REQ_ON_PRELOAD(chan)
#define LPAIF_IRQ_HDMI_SDEEP_AUD_DIS(chan)
#define LPAIF_IRQ_HDMI_METADONE

/* LPAIF DMA */
#define LPAIF_HDMI_RDMA_REG_ADDR(v, addr, chan)

#define LPAIF_HDMI_RDMACTL_AUDINTF(id)

#define LPAIF_HDMI_RDMACTL_REG(v, chan)
#define LPAIF_HDMI_RDMABASE_REG(v, chan)
#define LPAIF_HDMI_RDMABUFF_REG(v, chan)
#define LPAIF_HDMI_RDMACURR_REG(v, chan)
#define LPAIF_HDMI_RDMAPER_REG(v, chan)
#define LPAIF_HDMI_RDMAPERCNT_REG(v, chan)

#define LPAIF_RDMA_REG_ADDR(v, addr, chan)

#define LPAIF_RDMACTL_AUDINTF(id)

#define LPAIF_RDMACTL_REG(v, chan)
#define LPAIF_RDMABASE_REG(v, chan)
#define LPAIF_RDMABUFF_REG(v, chan)
#define LPAIF_RDMACURR_REG(v, chan)
#define LPAIF_RDMAPER_REG(v, chan)
#define LPAIF_RDMAPERCNT_REG(v, chan)

#define LPAIF_WRDMA_REG_ADDR(v, addr, chan)

#define LPAIF_WRDMACTL_REG(v, chan)
#define LPAIF_WRDMABASE_REG(v, chan)
#define LPAIF_WRDMABUFF_REG(v, chan)
#define LPAIF_WRDMACURR_REG(v, chan)
#define LPAIF_WRDMAPER_REG(v, chan)
#define LPAIF_WRDMAPERCNT_REG(v, chan)

#define LPAIF_INTFDMA_REG(v, chan, reg, dai_id)

#define __LPAIF_DMA_REG(v, chan, dir, reg, dai_id)

#define LPAIF_DMACTL_REG(v, chan, dir, dai_id)
#define LPAIF_DMABASE_REG(v, chan, dir, dai_id)
#define LPAIF_DMABUFF_REG(v, chan, dir, dai_id)
#define LPAIF_DMACURR_REG(v, chan, dir, dai_id)
#define LPAIF_DMAPER_REG(v, chan, dir, dai_id)
#define LPAIF_DMAPERCNT_REG(v, chan, dir, dai_id)

#define LPAIF_CDC_RDMA_REG_ADDR(v, addr, chan, dai_id)

#define LPAIF_CDC_RXTX_RDMACTL_REG(v, chan, dai_id)
#define LPAIF_CDC_RXTX_RDMABASE_REG(v, chan, dai_id)
#define LPAIF_CDC_RXTX_RDMABUFF_REG(v, chan, dai_id)
#define LPAIF_CDC_RXTX_RDMACURR_REG(v, chan, dai_id)
#define LPAIF_CDC_RXTX_RDMAPER_REG(v, chan, dai_id)
#define LPAIF_CDC_RXTX_RDMA_INTF_REG(v, chan, dai_id)

#define LPAIF_CDC_VA_RDMACTL_REG(v, chan, dai_id)
#define LPAIF_CDC_VA_RDMABASE_REG(v, chan, dai_id)
#define LPAIF_CDC_VA_RDMABUFF_REG(v, chan, dai_id)
#define LPAIF_CDC_VA_RDMACURR_REG(v, chan, dai_id)
#define LPAIF_CDC_VA_RDMAPER_REG(v, chan, dai_id)
#define LPAIF_CDC_VA_RDMA_INTF_REG(v, chan, dai_id)

#define LPAIF_CDC_WRDMA_REG_ADDR(v, addr, chan, dai_id)

#define LPAIF_CDC_RXTX_WRDMACTL_REG(v, chan, dai_id)
#define LPAIF_CDC_RXTX_WRDMABASE_REG(v, chan, dai_id)
#define LPAIF_CDC_RXTX_WRDMABUFF_REG(v, chan, dai_id)
#define LPAIF_CDC_RXTX_WRDMACURR_REG(v, chan, dai_id)
#define LPAIF_CDC_RXTX_WRDMAPER_REG(v, chan, dai_id)
#define LPAIF_CDC_RXTX_WRDMA_INTF_REG(v, chan, dai_id)

#define LPAIF_CDC_VA_WRDMACTL_REG(v, chan, dai_id)
#define LPAIF_CDC_VA_WRDMABASE_REG(v, chan, dai_id)
#define LPAIF_CDC_VA_WRDMABUFF_REG(v, chan, dai_id)
#define LPAIF_CDC_VA_WRDMACURR_REG(v, chan, dai_id)
#define LPAIF_CDC_VA_WRDMAPER_REG(v, chan, dai_id)
#define LPAIF_CDC_VA_WRDMA_INTF_REG(v, chan, dai_id)

#define __LPAIF_CDC_RDDMA_REG(v, chan, dir, reg, dai_id)

#define __LPAIF_CDC_WRDMA_REG(v, chan, dir, reg, dai_id)

#define __LPAIF_CDC_DMA_REG(v, chan, dir, reg, dai_id)

#define LPAIF_CDC_INTF_REG(v, chan, dir, dai_id)

#define LPAIF_INTF_REG(v, chan, dir, dai_id)

#define LPAIF_DMACTL_BURSTEN_SINGLE
#define LPAIF_DMACTL_BURSTEN_INCR4

#define LPAIF_DMACTL_WPSCNT_ONE
#define LPAIF_DMACTL_WPSCNT_TWO
#define LPAIF_DMACTL_WPSCNT_THREE
#define LPAIF_DMACTL_WPSCNT_FOUR
#define LPAIF_DMACTL_WPSCNT_SIX
#define LPAIF_DMACTL_WPSCNT_EIGHT
#define LPAIF_DMACTL_WPSCNT_TEN
#define LPAIF_DMACTL_WPSCNT_TWELVE
#define LPAIF_DMACTL_WPSCNT_FOURTEEN
#define LPAIF_DMACTL_WPSCNT_SIXTEEN

#define LPAIF_DMACTL_AUDINTF(id)

#define LPAIF_DMACTL_FIFOWM_1
#define LPAIF_DMACTL_FIFOWM_2
#define LPAIF_DMACTL_FIFOWM_3
#define LPAIF_DMACTL_FIFOWM_4
#define LPAIF_DMACTL_FIFOWM_5
#define LPAIF_DMACTL_FIFOWM_6
#define LPAIF_DMACTL_FIFOWM_7
#define LPAIF_DMACTL_FIFOWM_8
#define LPAIF_DMACTL_FIFOWM_9
#define LPAIF_DMACTL_FIFOWM_10
#define LPAIF_DMACTL_FIFOWM_11
#define LPAIF_DMACTL_FIFOWM_12
#define LPAIF_DMACTL_FIFOWM_13
#define LPAIF_DMACTL_FIFOWM_14
#define LPAIF_DMACTL_FIFOWM_15
#define LPAIF_DMACTL_FIFOWM_16
#define LPAIF_DMACTL_FIFOWM_17
#define LPAIF_DMACTL_FIFOWM_18
#define LPAIF_DMACTL_FIFOWM_19
#define LPAIF_DMACTL_FIFOWM_20
#define LPAIF_DMACTL_FIFOWM_21
#define LPAIF_DMACTL_FIFOWM_22
#define LPAIF_DMACTL_FIFOWM_23
#define LPAIF_DMACTL_FIFOWM_24
#define LPAIF_DMACTL_FIFOWM_25
#define LPAIF_DMACTL_FIFOWM_26
#define LPAIF_DMACTL_FIFOWM_27
#define LPAIF_DMACTL_FIFOWM_28
#define LPAIF_DMACTL_FIFOWM_29
#define LPAIF_DMACTL_FIFOWM_30
#define LPAIF_DMACTL_FIFOWM_31
#define LPAIF_DMACTL_FIFOWM_32

#define LPAIF_DMACTL_ENABLE_OFF
#define LPAIF_DMACTL_ENABLE_ON

#define LPAIF_DMACTL_DYNCLK_OFF
#define LPAIF_DMACTL_DYNCLK_ON

#endif /* __LPASS_LPAIF_REG_H__ */