linux/sound/soc/mxs/mxs-saif.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved.
 */


#ifndef _MXS_SAIF_H
#define _MXS_SAIF_H

#define SAIF_CTRL
#define SAIF_STAT
#define SAIF_DATA
#define SAIF_VERSION

/* SAIF_CTRL */
#define BM_SAIF_CTRL_SFTRST
#define BM_SAIF_CTRL_CLKGATE
#define BP_SAIF_CTRL_BITCLK_MULT_RATE
#define BM_SAIF_CTRL_BITCLK_MULT_RATE
#define BF_SAIF_CTRL_BITCLK_MULT_RATE(v)
#define BM_SAIF_CTRL_BITCLK_BASE_RATE
#define BM_SAIF_CTRL_FIFO_ERROR_IRQ_EN
#define BM_SAIF_CTRL_FIFO_SERVICE_IRQ_EN
#define BP_SAIF_CTRL_RSRVD2
#define BM_SAIF_CTRL_RSRVD2

#define BP_SAIF_CTRL_DMAWAIT_COUNT
#define BM_SAIF_CTRL_DMAWAIT_COUNT
#define BF_SAIF_CTRL_DMAWAIT_COUNT(v)
#define BP_SAIF_CTRL_CHANNEL_NUM_SELECT
#define BM_SAIF_CTRL_CHANNEL_NUM_SELECT
#define BF_SAIF_CTRL_CHANNEL_NUM_SELECT(v)
#define BM_SAIF_CTRL_LRCLK_PULSE
#define BM_SAIF_CTRL_BIT_ORDER
#define BM_SAIF_CTRL_DELAY
#define BM_SAIF_CTRL_JUSTIFY
#define BM_SAIF_CTRL_LRCLK_POLARITY
#define BM_SAIF_CTRL_BITCLK_EDGE
#define BP_SAIF_CTRL_WORD_LENGTH
#define BM_SAIF_CTRL_WORD_LENGTH
#define BF_SAIF_CTRL_WORD_LENGTH(v)
#define BM_SAIF_CTRL_BITCLK_48XFS_ENABLE
#define BM_SAIF_CTRL_SLAVE_MODE
#define BM_SAIF_CTRL_READ_MODE
#define BM_SAIF_CTRL_RUN

/* SAIF_STAT */
#define BM_SAIF_STAT_PRESENT
#define BP_SAIF_STAT_RSRVD2
#define BM_SAIF_STAT_RSRVD2
#define BF_SAIF_STAT_RSRVD2(v)
#define BM_SAIF_STAT_DMA_PREQ
#define BP_SAIF_STAT_RSRVD1
#define BM_SAIF_STAT_RSRVD1
#define BF_SAIF_STAT_RSRVD1(v)

#define BM_SAIF_STAT_FIFO_UNDERFLOW_IRQ
#define BM_SAIF_STAT_FIFO_OVERFLOW_IRQ
#define BM_SAIF_STAT_FIFO_SERVICE_IRQ
#define BP_SAIF_STAT_RSRVD0
#define BM_SAIF_STAT_RSRVD0
#define BF_SAIF_STAT_RSRVD0(v)
#define BM_SAIF_STAT_BUSY

/* SAFI_DATA */
#define BP_SAIF_DATA_PCM_RIGHT
#define BM_SAIF_DATA_PCM_RIGHT
#define BF_SAIF_DATA_PCM_RIGHT(v)
#define BP_SAIF_DATA_PCM_LEFT
#define BM_SAIF_DATA_PCM_LEFT
#define BF_SAIF_DATA_PCM_LEFT(v)

/* SAIF_VERSION */
#define BP_SAIF_VERSION_MAJOR
#define BM_SAIF_VERSION_MAJOR
#define BF_SAIF_VERSION_MAJOR(v)
#define BP_SAIF_VERSION_MINOR
#define BM_SAIF_VERSION_MINOR
#define BF_SAIF_VERSION_MINOR(v)
#define BP_SAIF_VERSION_STEP
#define BM_SAIF_VERSION_STEP
#define BF_SAIF_VERSION_STEP(v)

#define MXS_SAIF_MCLK

#include "mxs-pcm.h"

struct mxs_saif {};

extern int mxs_saif_put_mclk(unsigned int saif_id);
extern int mxs_saif_get_mclk(unsigned int saif_id, unsigned int mclk,
					unsigned int rate);
#endif