linux/include/linux/mfd/davinci_voicecodec.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * DaVinci Voice Codec Core Interface for TI platforms
 *
 * Copyright (C) 2010 Texas Instruments, Inc
 *
 * Author: Miguel Aguilar <[email protected]>
 */

#ifndef __LINUX_MFD_DAVINCI_VOICECODEC_H_
#define __LINUX_MFD_DAVINCI_VOICECODEC_H_

#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/mfd/core.h>
#include <linux/platform_data/edma.h>

struct regmap;

/*
 * Register values.
 */
#define DAVINCI_VC_PID
#define DAVINCI_VC_CTRL
#define DAVINCI_VC_INTEN
#define DAVINCI_VC_INTSTATUS
#define DAVINCI_VC_INTCLR
#define DAVINCI_VC_EMUL_CTRL
#define DAVINCI_VC_RFIFO
#define DAVINCI_VC_WFIFO
#define DAVINCI_VC_FIFOSTAT
#define DAVINCI_VC_TST_CTRL
#define DAVINCI_VC_REG05
#define DAVINCI_VC_REG09
#define DAVINCI_VC_REG12

/* DAVINCI_VC_CTRL bit fields */
#define DAVINCI_VC_CTRL_MASK
#define DAVINCI_VC_CTRL_RSTADC
#define DAVINCI_VC_CTRL_RSTDAC
#define DAVINCI_VC_CTRL_RD_BITS_8
#define DAVINCI_VC_CTRL_RD_UNSIGNED
#define DAVINCI_VC_CTRL_WD_BITS_8
#define DAVINCI_VC_CTRL_WD_UNSIGNED
#define DAVINCI_VC_CTRL_RFIFOEN
#define DAVINCI_VC_CTRL_RFIFOCL
#define DAVINCI_VC_CTRL_RFIFOMD_WORD_1
#define DAVINCI_VC_CTRL_WFIFOEN
#define DAVINCI_VC_CTRL_WFIFOCL
#define DAVINCI_VC_CTRL_WFIFOMD_WORD_1

/* DAVINCI_VC_INT bit fields */
#define DAVINCI_VC_INT_MASK
#define DAVINCI_VC_INT_RDRDY_MASK
#define DAVINCI_VC_INT_RERROVF_MASK
#define DAVINCI_VC_INT_RERRUDR_MASK
#define DAVINCI_VC_INT_WDREQ_MASK
#define DAVINCI_VC_INT_WERROVF_MASKBIT
#define DAVINCI_VC_INT_WERRUDR_MASK

/* DAVINCI_VC_REG05 bit fields */
#define DAVINCI_VC_REG05_PGA_GAIN

/* DAVINCI_VC_REG09 bit fields */
#define DAVINCI_VC_REG09_MUTE
#define DAVINCI_VC_REG09_DIG_ATTEN

/* DAVINCI_VC_REG12 bit fields */
#define DAVINCI_VC_REG12_POWER_ALL_ON
#define DAVINCI_VC_REG12_POWER_ALL_OFF

#define DAVINCI_VC_CELLS

enum davinci_vc_cells {};

struct davinci_vcif {};

struct davinci_vc {};

#endif