~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/soc/codecs/aw87390.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0-only
  2 //
  3 // aw87390.h  --  aw87390 ALSA SoC Audio driver
  4 //
  5 // Copyright (c) 2023 awinic Technology CO., LTD
  6 //
  7 // Author: Weidong Wang <wangweidong.a@awinic.com>
  8 //
  9 
 10 #ifndef __AW87390_H__
 11 #define __AW87390_H__
 12 
 13 #define AW87390_ID_REG                  (0x00)
 14 #define AW87390_SYSCTRL_REG             (0x01)
 15 #define AW87390_MDCTRL_REG              (0x02)
 16 #define AW87390_CPOVP_REG               (0x03)
 17 #define AW87390_CPP_REG         (0x04)
 18 #define AW87390_PAG_REG         (0x05)
 19 #define AW87390_AGC3P_REG               (0x06)
 20 #define AW87390_AGC3PA_REG              (0x07)
 21 #define AW87390_AGC2P_REG               (0x08)
 22 #define AW87390_AGC2PA_REG              (0x09)
 23 #define AW87390_AGC1PA_REG              (0x0A)
 24 #define AW87390_SYSST_REG               (0x59)
 25 #define AW87390_SYSINT_REG              (0x60)
 26 #define AW87390_DFT_SYSCTRL_REG (0x61)
 27 #define AW87390_DFT_MDCTRL_REG          (0x62)
 28 #define AW87390_DFT_CPADP_REG           (0x63)
 29 #define AW87390_DFT_AGCPA_REG           (0x64)
 30 #define AW87390_DFT_POFR_REG            (0x65)
 31 #define AW87390_DFT_OC_REG              (0x66)
 32 #define AW87390_DFT_ADP1_REG            (0x67)
 33 #define AW87390_DFT_REF_REG             (0x68)
 34 #define AW87390_DFT_LDO_REG             (0x69)
 35 #define AW87390_ADP1_REG                (0x70)
 36 #define AW87390_ADP2_REG                (0x71)
 37 #define AW87390_NG1_REG         (0x72)
 38 #define AW87390_NG2_REG         (0x73)
 39 #define AW87390_NG3_REG         (0x74)
 40 #define AW87390_CP_REG                  (0x75)
 41 #define AW87390_AB_REG                  (0x76)
 42 #define AW87390_TEST_REG                (0x77)
 43 #define AW87390_ENCR_REG                (0x78)
 44 #define AW87390_DELAY_REG_ADDR          (0xFE)
 45 
 46 #define AW87390_SOFT_RESET_VALUE        (0xAA)
 47 #define AW87390_POWER_DOWN_VALUE        (0x00)
 48 #define AW87390_REG_MAX         (0xFF)
 49 #define AW87390_DEV_DEFAULT_CH          (0)
 50 #define AW87390_INIT_PROFILE            (0)
 51 #define AW87390_REG_DELAY_TIME          (1000)
 52 #define AW87390_I2C_NAME                "aw87390"
 53 #define AW87390_ACF_FILE                "aw87390_acf.bin"
 54 
 55 #define AW87390_PROFILE_EXT(xname, profile_info, profile_get, profile_set) \
 56 { \
 57         .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
 58         .name = xname, \
 59         .info = profile_info, \
 60         .get = profile_get, \
 61         .put = profile_set, \
 62 }
 63 
 64 enum aw87390_id {
 65         AW87390_CHIP_ID = 0x76,
 66 };
 67 
 68 enum {
 69         AW87390_DEV_FW_FAILED = 0,
 70         AW87390_DEV_FW_OK,
 71 };
 72 
 73 enum {
 74         AW87390_DEV_PW_OFF = 0,
 75         AW87390_DEV_PW_ON,
 76 };
 77 
 78 struct aw87390 {
 79         struct aw_device *aw_pa;
 80         struct mutex lock;
 81         struct regmap *regmap;
 82         struct aw_container *aw_cfg;
 83 };
 84 
 85 #endif
 86 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php