/* * arch/arm/mach-tegra/include/mach/ac97.h * * Copyright (C) 2011 Toradex, Inc. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #ifndef __ARCH_ARM_MACH_TEGRA_AC97_H #define __ARCH_ARM_MACH_TEGRA_AC97_H #include #include /* Offsets from TEGRA_AC97_BASE */ #define AC_AC_CTRL_0 0 #define AC_AC_CMD_0 4 #define AC_AC_STATUS1_0 8 /* ... */ #define AC_AC_FIFO1_SCR_0 0x1c #define AC_AC_FIFO2_SCR_0 0x2c /* ... */ #define AC_AC_FIFO_OUT1_0 0x40 #define AC_AC_FIFO_IN1_0 0x80 #define AC_AC_FIFO_OUT2_0 0x140 #define AC_AC_FIFO_IN2_0 0x180 /* AC_AC_CTRL_0 */ #define AC_AC_CTRL_STM2_EN (1<<16) #define AC_AC_CTRL_DOUBLE_SAMPLING_EN (1<<11) #define AC_AC_CTRL_IO_CNTRL_EN (1<<10) #define AC_AC_CTRL_HSET_DAC_EN (1<<9) #define AC_AC_CTRL_LINE2_DAC_EN (1<<8) #define AC_AC_CTRL_PCM_LFE_EN (1<<7) #define AC_AC_CTRL_PCM_SUR_EN (1<<6) #define AC_AC_CTRL_PCM_CEN_DAC_EN (1<<5) #define AC_AC_CTRL_LINE1_DAC_EN (1<<4) #define AC_AC_CTRL_PCM_DAC_EN (1<<3) #define AC_AC_CTRL_COLD_RESET (1<<2) #define AC_AC_CTRL_WARM_RESET (1<<1) #define AC_AC_CTRL_STM_EN (1<<0) /* AC_AC_CMD_0 */ #define AC_AC_CMD_CMD_ADDR_SHIFT (24) #define AC_AC_CMD_CMD_ADDR_MASK (0xff<