linux/sound/soc/codecs/rt1016.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * rt1016.h  --  RT1016 ALSA SoC audio amplifier driver
 *
 * Copyright 2020 Realtek Semiconductor Corp.
 * Author: Oder Chiou <[email protected]>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef __RT1016_H__
#define __RT1016_H__

#define RT1016_DEVICE_ID_VAL

#define RT1016_RESET
#define RT1016_PADS_CTRL_1
#define RT1016_PADS_CTRL_2
#define RT1016_I2C_CTRL
#define RT1016_VOL_CTRL_1
#define RT1016_VOL_CTRL_2
#define RT1016_VOL_CTRL_3
#define RT1016_ANA_CTRL_1
#define RT1016_MUX_SEL
#define RT1016_RX_I2S_CTRL
#define RT1016_ANA_FLAG
#define RT1016_VERSION2_ID
#define RT1016_VERSION1_ID
#define RT1016_VENDER_ID
#define RT1016_DEVICE_ID
#define RT1016_ANA_CTRL_2
#define RT1016_TEST_SIGNAL
#define RT1016_TEST_CTRL_1
#define RT1016_TEST_CTRL_2
#define RT1016_TEST_CTRL_3
#define RT1016_CLOCK_1
#define RT1016_CLOCK_2
#define RT1016_CLOCK_3
#define RT1016_CLOCK_4
#define RT1016_CLOCK_5
#define RT1016_CLOCK_6
#define RT1016_CLOCK_7
#define RT1016_I2S_CTRL
#define RT1016_DAC_CTRL_1
#define RT1016_SC_CTRL_1
#define RT1016_SC_CTRL_2
#define RT1016_SC_CTRL_3
#define RT1016_SC_CTRL_4
#define RT1016_SIL_DET
#define RT1016_SYS_CLK
#define RT1016_BIAS_CUR
#define RT1016_DAC_CTRL_2
#define RT1016_LDO_CTRL
#define RT1016_CLASSD_1
#define RT1016_PLL1
#define RT1016_PLL2
#define RT1016_PLL3
#define RT1016_CLASSD_2
#define RT1016_CLASSD_OUT
#define RT1016_CLASSD_3
#define RT1016_CLASSD_4
#define RT1016_CLASSD_5
#define RT1016_PWR_CTRL

/* global definition */
#define RT1016_L_VOL_MASK
#define RT1016_L_VOL_SFT
#define RT1016_R_VOL_MASK
#define RT1016_R_VOL_SFT

/* 0x04 */
#define RT1016_DA_MUTE_L_SFT
#define RT1016_DA_MUTE_R_SFT

/* 0x20 */
#define RT1016_CLK_SYS_SEL_MASK
#define RT1016_CLK_SYS_SEL_SFT
#define RT1016_CLK_SYS_SEL_MCLK
#define RT1016_CLK_SYS_SEL_PLL
#define RT1016_PLL_SEL_MASK
#define RT1016_PLL_SEL_SFT
#define RT1016_PLL_SEL_MCLK
#define RT1016_PLL_SEL_BCLK

/* 0x21 */
#define RT1016_FS_PD_MASK
#define RT1016_FS_PD_SFT
#define RT1016_OSR_PD_MASK
#define RT1016_OSR_PD_SFT

/* 0x22 */
#define RT1016_PWR_DAC_FILTER
#define RT1016_PWR_DAC_FILTER_BIT
#define RT1016_PWR_DACMOD
#define RT1016_PWR_DACMOD_BIT
#define RT1016_PWR_CLK_FIFO
#define RT1016_PWR_CLK_FIFO_BIT
#define RT1016_PWR_CLK_PUREDC
#define RT1016_PWR_CLK_PUREDC_BIT
#define RT1016_PWR_SIL_DET
#define RT1016_PWR_SIL_DET_BIT
#define RT1016_PWR_RC_25M
#define RT1016_PWR_RC_25M_BIT
#define RT1016_PWR_PLL1
#define RT1016_PWR_PLL1_BIT
#define RT1016_PWR_ANA_CTRL
#define RT1016_PWR_ANA_CTRL_BIT
#define RT1016_PWR_CLK_SYS
#define RT1016_PWR_CLK_SYS_BIT

/* 0x23 */
#define RT1016_PWR_LRCK_DET
#define RT1016_PWR_LRCK_DET_BIT
#define RT1016_PWR_BCLK_DET
#define RT1016_PWR_BCLK_DET_BIT

/* 0x40 */
#define RT1016_I2S_BCLK_MS_MASK
#define RT1016_I2S_BCLK_MS_SFT
#define RT1016_I2S_BCLK_MS_32
#define RT1016_I2S_BCLK_MS_64
#define RT1016_I2S_BCLK_POL_MASK
#define RT1016_I2S_BCLK_POL_SFT
#define RT1016_I2S_BCLK_POL_NOR
#define RT1016_I2S_BCLK_POL_INV
#define RT1016_I2S_DATA_SWAP_MASK
#define RT1016_I2S_DATA_SWAP_SFT
#define RT1016_I2S_DL_MASK
#define RT1016_I2S_DL_SFT
#define RT1016_I2S_DL_16
#define RT1016_I2S_DL_20
#define RT1016_I2S_DL_24
#define RT1016_I2S_DL_32
#define RT1016_I2S_MS_MASK
#define RT1016_I2S_MS_SFT
#define RT1016_I2S_MS_M
#define RT1016_I2S_MS_S
#define RT1016_I2S_DF_MASK
#define RT1016_I2S_DF_SFT
#define RT1016_I2S_DF_I2S
#define RT1016_I2S_DF_LEFT
#define RT1016_I2S_DF_PCM_A
#define RT1016_I2S_DF_PCM_B

/* 0xa0 */
#define RT1016_SIL_DET_EN
#define RT1016_SIL_DET_EN_BIT

/* 0xc2 */
#define RT1016_CKGEN_DAC
#define RT1016_CKGEN_DAC_BIT

/* 0xc4 */
#define RT1016_VCM_SLOW
#define RT1016_VCM_SLOW_BIT

/* 0xc5 */
#define RT1016_PLL_M_MAX
#define RT1016_PLL_M_MASK
#define RT1016_PLL_M_SFT
#define RT1016_PLL_M_BP
#define RT1016_PLL_M_BP_SFT
#define RT1016_PLL_N_MAX
#define RT1016_PLL_N_MASK
#define RT1016_PLL_N_SFT

/* 0xc6 */
#define RT1016_PLL2_EN
#define RT1016_PLL2_EN_BIT
#define RT1016_PLL_K_BP
#define RT1016_PLL_K_BP_SFT
#define RT1016_PLL_K_MAX
#define RT1016_PLL_K_MASK
#define RT1016_PLL_K_SFT

/* 0xcf */
#define RT1016_PWR_BG_1_2
#define RT1016_PWR_BG_1_2_BIT
#define RT1016_PWR_MBIAS_BG
#define RT1016_PWR_MBIAS_BG_BIT
#define RT1016_PWR_PLL
#define RT1016_PWR_PLL_BIT
#define RT1016_PWR_BASIC
#define RT1016_PWR_BASIC_BIT
#define RT1016_PWR_CLSD
#define RT1016_PWR_CLSD_BIT
#define RT1016_PWR_25M
#define RT1016_PWR_25M_BIT
#define RT1016_PWR_DACL
#define RT1016_PWR_DACL_BIT
#define RT1016_PWR_DACR
#define RT1016_PWR_DACR_BIT
#define RT1016_PWR_LDO2
#define RT1016_PWR_LDO2_BIT
#define RT1016_PWR_VREF
#define RT1016_PWR_VREF_BIT
#define RT1016_PWR_MBIAS
#define RT1016_PWR_MBIAS_BIT

/* System Clock Source */
enum {};

/* PLL1 Source */
enum {};

enum {};

struct rt1016_priv {};

#endif /* __RT1016_H__ */