Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef WM8785_H_INCLUDED
0003 #define WM8785_H_INCLUDED
0004 
0005 #define WM8785_R0   0
0006 #define WM8785_R1   1
0007 #define WM8785_R2   2
0008 #define WM8785_R7   7
0009 
0010 /* R0 */
0011 #define WM8785_MCR_MASK     0x007
0012 #define WM8785_MCR_SLAVE    0x000
0013 #define WM8785_MCR_MASTER_128   0x001
0014 #define WM8785_MCR_MASTER_192   0x002
0015 #define WM8785_MCR_MASTER_256   0x003
0016 #define WM8785_MCR_MASTER_384   0x004
0017 #define WM8785_MCR_MASTER_512   0x005
0018 #define WM8785_MCR_MASTER_768   0x006
0019 #define WM8785_OSR_MASK     0x018
0020 #define WM8785_OSR_SINGLE   0x000
0021 #define WM8785_OSR_DOUBLE   0x008
0022 #define WM8785_OSR_QUAD     0x010
0023 #define WM8785_FORMAT_MASK  0x060
0024 #define WM8785_FORMAT_RJUST 0x000
0025 #define WM8785_FORMAT_LJUST 0x020
0026 #define WM8785_FORMAT_I2S   0x040
0027 #define WM8785_FORMAT_DSP   0x060
0028 /* R1 */
0029 #define WM8785_WL_MASK      0x003
0030 #define WM8785_WL_16        0x000
0031 #define WM8785_WL_20        0x001
0032 #define WM8785_WL_24        0x002
0033 #define WM8785_WL_32        0x003
0034 #define WM8785_LRP      0x004
0035 #define WM8785_BCLKINV      0x008
0036 #define WM8785_LRSWAP       0x010
0037 #define WM8785_DEVNO_MASK   0x0e0
0038 /* R2 */
0039 #define WM8785_HPFR     0x001
0040 #define WM8785_HPFL     0x002
0041 #define WM8785_SDODIS       0x004
0042 #define WM8785_PWRDNR       0x008
0043 #define WM8785_PWRDNL       0x010
0044 #define WM8785_TDM_MASK     0x1c0
0045 
0046 #endif