/* * max98090.h -- MAX98090 ALSA SoC Audio driver * * Copyright 2011-2012 Maxim Integrated Products * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */#ifndef _MAX98090_H#define _MAX98090_H/* * The default operating frequency for a DMIC attached to the codec. * This can be overridden by a device tree property. */#define MAX98090_DEFAULT_DMIC_FREQ 2500000/* * MAX98090 Register Definitions */#define M98090_REG_SOFTWARE_RESET 0x00#define M98090_REG_DEVICE_STATUS 0x01#define M98090_REG_JACK_STATUS 0x02#define M98090_REG_INTERRUPT_S 0x03#define M98090_REG_QUICK_SYSTEM_CLOCK 0x04#define M98090_REG_QUICK_SAMPLE_RATE 0x05#define M98090_REG_DAI_INTERFACE 0x06#define M98090_REG_DAC_PATH 0x07#define M98090_REG_MIC_DIRECT_TO_ADC 0x08#define M98090_REG_LINE_TO_ADC 0x09#define M98090_REG_ANALOG_MIC_LOOP 0x0A#define M98090_REG_ANALOG_LINE_LOOP 0x0B#define M98090_REG_RESERVED 0x0C#define M98090_REG_LINE_INPUT_CONFIG 0x0D#define M98090_REG_LINE_INPUT_LEVEL 0x0E#define M98090_REG_INPUT_MODE 0x0F#define M98090_REG_MIC1_INPUT_LEVEL 0x10#define M98090_REG_MIC2_INPUT_LEVEL 0x11#define M98090_REG_MIC_BIAS_VOLTAGE 0x12#define M98090_REG_DIGITAL_MIC_ENABLE 0x13#define M98090_REG_DIGITAL_MIC_CONFIG 0x14#define M98090_REG_LEFT_ADC_MIXER 0x15#define M98090_REG_RIGHT_ADC_MIXER 0x16#define M98090_REG_LEFT_ADC_LEVEL 0x17