/* * wm8904.h -- WM8904 ASoC driver * * Copyright 2009 Wolfson Microelectronics, plc * * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> * * 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 _WM8904_H#define _WM8904_H#define WM8904_CLK_MCLK 1#define WM8904_CLK_FLL 2#define WM8904_FLL_MCLK 1#define WM8904_FLL_BCLK 2#define WM8904_FLL_LRCLK 3#define WM8904_FLL_FREE_RUNNING 4/* * Register values. */#define WM8904_SW_RESET_AND_ID 0x00#define WM8904_REVISION 0x01#define WM8904_BIAS_CONTROL_0 0x04#define WM8904_VMID_CONTROL_0 0x05#define WM8904_MIC_BIAS_CONTROL_0 0x06#define WM8904_MIC_BIAS_CONTROL_1 0x07#define WM8904_ANALOGUE_DAC_0 0x08#define WM8904_MIC_FILTER_CONTROL 0x09#define WM8904_ANALOGUE_ADC_0 0x0A#define WM8904_POWER_MANAGEMENT_0 0x0C#define WM8904_POWER_MANAGEMENT_2 0x0E#define WM8904_POWER_MANAGEMENT_3 0x0F#define WM8904_POWER_MANAGEMENT_6 0x12#define WM8904_CLOCK_RATES_0 0x14#define WM8904_CLOCK_RATES_1 0x15#define WM8904_C