linux/sound/soc/codecs/wm8753.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * wm8753.h  --  audio driver for WM8753
 *
 * Copyright 2003 Wolfson Microelectronics PLC.
 * Author: Liam Girdwood <[email protected]>
 */

#ifndef _WM8753_H
#define _WM8753_H

/* WM8753 register space */

#define WM8753_DAC
#define WM8753_ADC
#define WM8753_PCM
#define WM8753_HIFI
#define WM8753_IOCTL
#define WM8753_SRATE1
#define WM8753_SRATE2
#define WM8753_LDAC
#define WM8753_RDAC
#define WM8753_BASS
#define WM8753_TREBLE
#define WM8753_ALC1
#define WM8753_ALC2
#define WM8753_ALC3
#define WM8753_NGATE
#define WM8753_LADC
#define WM8753_RADC
#define WM8753_ADCTL1
#define WM8753_3D
#define WM8753_PWR1
#define WM8753_PWR2
#define WM8753_PWR3
#define WM8753_PWR4
#define WM8753_ID
#define WM8753_INTPOL
#define WM8753_INTEN
#define WM8753_GPIO1
#define WM8753_GPIO2
#define WM8753_RESET
#define WM8753_RECMIX1
#define WM8753_RECMIX2
#define WM8753_LOUTM1
#define WM8753_LOUTM2
#define WM8753_ROUTM1
#define WM8753_ROUTM2
#define WM8753_MOUTM1
#define WM8753_MOUTM2
#define WM8753_LOUT1V
#define WM8753_ROUT1V
#define WM8753_LOUT2V
#define WM8753_ROUT2V
#define WM8753_MOUTV
#define WM8753_OUTCTL
#define WM8753_ADCIN
#define WM8753_INCTL1
#define WM8753_INCTL2
#define WM8753_LINVOL
#define WM8753_RINVOL
#define WM8753_MICBIAS
#define WM8753_CLOCK
#define WM8753_PLL1CTL1
#define WM8753_PLL1CTL2
#define WM8753_PLL1CTL3
#define WM8753_PLL1CTL4
#define WM8753_PLL2CTL1
#define WM8753_PLL2CTL2
#define WM8753_PLL2CTL3
#define WM8753_PLL2CTL4
#define WM8753_BIASCTL
#define WM8753_ADCTL2

#define WM8753_PLL1
#define WM8753_PLL2

/* clock inputs */
#define WM8753_MCLK
#define WM8753_PCMCLK

/* clock divider id's */
#define WM8753_PCMDIV
#define WM8753_BCLKDIV
#define WM8753_VXCLKDIV

/* PCM clock dividers */
#define WM8753_PCM_DIV_1
#define WM8753_PCM_DIV_3
#define WM8753_PCM_DIV_5_5
#define WM8753_PCM_DIV_2
#define WM8753_PCM_DIV_4
#define WM8753_PCM_DIV_6
#define WM8753_PCM_DIV_8

/* BCLK clock dividers */
#define WM8753_BCLK_DIV_1
#define WM8753_BCLK_DIV_2
#define WM8753_BCLK_DIV_4
#define WM8753_BCLK_DIV_8
#define WM8753_BCLK_DIV_16

/* VXCLK clock dividers */
#define WM8753_VXCLK_DIV_1
#define WM8753_VXCLK_DIV_2
#define WM8753_VXCLK_DIV_4
#define WM8753_VXCLK_DIV_8
#define WM8753_VXCLK_DIV_16

#endif