/*
 * wm8900.h  --  WM890 Soc Audio driver
 *
 * 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 _WM8900_H
#define _WM8900_H

#define WM8900_FLL 1

#define WM8900_BCLK_DIV   1
#define WM8900_ADC_CLKDIV 2
#define WM8900_DAC_CLKDIV 3
#define WM8900_ADC_LRCLK  4
#define WM8900_DAC_LRCLK  5
#define WM8900_OPCLK_DIV  6
#define WM8900_LRCLK_MODE 7

#define WM8900_BCLK_DIV_1   0x00
#define WM8900_BCLK_DIV_1_5 0x02
#define WM8900_BCLK_DIV_2   0x04
#define WM8900_BCLK_DIV_3   0x06
#define WM8900_BCLK_DIV_4   0x08
#define WM8900_BCLK_DIV_5_5 0x0a
#define WM8900_BCLK_DIV_6   0x0c
#define WM8900_BCLK_DIV_8   0x0e
#define WM8900_BCLK_DIV_11  0x10
#define WM8900_BCLK_DIV_12  0x12
#define WM8900_BCLK_DIV_16  0x14
#define WM8900_BCLK_DIV_22  0x16
#define WM8900_BCLK_DIV_24  0x18
#define WM8900_BCLK_DIV_32  0x1a
#define WM8900_BCLK_DIV_44  0x1c
#define WM8900_BCLK_DIV_48  0x1e

#define WM8900_ADC_CLKDIV_1   0x00
#define WM8900_ADC_CLKDIV_1_5 0x20
#define WM8900_ADC_CLKDIV_2   0x40
#define WM8900_ADC_CLKDIV_3   0x60
#define WM8900_ADC_CLKDIV_4   0x80
#define WM8900_ADC_CLKDIV_5_5 0xa0
#define WM8900_ADC_CLKDIV_6   0xc0

#define WM8900_DAC_CLKDIV_1   0x00
#define WM8900_DAC_CLKDIV_1_5 0x04
#define WM8900_DAC_CLKDIV_2   0x08
#define WM8900_DAC_CLKDIV_3   0x0c
#define WM8900_DAC_CLKDIV_4   0x10
#define WM8900_DAC_CLKDIV_5_5 0x14
#define WM8900_DAC_CLKDIV_6   0x18

#endif
</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=89389b4d5524350e74974cf711fe4a18206c09d3'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/sound/pci/ctxfi/cthw20k2.h'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/sound/pci/ctxfi/cthw20k2.h?id=89389b4d5524350e74974cf711fe4a18206c09d3'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/sound/pci/ctxfi/cthw20k2.h?id=89389b4d5524350e74974cf711fe4a18206c09d3'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/sound/pci/ctxfi/cthw20k2.h?id=89389b4d5524350e74974cf711fe4a18206c09d3'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/sound/pci/ctxfi/cthw20k2.h'>
<input type='hidden' name='id' value='89389b4d5524350e74974cf711fe4a18206c09d3'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=89389b4d5524350e74974cf711fe4a18206c09d3'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound?id=89389b4d5524350e74974cf711fe4a18206c09d3'>sound</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/pci?id=89389b4d5524350e74974cf711fe4a18206c09d3'>pci</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/pci/ctxfi?id=89389b4d5524350e74974cf711fe4a18206c09d3'>ctxfi</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/pci/ctxfi/cthw20k2.h?id=89389b4d5524350e74974cf711fe4a18206c09d3'>cthw20k2.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/sound/pci/ctxfi/cthw20k2.h?id=89389b4d5524350e74974cf711fe4a18206c09d3&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>