linux/sound/soc/codecs/aw88261.h

// SPDX-License-Identifier: GPL-2.0-only
//
// aw88261.h  --  AW88261 ALSA SoC Audio driver
//
// Copyright (c) 2023 awinic Technology CO., LTD
//
// Author: Jimmy Zhang <[email protected]>
// Author: Weidong Wang <[email protected]>
//

#ifndef __AW88261_H__
#define __AW88261_H__

#define AW88261_ID_REG
#define AW88261_SYSST_REG
#define AW88261_SYSINT_REG
#define AW88261_SYSINTM_REG
#define AW88261_SYSCTRL_REG
#define AW88261_SYSCTRL2_REG
#define AW88261_I2SCTRL1_REG
#define AW88261_I2SCTRL2_REG
#define AW88261_I2SCTRL3_REG
#define AW88261_DACCFG1_REG
#define AW88261_DACCFG2_REG
#define AW88261_DACCFG3_REG
#define AW88261_DACCFG4_REG
#define AW88261_DACCFG5_REG
#define AW88261_DACCFG6_REG
#define AW88261_DACCFG7_REG
#define AW88261_DACCFG8_REG
#define AW88261_PWMCTRL1_REG
#define AW88261_PWMCTRL2_REG
#define AW88261_I2SCFG1_REG
#define AW88261_DBGCTRL_REG
#define AW88261_DACCFG9_REG
#define AW88261_DACCFG10_REG
#define AW88261_DACST_REG
#define AW88261_VBAT_REG
#define AW88261_TEMP_REG
#define AW88261_PVDD_REG
#define AW88261_ISNDAT_REG
#define AW88261_VSNDAT_REG
#define AW88261_I2SINT_REG
#define AW88261_I2SCAPCNT_REG
#define AW88261_ANASTA1_REG
#define AW88261_ANASTA2_REG
#define AW88261_ANASTA3_REG
#define AW88261_TESTDET_REG
#define AW88261_DSMCFG1_REG
#define AW88261_DSMCFG2_REG
#define AW88261_DSMCFG3_REG
#define AW88261_DSMCFG4_REG
#define AW88261_DSMCFG5_REG
#define AW88261_DSMCFG6_REG
#define AW88261_DSMCFG7_REG
#define AW88261_DSMCFG8_REG
#define AW88261_TESTIN_REG
#define AW88261_TESTOUT_REG
#define AW88261_SADCCTRL1_REG
#define AW88261_SADCCTRL2_REG
#define AW88261_SADCCTRL3_REG
#define AW88261_SADCCTRL4_REG
#define AW88261_SADCCTRL5_REG
#define AW88261_SADCCTRL6_REG
#define AW88261_SADCCTRL7_REG
#define AW88261_VSNTM1_REG
#define AW88261_VSNTM2_REG
#define AW88261_ISNCTRL1_REG
#define AW88261_ISNCTRL2_REG
#define AW88261_PLLCTRL1_REG
#define AW88261_PLLCTRL2_REG
#define AW88261_PLLCTRL3_REG
#define AW88261_CDACTRL1_REG
#define AW88261_CDACTRL2_REG
#define AW88261_DITHERCFG1_REG
#define AW88261_DITHERCFG2_REG
#define AW88261_DITHERCFG3_REG
#define AW88261_CPCTRL_REG
#define AW88261_BSTCTRL1_REG
#define AW88261_BSTCTRL2_REG
#define AW88261_BSTCTRL3_REG
#define AW88261_BSTCTRL4_REG
#define AW88261_BSTCTRL5_REG
#define AW88261_BSTCTRL6_REG
#define AW88261_BSTCTRL7_REG
#define AW88261_BSTCTRL8_REG
#define AW88261_BSTCTRL9_REG
#define AW88261_TM_REG
#define AW88261_TESTCTRL1_REG
#define AW88261_TESTCTRL2_REG
#define AW88261_EFCTRL1_REG
#define AW88261_EFCTRL2_REG
#define AW88261_EFWH_REG
#define AW88261_EFWM2_REG
#define AW88261_EFWM1_REG
#define AW88261_EFWL_REG
#define AW88261_EFRH4_REG
#define AW88261_EFRH3_REG
#define AW88261_EFRH2_REG
#define AW88261_EFRH1_REG
#define AW88261_EFRL4_REG
#define AW88261_EFRL3_REG
#define AW88261_EFRL2_REG
#define AW88261_EFRL1_REG

#define AW88261_REG_MAX
#define AW88261_EF_DBMD_MASK
#define AW88261_OR_VALUE

#define AW88261_TEMH_MASK
#define AW88261_TEML_MASK
#define AW88261_DEFAULT_CFG

#define AW88261_ICALK_SHIFT
#define AW88261_ICALKL_SHIFT
#define AW88261_VCALK_SHIFT
#define AW88261_VCALKL_SHIFT

#define AW88261_AMPPD_START_BIT
#define AW88261_AMPPD_BITS_LEN
#define AW88261_AMPPD_MASK

#define AW88261_UVLS_START_BIT
#define AW88261_UVLS_NORMAL
#define AW88261_UVLS_NORMAL_VALUE

#define AW88261_BSTOCS_START_BIT
#define AW88261_BSTOCS_OVER_CURRENT
#define AW88261_BSTOCS_OVER_CURRENT_VALUE

#define AW88261_BSTS_START_BIT
#define AW88261_BSTS_FINISHED
#define AW88261_BSTS_FINISHED_VALUE

#define AW88261_SWS_START_BIT
#define AW88261_SWS_SWITCHING
#define AW88261_SWS_SWITCHING_VALUE

#define AW88261_NOCLKS_START_BIT
#define AW88261_NOCLKS_NO_CLOCK
#define AW88261_NOCLKS_NO_CLOCK_VALUE

#define AW88261_CLKS_START_BIT
#define AW88261_CLKS_STABLE
#define AW88261_CLKS_STABLE_VALUE

#define AW88261_OCDS_START_BIT
#define AW88261_OCDS_OC
#define AW88261_OCDS_OC_VALUE

#define AW88261_OTHS_START_BIT
#define AW88261_OTHS_OT
#define AW88261_OTHS_OT_VALUE

#define AW88261_PLLS_START_BIT
#define AW88261_PLLS_LOCKED
#define AW88261_PLLS_LOCKED_VALUE

#define AW88261_BIT_PLL_CHECK

#define AW88261_BIT_SYSST_CHECK_MASK

#define AW88261_BIT_SYSST_CHECK

#define AW88261_ULS_HMUTE_START_BIT
#define AW88261_ULS_HMUTE_BITS_LEN
#define AW88261_ULS_HMUTE_MASK

#define AW88261_ULS_HMUTE_DISABLE
#define AW88261_ULS_HMUTE_DISABLE_VALUE

#define AW88261_ULS_HMUTE_ENABLE
#define AW88261_ULS_HMUTE_ENABLE_VALUE

#define AW88261_HMUTE_START_BIT
#define AW88261_HMUTE_BITS_LEN
#define AW88261_HMUTE_MASK

#define AW88261_HMUTE_DISABLE
#define AW88261_HMUTE_DISABLE_VALUE

#define AW88261_HMUTE_ENABLE
#define AW88261_HMUTE_ENABLE_VALUE

#define AW88261_AMPPD_START_BIT
#define AW88261_AMPPD_BITS_LEN
#define AW88261_AMPPD_MASK

#define AW88261_AMPPD_WORKING
#define AW88261_AMPPD_WORKING_VALUE

#define AW88261_AMPPD_POWER_DOWN
#define AW88261_AMPPD_POWER_DOWN_VALUE

#define AW88261_PWDN_START_BIT
#define AW88261_PWDN_BITS_LEN
#define AW88261_PWDN_MASK

#define AW88261_PWDN_WORKING
#define AW88261_PWDN_WORKING_VALUE

#define AW88261_PWDN_POWER_DOWN
#define AW88261_PWDN_POWER_DOWN_VALUE

#define AW88261_MUTE_VOL
#define AW88261_VOLUME_STEP_DB

#define AW88261_VOL_6DB_START

#define AW88261_VOL_START_BIT
#define AW88261_VOL_BITS_LEN
#define AW88261_VOL_MASK

#define AW88261_VOL_DEFAULT_VALUE

#define AW88261_I2STXEN_START_BIT
#define AW88261_I2STXEN_BITS_LEN
#define AW88261_I2STXEN_MASK

#define AW88261_I2STXEN_DISABLE
#define AW88261_I2STXEN_DISABLE_VALUE

#define AW88261_I2STXEN_ENABLE
#define AW88261_I2STXEN_ENABLE_VALUE

#define AW88261_CCO_MUX_START_BIT
#define AW88261_CCO_MUX_BITS_LEN
#define AW88261_CCO_MUX_MASK

#define AW88261_CCO_MUX_DIVIDED
#define AW88261_CCO_MUX_DIVIDED_VALUE

#define AW88261_CCO_MUX_BYPASS
#define AW88261_CCO_MUX_BYPASS_VALUE

#define AW88261_EF_VSN_GESLP_H_START_BIT
#define AW88261_EF_VSN_GESLP_H_BITS_LEN
#define AW88261_EF_VSN_GESLP_H_MASK

#define AW88261_EF_VSN_GESLP_L_START_BIT
#define AW88261_EF_VSN_GESLP_L_BITS_LEN
#define AW88261_EF_VSN_GESLP_L_MASK

#define AW88261_FORCE_PWM_START_BIT
#define AW88261_FORCE_PWM_BITS_LEN
#define AW88261_FORCE_PWM_MASK

#define AW88261_FORCE_PWM_FORCEMINUS_PWM
#define AW88261_FORCE_PWM_FORCEMINUS_PWM_VALUE

#define AW88261_BST_OS_WIDTH_START_BIT
#define AW88261_BST_OS_WIDTH_BITS_LEN
#define AW88261_BST_OS_WIDTH_MASK

#define AW88261_BST_OS_WIDTH_50NS
#define AW88261_BST_OS_WIDTH_50NS_VALUE

/* BST_LOOPR bit 1:0 (BSTCTRL6 0x65) */
#define AW88261_BST_LOOPR_START_BIT
#define AW88261_BST_LOOPR_BITS_LEN
#define AW88261_BST_LOOPR_MASK

#define AW88261_BST_LOOPR_340K
#define AW88261_BST_LOOPR_340K_VALUE

/* RSQN_DLY bit 15:14 (BSTCTRL7 0x66) */
#define AW88261_RSQN_DLY_START_BIT
#define AW88261_RSQN_DLY_BITS_LEN
#define AW88261_RSQN_DLY_MASK

#define AW88261_RSQN_DLY_35NS
#define AW88261_RSQN_DLY_35NS_VALUE

/* BURST_SSMODE bit 3 (BSTCTRL8 0x67) */
#define AW88261_BURST_SSMODE_START_BIT
#define AW88261_BURST_SSMODE_BITS_LEN
#define AW88261_BURST_SSMODE_MASK

#define AW88261_BURST_SSMODE_FAST
#define AW88261_BURST_SSMODE_FAST_VALUE

/* BST_BURST bit 9:7 (BSTCTRL9 0x68) */
#define AW88261_BST_BURST_START_BIT
#define AW88261_BST_BURST_BITS_LEN
#define AW88261_BST_BURST_MASK

#define AW88261_BST_BURST_30MA
#define AW88261_BST_BURST_30MA_VALUE

#define AW88261_EF_VSN_GESLP_SIGN_MASK
#define AW88261_EF_VSN_GESLP_NEG

#define AW88261_EF_ISN_GESLP_SIGN_MASK
#define AW88261_EF_ISN_GESLP_NEG

#define AW88261_EF_ISN_GESLP_H_START_BIT
#define AW88261_EF_ISN_GESLP_H_BITS_LEN
#define AW88261_EF_ISN_GESLP_H_MASK

#define AW88261_EF_ISN_GESLP_L_START_BIT
#define AW88261_EF_ISN_GESLP_L_BITS_LEN
#define AW88261_EF_ISN_GESLP_L_MASK

#define AW88261_CABL_BASE_VALUE
#define AW88261_ICABLK_FACTOR
#define AW88261_VCABLK_FACTOR

#define AW88261_VCAL_FACTOR

#define AW88261_START_RETRIES
#define AW88261_START_WORK_DELAY_MS

#define AW88261_I2C_NAME

#define AW88261_RATES
#define AW88261_FORMATS

#define FADE_TIME_MAX
#define FADE_TIME_MIN

#define AW88261_DEV_DEFAULT_CH
#define AW88261_ACF_FILE
#define AW88261_DEV_SYSST_CHECK_MAX
#define AW88261_SOFT_RESET_VALUE
#define AW88261_REG_TO_DB
#define AW88261_VOL_START_MASK
#define AW88261_INIT_PROFILE

#define REG_VAL_TO_DB(value)
#define DB_TO_REG_VAL(value)

#define AW88261_PROFILE_EXT(xname, profile_info, profile_get, profile_set)

enum {};

enum aw88261_id {};

enum {};

enum {};

enum {};

enum {};

enum {};

struct aw88261 {};

#endif