linux/sound/soc/codecs/wm8510.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * wm8510.h  --  WM8510 Soc Audio driver
 */

#ifndef _WM8510_H
#define _WM8510_H

/* WM8510 register space */

#define WM8510_RESET
#define WM8510_POWER1
#define WM8510_POWER2
#define WM8510_POWER3
#define WM8510_IFACE
#define WM8510_COMP
#define WM8510_CLOCK
#define WM8510_ADD
#define WM8510_GPIO
#define WM8510_DAC
#define WM8510_DACVOL
#define WM8510_ADC
#define WM8510_ADCVOL
#define WM8510_EQ1
#define WM8510_EQ2
#define WM8510_EQ3
#define WM8510_EQ4
#define WM8510_EQ5
#define WM8510_DACLIM1
#define WM8510_DACLIM2
#define WM8510_NOTCH1
#define WM8510_NOTCH2
#define WM8510_NOTCH3
#define WM8510_NOTCH4
#define WM8510_ALC1
#define WM8510_ALC2
#define WM8510_ALC3
#define WM8510_NGATE
#define WM8510_PLLN
#define WM8510_PLLK1
#define WM8510_PLLK2
#define WM8510_PLLK3
#define WM8510_ATTEN
#define WM8510_INPUT
#define WM8510_INPPGA
#define WM8510_ADCBOOST
#define WM8510_OUTPUT
#define WM8510_SPKMIX
#define WM8510_SPKVOL
#define WM8510_MONOMIX

#define WM8510_CACHEREGNUM

/* Clock divider Id's */
#define WM8510_OPCLKDIV
#define WM8510_MCLKDIV
#define WM8510_ADCCLK
#define WM8510_DACCLK
#define WM8510_BCLKDIV

/* DAC clock dividers */
#define WM8510_DACCLK_F2
#define WM8510_DACCLK_F4

/* ADC clock dividers */
#define WM8510_ADCCLK_F2
#define WM8510_ADCCLK_F4

/* PLL Out dividers */
#define WM8510_OPCLKDIV_1
#define WM8510_OPCLKDIV_2
#define WM8510_OPCLKDIV_3
#define WM8510_OPCLKDIV_4

/* BCLK clock dividers */
#define WM8510_BCLKDIV_1
#define WM8510_BCLKDIV_2
#define WM8510_BCLKDIV_4
#define WM8510_BCLKDIV_8
#define WM8510_BCLKDIV_16
#define WM8510_BCLKDIV_32

/* MCLK clock dividers */
#define WM8510_MCLKDIV_1
#define WM8510_MCLKDIV_1_5
#define WM8510_MCLKDIV_2
#define WM8510_MCLKDIV_3
#define WM8510_MCLKDIV_4
#define WM8510_MCLKDIV_6
#define WM8510_MCLKDIV_8
#define WM8510_MCLKDIV_12

struct wm8510_setup_data {};

#endif