linux/sound/spi/at73c213.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Driver for the AT73C213 16-bit stereo DAC on Atmel ATSTK1000
 *
 * Copyright (C) 2006 - 2007 Atmel Corporation
 */

#ifndef _SND_AT73C213_H
#define _SND_AT73C213_H

/* DAC control register */
#define DAC_CTRL
#define DAC_CTRL_ONPADRV
#define DAC_CTRL_ONAUXIN
#define DAC_CTRL_ONDACR
#define DAC_CTRL_ONDACL
#define DAC_CTRL_ONLNOR
#define DAC_CTRL_ONLNOL
#define DAC_CTRL_ONLNIR
#define DAC_CTRL_ONLNIL

/* DAC left line in gain register */
#define DAC_LLIG
#define DAC_LLIG_LLIG

/* DAC right line in gain register */
#define DAC_RLIG
#define DAC_RLIG_RLIG

/* DAC Left Master Playback Gain Register */
#define DAC_LMPG
#define DAC_LMPG_LMPG

/* DAC Right Master Playback Gain Register */
#define DAC_RMPG
#define DAC_RMPG_RMPG

/* DAC Left Line Out Gain Register */
#define DAC_LLOG
#define DAC_LLOG_LLOG

/* DAC Right Line Out Gain Register */
#define DAC_RLOG
#define DAC_RLOG_RLOG

/* DAC Output Level Control Register */
#define DAC_OLC
#define DAC_OLC_RSHORT
#define DAC_OLC_ROLC
#define DAC_OLC_LSHORT
#define DAC_OLC_LOLC

/* DAC Mixer Control Register */
#define DAC_MC
#define DAC_MC_INVR
#define DAC_MC_INVL
#define DAC_MC_RMSMIN2
#define DAC_MC_RMSMIN1
#define DAC_MC_LMSMIN2
#define DAC_MC_LMSMIN1

/* DAC Clock and Sampling Frequency Control Register */
#define DAC_CSFC
#define DAC_CSFC_OVRSEL

/* DAC Miscellaneous Register */
#define DAC_MISC
#define DAC_MISC_VCMCAPSEL
#define DAC_MISC_DINTSEL
#define DAC_MISC_DITHEN
#define DAC_MISC_DEEMPEN
#define DAC_MISC_NBITS

/* DAC Precharge Control Register */
#define DAC_PRECH
#define DAC_PRECH_PRCHGPDRV
#define DAC_PRECH_PRCHGAUX1
#define DAC_PRECH_PRCHGLNOR
#define DAC_PRECH_PRCHGLNOL
#define DAC_PRECH_PRCHGLNIR
#define DAC_PRECH_PRCHGLNIL
#define DAC_PRECH_PRCHG
#define DAC_PRECH_ONMSTR

/* DAC Auxiliary Input Gain Control Register */
#define DAC_AUXG
#define DAC_AUXG_AUXG

/* DAC Reset Register */
#define DAC_RST
#define DAC_RST_RESMASK
#define DAC_RST_RESFILZ
#define DAC_RST_RSTZ

/* Power Amplifier Control Register */
#define PA_CTRL
#define PA_CTRL_APAON
#define PA_CTRL_APAPRECH
#define PA_CTRL_APALP
#define PA_CTRL_APAGAIN

#endif /* _SND_AT73C213_H */