1*d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 20e0e16a8SMark Brown /* 30e0e16a8SMark Brown * wm8900.h -- WM890 Soc Audio driver 40e0e16a8SMark Brown */ 50e0e16a8SMark Brown 60e0e16a8SMark Brown #ifndef _WM8900_H 70e0e16a8SMark Brown #define _WM8900_H 80e0e16a8SMark Brown 90e0e16a8SMark Brown #define WM8900_FLL 1 100e0e16a8SMark Brown 110e0e16a8SMark Brown #define WM8900_BCLK_DIV 1 120e0e16a8SMark Brown #define WM8900_ADC_CLKDIV 2 130e0e16a8SMark Brown #define WM8900_DAC_CLKDIV 3 140e0e16a8SMark Brown #define WM8900_ADC_LRCLK 4 150e0e16a8SMark Brown #define WM8900_DAC_LRCLK 5 160e0e16a8SMark Brown #define WM8900_OPCLK_DIV 6 170e0e16a8SMark Brown #define WM8900_LRCLK_MODE 7 180e0e16a8SMark Brown 190e0e16a8SMark Brown #define WM8900_BCLK_DIV_1 0x00 200e0e16a8SMark Brown #define WM8900_BCLK_DIV_1_5 0x02 210e0e16a8SMark Brown #define WM8900_BCLK_DIV_2 0x04 220e0e16a8SMark Brown #define WM8900_BCLK_DIV_3 0x06 230e0e16a8SMark Brown #define WM8900_BCLK_DIV_4 0x08 240e0e16a8SMark Brown #define WM8900_BCLK_DIV_5_5 0x0a 250e0e16a8SMark Brown #define WM8900_BCLK_DIV_6 0x0c 260e0e16a8SMark Brown #define WM8900_BCLK_DIV_8 0x0e 270e0e16a8SMark Brown #define WM8900_BCLK_DIV_11 0x10 280e0e16a8SMark Brown #define WM8900_BCLK_DIV_12 0x12 290e0e16a8SMark Brown #define WM8900_BCLK_DIV_16 0x14 300e0e16a8SMark Brown #define WM8900_BCLK_DIV_22 0x16 310e0e16a8SMark Brown #define WM8900_BCLK_DIV_24 0x18 320e0e16a8SMark Brown #define WM8900_BCLK_DIV_32 0x1a 330e0e16a8SMark Brown #define WM8900_BCLK_DIV_44 0x1c 340e0e16a8SMark Brown #define WM8900_BCLK_DIV_48 0x1e 350e0e16a8SMark Brown 360e0e16a8SMark Brown #define WM8900_ADC_CLKDIV_1 0x00 370e0e16a8SMark Brown #define WM8900_ADC_CLKDIV_1_5 0x20 380e0e16a8SMark Brown #define WM8900_ADC_CLKDIV_2 0x40 390e0e16a8SMark Brown #define WM8900_ADC_CLKDIV_3 0x60 400e0e16a8SMark Brown #define WM8900_ADC_CLKDIV_4 0x80 410e0e16a8SMark Brown #define WM8900_ADC_CLKDIV_5_5 0xa0 420e0e16a8SMark Brown #define WM8900_ADC_CLKDIV_6 0xc0 430e0e16a8SMark Brown 440e0e16a8SMark Brown #define WM8900_DAC_CLKDIV_1 0x00 450e0e16a8SMark Brown #define WM8900_DAC_CLKDIV_1_5 0x04 460e0e16a8SMark Brown #define WM8900_DAC_CLKDIV_2 0x08 470e0e16a8SMark Brown #define WM8900_DAC_CLKDIV_3 0x0c 480e0e16a8SMark Brown #define WM8900_DAC_CLKDIV_4 0x10 490e0e16a8SMark Brown #define WM8900_DAC_CLKDIV_5_5 0x14 500e0e16a8SMark Brown #define WM8900_DAC_CLKDIV_6 0x18 510e0e16a8SMark Brown 520e0e16a8SMark Brown #endif 53