1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef WM8785_H_INCLUDED 2 #ifndef WM8785_H_INCLUDED 3 #define WM8785_H_INCLUDED 3 #define WM8785_H_INCLUDED 4 4 5 #define WM8785_R0 0 5 #define WM8785_R0 0 6 #define WM8785_R1 1 6 #define WM8785_R1 1 7 #define WM8785_R2 2 7 #define WM8785_R2 2 8 #define WM8785_R7 7 8 #define WM8785_R7 7 9 9 10 /* R0 */ 10 /* R0 */ 11 #define WM8785_MCR_MASK 0x007 11 #define WM8785_MCR_MASK 0x007 12 #define WM8785_MCR_SLAVE 0x000 12 #define WM8785_MCR_SLAVE 0x000 13 #define WM8785_MCR_MASTER_128 0x001 13 #define WM8785_MCR_MASTER_128 0x001 14 #define WM8785_MCR_MASTER_192 0x002 14 #define WM8785_MCR_MASTER_192 0x002 15 #define WM8785_MCR_MASTER_256 0x003 15 #define WM8785_MCR_MASTER_256 0x003 16 #define WM8785_MCR_MASTER_384 0x004 16 #define WM8785_MCR_MASTER_384 0x004 17 #define WM8785_MCR_MASTER_512 0x005 17 #define WM8785_MCR_MASTER_512 0x005 18 #define WM8785_MCR_MASTER_768 0x006 18 #define WM8785_MCR_MASTER_768 0x006 19 #define WM8785_OSR_MASK 0x018 19 #define WM8785_OSR_MASK 0x018 20 #define WM8785_OSR_SINGLE 0x000 20 #define WM8785_OSR_SINGLE 0x000 21 #define WM8785_OSR_DOUBLE 0x008 21 #define WM8785_OSR_DOUBLE 0x008 22 #define WM8785_OSR_QUAD 0x010 22 #define WM8785_OSR_QUAD 0x010 23 #define WM8785_FORMAT_MASK 0x060 23 #define WM8785_FORMAT_MASK 0x060 24 #define WM8785_FORMAT_RJUST 0x000 24 #define WM8785_FORMAT_RJUST 0x000 25 #define WM8785_FORMAT_LJUST 0x020 25 #define WM8785_FORMAT_LJUST 0x020 26 #define WM8785_FORMAT_I2S 0x040 26 #define WM8785_FORMAT_I2S 0x040 27 #define WM8785_FORMAT_DSP 0x060 27 #define WM8785_FORMAT_DSP 0x060 28 /* R1 */ 28 /* R1 */ 29 #define WM8785_WL_MASK 0x003 29 #define WM8785_WL_MASK 0x003 30 #define WM8785_WL_16 0x000 30 #define WM8785_WL_16 0x000 31 #define WM8785_WL_20 0x001 31 #define WM8785_WL_20 0x001 32 #define WM8785_WL_24 0x002 32 #define WM8785_WL_24 0x002 33 #define WM8785_WL_32 0x003 33 #define WM8785_WL_32 0x003 34 #define WM8785_LRP 0x004 34 #define WM8785_LRP 0x004 35 #define WM8785_BCLKINV 0x008 35 #define WM8785_BCLKINV 0x008 36 #define WM8785_LRSWAP 0x010 36 #define WM8785_LRSWAP 0x010 37 #define WM8785_DEVNO_MASK 0x0e0 37 #define WM8785_DEVNO_MASK 0x0e0 38 /* R2 */ 38 /* R2 */ 39 #define WM8785_HPFR 0x001 39 #define WM8785_HPFR 0x001 40 #define WM8785_HPFL 0x002 40 #define WM8785_HPFL 0x002 41 #define WM8785_SDODIS 0x004 41 #define WM8785_SDODIS 0x004 42 #define WM8785_PWRDNR 0x008 42 #define WM8785_PWRDNR 0x008 43 #define WM8785_PWRDNL 0x010 43 #define WM8785_PWRDNL 0x010 44 #define WM8785_TDM_MASK 0x1c0 44 #define WM8785_TDM_MASK 0x1c0 45 45 46 #endif 46 #endif 47 47
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.