55 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/*3 * wm8400.h -- audio driver for WM84004 *5 * Copyright 2008 Wolfson Microelectronics PLC.6 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>7 */8 9#ifndef _WM8400_CODEC_H10#define _WM8400_CODEC_H11 12#define WM8400_MCLK_DIV 013#define WM8400_DACCLK_DIV 114#define WM8400_ADCCLK_DIV 215#define WM8400_BCLK_DIV 316 17#define WM8400_MCLK_DIV_1 0x40018#define WM8400_MCLK_DIV_2 0x80019 20#define WM8400_DAC_CLKDIV_1 0x0021#define WM8400_DAC_CLKDIV_1_5 0x0422#define WM8400_DAC_CLKDIV_2 0x0823#define WM8400_DAC_CLKDIV_3 0x0c24#define WM8400_DAC_CLKDIV_4 0x1025#define WM8400_DAC_CLKDIV_5_5 0x1426#define WM8400_DAC_CLKDIV_6 0x1827 28#define WM8400_ADC_CLKDIV_1 0x0029#define WM8400_ADC_CLKDIV_1_5 0x2030#define WM8400_ADC_CLKDIV_2 0x4031#define WM8400_ADC_CLKDIV_3 0x6032#define WM8400_ADC_CLKDIV_4 0x8033#define WM8400_ADC_CLKDIV_5_5 0xa034#define WM8400_ADC_CLKDIV_6 0xc035 36 37#define WM8400_BCLK_DIV_1 (0x0 << 1)38#define WM8400_BCLK_DIV_1_5 (0x1 << 1)39#define WM8400_BCLK_DIV_2 (0x2 << 1)40#define WM8400_BCLK_DIV_3 (0x3 << 1)41#define WM8400_BCLK_DIV_4 (0x4 << 1)42#define WM8400_BCLK_DIV_5_5 (0x5 << 1)43#define WM8400_BCLK_DIV_6 (0x6 << 1)44#define WM8400_BCLK_DIV_8 (0x7 << 1)45#define WM8400_BCLK_DIV_11 (0x8 << 1)46#define WM8400_BCLK_DIV_12 (0x9 << 1)47#define WM8400_BCLK_DIV_16 (0xA << 1)48#define WM8400_BCLK_DIV_22 (0xB << 1)49#define WM8400_BCLK_DIV_24 (0xC << 1)50#define WM8400_BCLK_DIV_32 (0xD << 1)51#define WM8400_BCLK_DIV_44 (0xE << 1)52#define WM8400_BCLK_DIV_48 (0xF << 1)53 54#endif55