1 /* SPDX-License-Identifier: GPL-2.0-only */ << 2 /* 1 /* 3 * wm8900.h -- WM890 Soc Audio driver 2 * wm8900.h -- WM890 Soc Audio driver >> 3 * >> 4 * This program is free software; you can redistribute it and/or modify >> 5 * it under the terms of the GNU General Public License version 2 as >> 6 * published by the Free Software Foundation. 4 */ 7 */ 5 8 6 #ifndef _WM8900_H 9 #ifndef _WM8900_H 7 #define _WM8900_H 10 #define _WM8900_H 8 11 9 #define WM8900_FLL 1 12 #define WM8900_FLL 1 10 13 11 #define WM8900_BCLK_DIV 1 14 #define WM8900_BCLK_DIV 1 12 #define WM8900_ADC_CLKDIV 2 15 #define WM8900_ADC_CLKDIV 2 13 #define WM8900_DAC_CLKDIV 3 16 #define WM8900_DAC_CLKDIV 3 14 #define WM8900_ADC_LRCLK 4 17 #define WM8900_ADC_LRCLK 4 15 #define WM8900_DAC_LRCLK 5 18 #define WM8900_DAC_LRCLK 5 16 #define WM8900_OPCLK_DIV 6 19 #define WM8900_OPCLK_DIV 6 17 #define WM8900_LRCLK_MODE 7 20 #define WM8900_LRCLK_MODE 7 18 21 19 #define WM8900_BCLK_DIV_1 0x00 22 #define WM8900_BCLK_DIV_1 0x00 20 #define WM8900_BCLK_DIV_1_5 0x02 23 #define WM8900_BCLK_DIV_1_5 0x02 21 #define WM8900_BCLK_DIV_2 0x04 24 #define WM8900_BCLK_DIV_2 0x04 22 #define WM8900_BCLK_DIV_3 0x06 25 #define WM8900_BCLK_DIV_3 0x06 23 #define WM8900_BCLK_DIV_4 0x08 26 #define WM8900_BCLK_DIV_4 0x08 24 #define WM8900_BCLK_DIV_5_5 0x0a 27 #define WM8900_BCLK_DIV_5_5 0x0a 25 #define WM8900_BCLK_DIV_6 0x0c 28 #define WM8900_BCLK_DIV_6 0x0c 26 #define WM8900_BCLK_DIV_8 0x0e 29 #define WM8900_BCLK_DIV_8 0x0e 27 #define WM8900_BCLK_DIV_11 0x10 30 #define WM8900_BCLK_DIV_11 0x10 28 #define WM8900_BCLK_DIV_12 0x12 31 #define WM8900_BCLK_DIV_12 0x12 29 #define WM8900_BCLK_DIV_16 0x14 32 #define WM8900_BCLK_DIV_16 0x14 30 #define WM8900_BCLK_DIV_22 0x16 33 #define WM8900_BCLK_DIV_22 0x16 31 #define WM8900_BCLK_DIV_24 0x18 34 #define WM8900_BCLK_DIV_24 0x18 32 #define WM8900_BCLK_DIV_32 0x1a 35 #define WM8900_BCLK_DIV_32 0x1a 33 #define WM8900_BCLK_DIV_44 0x1c 36 #define WM8900_BCLK_DIV_44 0x1c 34 #define WM8900_BCLK_DIV_48 0x1e 37 #define WM8900_BCLK_DIV_48 0x1e 35 38 36 #define WM8900_ADC_CLKDIV_1 0x00 39 #define WM8900_ADC_CLKDIV_1 0x00 37 #define WM8900_ADC_CLKDIV_1_5 0x20 40 #define WM8900_ADC_CLKDIV_1_5 0x20 38 #define WM8900_ADC_CLKDIV_2 0x40 41 #define WM8900_ADC_CLKDIV_2 0x40 39 #define WM8900_ADC_CLKDIV_3 0x60 42 #define WM8900_ADC_CLKDIV_3 0x60 40 #define WM8900_ADC_CLKDIV_4 0x80 43 #define WM8900_ADC_CLKDIV_4 0x80 41 #define WM8900_ADC_CLKDIV_5_5 0xa0 44 #define WM8900_ADC_CLKDIV_5_5 0xa0 42 #define WM8900_ADC_CLKDIV_6 0xc0 45 #define WM8900_ADC_CLKDIV_6 0xc0 43 46 44 #define WM8900_DAC_CLKDIV_1 0x00 47 #define WM8900_DAC_CLKDIV_1 0x00 45 #define WM8900_DAC_CLKDIV_1_5 0x04 48 #define WM8900_DAC_CLKDIV_1_5 0x04 46 #define WM8900_DAC_CLKDIV_2 0x08 49 #define WM8900_DAC_CLKDIV_2 0x08 47 #define WM8900_DAC_CLKDIV_3 0x0c 50 #define WM8900_DAC_CLKDIV_3 0x0c 48 #define WM8900_DAC_CLKDIV_4 0x10 51 #define WM8900_DAC_CLKDIV_4 0x10 49 #define WM8900_DAC_CLKDIV_5_5 0x14 52 #define WM8900_DAC_CLKDIV_5_5 0x14 50 #define WM8900_DAC_CLKDIV_6 0x18 53 #define WM8900_DAC_CLKDIV_6 0x18 51 54 52 #endif 55 #endif 53 56
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.