1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Driver for the AT73C213 16-bit stereo DAC on Atmel ATSTK1000
5 * Copyright (C) 2006 - 2007 Atmel Corporation
8 #ifndef _SND_AT73C213_H
9 #define _SND_AT73C213_H
11 /* DAC control register */
13 #define DAC_CTRL_ONPADRV 7
14 #define DAC_CTRL_ONAUXIN 6
15 #define DAC_CTRL_ONDACR 5
16 #define DAC_CTRL_ONDACL 4
17 #define DAC_CTRL_ONLNOR 3
18 #define DAC_CTRL_ONLNOL 2
19 #define DAC_CTRL_ONLNIR 1
20 #define DAC_CTRL_ONLNIL 0
22 /* DAC left line in gain register */
24 #define DAC_LLIG_LLIG 0
26 /* DAC right line in gain register */
28 #define DAC_RLIG_RLIG 0
30 /* DAC Left Master Playback Gain Register */
32 #define DAC_LMPG_LMPG 0
34 /* DAC Right Master Playback Gain Register */
36 #define DAC_RMPG_RMPG 0
38 /* DAC Left Line Out Gain Register */
40 #define DAC_LLOG_LLOG 0
42 /* DAC Right Line Out Gain Register */
44 #define DAC_RLOG_RLOG 0
46 /* DAC Output Level Control Register */
48 #define DAC_OLC_RSHORT 7
49 #define DAC_OLC_ROLC 4
50 #define DAC_OLC_LSHORT 3
51 #define DAC_OLC_LOLC 0
53 /* DAC Mixer Control Register */
57 #define DAC_MC_RMSMIN2 3
58 #define DAC_MC_RMSMIN1 2
59 #define DAC_MC_LMSMIN2 1
60 #define DAC_MC_LMSMIN1 0
62 /* DAC Clock and Sampling Frequency Control Register */
64 #define DAC_CSFC_OVRSEL 4
66 /* DAC Miscellaneous Register */
68 #define DAC_MISC_VCMCAPSEL 7
69 #define DAC_MISC_DINTSEL 4
70 #define DAC_MISC_DITHEN 3
71 #define DAC_MISC_DEEMPEN 2
72 #define DAC_MISC_NBITS 0
74 /* DAC Precharge Control Register */
75 #define DAC_PRECH 0x0C
76 #define DAC_PRECH_PRCHGPDRV 7
77 #define DAC_PRECH_PRCHGAUX1 6
78 #define DAC_PRECH_PRCHGLNOR 5
79 #define DAC_PRECH_PRCHGLNOL 4
80 #define DAC_PRECH_PRCHGLNIR 3
81 #define DAC_PRECH_PRCHGLNIL 2
82 #define DAC_PRECH_PRCHG 1
83 #define DAC_PRECH_ONMSTR 0
85 /* DAC Auxiliary Input Gain Control Register */
87 #define DAC_AUXG_AUXG 0
89 /* DAC Reset Register */
91 #define DAC_RST_RESMASK 2
92 #define DAC_RST_RESFILZ 1
93 #define DAC_RST_RSTZ 0
95 /* Power Amplifier Control Register */
97 #define PA_CTRL_APAON 6
98 #define PA_CTRL_APAPRECH 5
99 #define PA_CTRL_APALP 4
100 #define PA_CTRL_APAGAIN 0
102 #endif /* _SND_AT73C213_H */