162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * wm2000.h -- WM2000 Soc Audio driver 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef _WM2000_H 762306a36Sopenharmony_ci#define _WM2000_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#define WM2000_REG_SYS_START 0x8000 1062306a36Sopenharmony_ci#define WM2000_REG_ANC_GAIN_CTRL 0x8fa2 1162306a36Sopenharmony_ci#define WM2000_REG_MSE_TH2 0x8fdf 1262306a36Sopenharmony_ci#define WM2000_REG_MSE_TH1 0x8fe0 1362306a36Sopenharmony_ci#define WM2000_REG_SPEECH_CLARITY 0x8fef 1462306a36Sopenharmony_ci#define WM2000_REG_SYS_WATCHDOG 0x8ff6 1562306a36Sopenharmony_ci#define WM2000_REG_ANA_VMID_PD_TIME 0x8ff7 1662306a36Sopenharmony_ci#define WM2000_REG_ANA_VMID_PU_TIME 0x8ff8 1762306a36Sopenharmony_ci#define WM2000_REG_CAT_FLTR_INDX 0x8ff9 1862306a36Sopenharmony_ci#define WM2000_REG_CAT_GAIN_0 0x8ffa 1962306a36Sopenharmony_ci#define WM2000_REG_SYS_STATUS 0x8ffc 2062306a36Sopenharmony_ci#define WM2000_REG_SYS_MODE_CNTRL 0x8ffd 2162306a36Sopenharmony_ci#define WM2000_REG_SYS_START0 0x8ffe 2262306a36Sopenharmony_ci#define WM2000_REG_SYS_START1 0x8fff 2362306a36Sopenharmony_ci#define WM2000_REG_ID1 0xf000 2462306a36Sopenharmony_ci#define WM2000_REG_ID2 0xf001 2562306a36Sopenharmony_ci#define WM2000_REG_REVISON 0xf002 2662306a36Sopenharmony_ci#define WM2000_REG_SYS_CTL1 0xf003 2762306a36Sopenharmony_ci#define WM2000_REG_SYS_CTL2 0xf004 2862306a36Sopenharmony_ci#define WM2000_REG_ANC_STAT 0xf005 2962306a36Sopenharmony_ci#define WM2000_REG_IF_CTL 0xf006 3062306a36Sopenharmony_ci#define WM2000_REG_ANA_MIC_CTL 0xf028 3162306a36Sopenharmony_ci#define WM2000_REG_SPK_CTL 0xf034 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ci/* SPEECH_CLARITY */ 3462306a36Sopenharmony_ci#define WM2000_SPEECH_CLARITY 0x01 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci/* SYS_STATUS */ 3762306a36Sopenharmony_ci#define WM2000_STATUS_MOUSE_ACTIVE 0x40 3862306a36Sopenharmony_ci#define WM2000_STATUS_CAT_FREQ_COMPLETE 0x20 3962306a36Sopenharmony_ci#define WM2000_STATUS_CAT_GAIN_COMPLETE 0x10 4062306a36Sopenharmony_ci#define WM2000_STATUS_THERMAL_SHUTDOWN_COMPLETE 0x08 4162306a36Sopenharmony_ci#define WM2000_STATUS_ANC_DISABLED 0x04 4262306a36Sopenharmony_ci#define WM2000_STATUS_POWER_DOWN_COMPLETE 0x02 4362306a36Sopenharmony_ci#define WM2000_STATUS_BOOT_COMPLETE 0x01 4462306a36Sopenharmony_ci 4562306a36Sopenharmony_ci/* SYS_MODE_CNTRL */ 4662306a36Sopenharmony_ci#define WM2000_MODE_ANA_SEQ_INCLUDE 0x80 4762306a36Sopenharmony_ci#define WM2000_MODE_MOUSE_ENABLE 0x40 4862306a36Sopenharmony_ci#define WM2000_MODE_CAT_FREQ_ENABLE 0x20 4962306a36Sopenharmony_ci#define WM2000_MODE_CAT_GAIN_ENABLE 0x10 5062306a36Sopenharmony_ci#define WM2000_MODE_BYPASS_ENTRY 0x08 5162306a36Sopenharmony_ci#define WM2000_MODE_STANDBY_ENTRY 0x04 5262306a36Sopenharmony_ci#define WM2000_MODE_THERMAL_ENABLE 0x02 5362306a36Sopenharmony_ci#define WM2000_MODE_POWER_DOWN 0x01 5462306a36Sopenharmony_ci 5562306a36Sopenharmony_ci/* SYS_CTL1 */ 5662306a36Sopenharmony_ci#define WM2000_SYS_STBY 0x01 5762306a36Sopenharmony_ci 5862306a36Sopenharmony_ci/* SYS_CTL2 */ 5962306a36Sopenharmony_ci#define WM2000_MCLK_DIV2_ENA_CLR 0x80 6062306a36Sopenharmony_ci#define WM2000_MCLK_DIV2_ENA_SET 0x40 6162306a36Sopenharmony_ci#define WM2000_ANC_ENG_CLR 0x20 6262306a36Sopenharmony_ci#define WM2000_ANC_ENG_SET 0x10 6362306a36Sopenharmony_ci#define WM2000_ANC_INT_N_CLR 0x08 6462306a36Sopenharmony_ci#define WM2000_ANC_INT_N_SET 0x04 6562306a36Sopenharmony_ci#define WM2000_RAM_CLR 0x02 6662306a36Sopenharmony_ci#define WM2000_RAM_SET 0x01 6762306a36Sopenharmony_ci 6862306a36Sopenharmony_ci/* ANC_STAT */ 6962306a36Sopenharmony_ci#define WM2000_ANC_ENG_IDLE 0x01 7062306a36Sopenharmony_ci 7162306a36Sopenharmony_ci#endif 72