linux/sound/soc/codecs/wm8960.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * wm8960.h  --  WM8960 Soc Audio driver
 */

#ifndef _WM8960_H
#define _WM8960_H

/* WM8960 register space */


#define WM8960_CACHEREGNUM

#define WM8960_LINVOL
#define WM8960_RINVOL
#define WM8960_LOUT1
#define WM8960_ROUT1
#define WM8960_CLOCK1
#define WM8960_DACCTL1
#define WM8960_DACCTL2
#define WM8960_IFACE1
#define WM8960_CLOCK2
#define WM8960_IFACE2
#define WM8960_LDAC
#define WM8960_RDAC

#define WM8960_RESET
#define WM8960_3D
#define WM8960_ALC1
#define WM8960_ALC2
#define WM8960_ALC3
#define WM8960_NOISEG
#define WM8960_LADC
#define WM8960_RADC
#define WM8960_ADDCTL1
#define WM8960_ADDCTL2
#define WM8960_POWER1
#define WM8960_POWER2
#define WM8960_ADDCTL3
#define WM8960_APOP1
#define WM8960_APOP2

#define WM8960_LINPATH
#define WM8960_RINPATH
#define WM8960_LOUTMIX

#define WM8960_ROUTMIX
#define WM8960_MONOMIX1
#define WM8960_MONOMIX2
#define WM8960_LOUT2
#define WM8960_ROUT2
#define WM8960_MONO
#define WM8960_INBMIX1
#define WM8960_INBMIX2
#define WM8960_BYPASS1
#define WM8960_BYPASS2
#define WM8960_POWER3
#define WM8960_ADDCTL4
#define WM8960_CLASSD1

#define WM8960_CLASSD3
#define WM8960_PLL1
#define WM8960_PLL2
#define WM8960_PLL3
#define WM8960_PLL4


/*
 * WM8960 Clock dividers
 */
#define WM8960_SYSCLKDIV
#define WM8960_DACDIV
#define WM8960_OPCLKDIV
#define WM8960_DCLKDIV
#define WM8960_TOCLKSEL

#define WM8960_SYSCLK_DIV_1
#define WM8960_SYSCLK_DIV_2

#define WM8960_SYSCLK_AUTO
#define WM8960_SYSCLK_PLL
#define WM8960_SYSCLK_MCLK

#define WM8960_DAC_DIV_1
#define WM8960_DAC_DIV_1_5
#define WM8960_DAC_DIV_2
#define WM8960_DAC_DIV_3
#define WM8960_DAC_DIV_4
#define WM8960_DAC_DIV_5_5
#define WM8960_DAC_DIV_6

#define WM8960_DCLK_DIV_1_5
#define WM8960_DCLK_DIV_2
#define WM8960_DCLK_DIV_3
#define WM8960_DCLK_DIV_4
#define WM8960_DCLK_DIV_6
#define WM8960_DCLK_DIV_8
#define WM8960_DCLK_DIV_12
#define WM8960_DCLK_DIV_16

#define WM8960_TOCLK_F19
#define WM8960_TOCLK_F21

#define WM8960_OPCLK_DIV_1
#define WM8960_OPCLK_DIV_2
#define WM8960_OPCLK_DIV_3
#define WM8960_OPCLK_DIV_4
#define WM8960_OPCLK_DIV_5_5
#define WM8960_OPCLK_DIV_6

#endif