/*1* Driver for the AT73C213 16-bit stereo DAC on Atmel ATSTK10002*3* Copyright (C) 2006 - 2007 Atmel Corporation4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public License as7* published by the Free Software Foundation; either version 2 of the8* License, or (at your option) any later version.9*10* This program is distributed in the hope that it will be useful, but11* WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU13* General Public License for more details.14*15* You should have received a copy of the GNU General Public License16* along with this program; if not, write to the Free Software17* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA18* 02111-1307, USA.19*20* The full GNU General Public License is included in this21* distribution in the file called COPYING.22*/2324#ifndef _SND_AT73C213_H25#define _SND_AT73C213_H2627/* DAC control register */28#define DAC_CTRL 0x0029#define DAC_CTRL_ONPADRV 730#define DAC_CTRL_ONAUXIN 631#define DAC_CTRL_ONDACR 532#define DAC_CTRL_ONDACL 433#define DAC_CTRL_ONLNOR 334#define DAC_CTRL_ONLNOL 235#define DAC_CTRL_ONLNIR 136#define DAC_CTRL_ONLNIL 03738/* DAC left line in gain register */39#define DAC_LLIG 0x0140#define DAC_LLIG_LLIG 04142/* DAC right line in gain register */43#define DAC_RLIG 0x0244#define DAC_RLIG_RLIG 04546/* DAC Left Master Playback Gain Register */47#define DAC_LMPG 0x0348#define DAC_LMPG_LMPG 04950/* DAC Right Master Playback Gain Register */51#define DAC_RMPG 0x0452#define DAC_RMPG_RMPG 05354/* DAC Left Line Out Gain Register */55#define DAC_LLOG 0x0556#define DAC_LLOG_LLOG 05758/* DAC Right Line Out Gain Register */59#define DAC_RLOG 0x0660#define DAC_RLOG_RLOG 06162/* DAC Output Level Control Register */63#define DAC_OLC 0x0764#define DAC_OLC_RSHORT 765#define DAC_OLC_ROLC 466#define DAC_OLC_LSHORT 367#define DAC_OLC_LOLC 06869/* DAC Mixer Control Register */70#define DAC_MC 0x0871#define DAC_MC_INVR 572#define DAC_MC_INVL 473#define DAC_MC_RMSMIN2 374#define DAC_MC_RMSMIN1 275#define DAC_MC_LMSMIN2 176#define DAC_MC_LMSMIN1 07778/* DAC Clock and Sampling Frequency Control Register */79#define DAC_CSFC 0x0980#define DAC_CSFC_OVRSEL 48182/* DAC Miscellaneous Register */83#define DAC_MISC 0x0A84#define DAC_MISC_VCMCAPSEL 785#define DAC_MISC_DINTSEL 486#define DAC_MISC_DITHEN 387#define DAC_MISC_DEEMPEN 288#define DAC_MISC_NBITS 08990/* DAC Precharge Control Register */91#define DAC_PRECH 0x0C92#define DAC_PRECH_PRCHGPDRV 793#define DAC_PRECH_PRCHGAUX1 694#define DAC_PRECH_PRCHGLNOR 595#define DAC_PRECH_PRCHGLNOL 496#define DAC_PRECH_PRCHGLNIR 397#define DAC_PRECH_PRCHGLNIL 298#define DAC_PRECH_PRCHG 199#define DAC_PRECH_ONMSTR 0100101/* DAC Auxiliary Input Gain Control Register */102#define DAC_AUXG 0x0D103#define DAC_AUXG_AUXG 0104105/* DAC Reset Register */106#define DAC_RST 0x10107#define DAC_RST_RESMASK 2108#define DAC_RST_RESFILZ 1109#define DAC_RST_RSTZ 0110111/* Power Amplifier Control Register */112#define PA_CTRL 0x11113#define PA_CTRL_APAON 6114#define PA_CTRL_APAPRECH 5115#define PA_CTRL_APALP 4116#define PA_CTRL_APAGAIN 0117118#endif /* _SND_AT73C213_H */119120121