brintos

brintos / linux-shallow public Read only

0
0
Text · 4.5 KiB · 23afc77 Raw
140 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/*3 * isabelle.h - Low power high fidelity audio codec driver header file4 *5 * Copyright (c) 2012 Texas Instruments, Inc6 */7 8#ifndef _ISABELLE_H9#define _ISABELLE_H10 11#include <linux/bitops.h>12 13/* ISABELLE REGISTERS */14 15#define ISABELLE_PWR_CFG_REG		0x0116#define ISABELLE_PWR_EN_REG		0x0217#define ISABELLE_PS_EN1_REG		0x0318#define ISABELLE_INT1_STATUS_REG	0x0419#define ISABELLE_INT1_MASK_REG		0x0520#define ISABELLE_INT2_STATUS_REG	0x0621#define ISABELLE_INT2_MASK_REG		0x0722#define ISABELLE_HKCTL1_REG		0x0823#define ISABELLE_HKCTL2_REG		0x0924#define ISABELLE_HKCTL3_REG		0x0A25#define ISABELLE_ACCDET_STATUS_REG	0x0B26#define ISABELLE_BUTTON_ID_REG		0x0C27#define ISABELLE_PLL_CFG_REG		0x1028#define ISABELLE_PLL_EN_REG		0x1129#define ISABELLE_FS_RATE_CFG_REG	0x1230#define ISABELLE_INTF_CFG_REG		0x1331#define ISABELLE_INTF_EN_REG		0x1432#define ISABELLE_ULATX12_INTF_CFG_REG	0x1533#define ISABELLE_DL12_INTF_CFG_REG	0x1634#define ISABELLE_DL34_INTF_CFG_REG	0x1735#define ISABELLE_DL56_INTF_CFG_REG	0x1836#define ISABELLE_ATX_STPGA1_CFG_REG	0x1937#define ISABELLE_ATX_STPGA2_CFG_REG	0x1A38#define ISABELLE_VTX_STPGA1_CFG_REG	0x1B39#define ISABELLE_VTX2_STPGA2_CFG_REG	0x1C40#define ISABELLE_ATX1_DPGA_REG		0x1D41#define ISABELLE_ATX2_DPGA_REG		0x1E42#define ISABELLE_VTX1_DPGA_REG		0x1F43#define ISABELLE_VTX2_DPGA_REG		0x2044#define ISABELLE_TX_INPUT_CFG_REG	0x2145#define ISABELLE_RX_INPUT_CFG_REG	0x2246#define ISABELLE_RX_INPUT_CFG2_REG	0x2347#define ISABELLE_VOICE_HPF_CFG_REG	0x2448#define ISABELLE_AUDIO_HPF_CFG_REG	0x2549#define ISABELLE_RX1_DPGA_REG		0x2650#define ISABELLE_RX2_DPGA_REG		0x2751#define ISABELLE_RX3_DPGA_REG		0x2852#define ISABELLE_RX4_DPGA_REG		0x2953#define ISABELLE_RX5_DPGA_REG		0x2A54#define ISABELLE_RX6_DPGA_REG		0x2B55#define ISABELLE_ALU_TX_EN_REG		0x2C56#define ISABELLE_ALU_RX_EN_REG		0x2D57#define ISABELLE_IIR_RESYNC_REG		0x2E58#define ISABELLE_ABIAS_CFG_REG		0x3059#define ISABELLE_DBIAS_CFG_REG		0x3160#define ISABELLE_MIC1_GAIN_REG		0x3261#define ISABELLE_MIC2_GAIN_REG		0x3362#define ISABELLE_AMIC_CFG_REG		0x3463#define ISABELLE_DMIC_CFG_REG		0x3564#define ISABELLE_APGA_GAIN_REG		0x3665#define ISABELLE_APGA_CFG_REG		0x3766#define ISABELLE_TX_GAIN_DLY_REG	0x3867#define ISABELLE_RX_GAIN_DLY_REG	0x3968#define ISABELLE_RX_PWR_CTRL_REG	0x3A69#define ISABELLE_DPGA1LR_IN_SEL_REG	0x3B70#define ISABELLE_DPGA1L_GAIN_REG	0x3C71#define ISABELLE_DPGA1R_GAIN_REG	0x3D72#define ISABELLE_DPGA2L_IN_SEL_REG	0x3E73#define ISABELLE_DPGA2R_IN_SEL_REG	0x3F74#define ISABELLE_DPGA2L_GAIN_REG	0x4075#define ISABELLE_DPGA2R_GAIN_REG	0x4176#define ISABELLE_DPGA3LR_IN_SEL_REG	0x4277#define ISABELLE_DPGA3L_GAIN_REG	0x4378#define ISABELLE_DPGA3R_GAIN_REG	0x4479#define ISABELLE_DAC1_SOFTRAMP_REG	0x4580#define ISABELLE_DAC2_SOFTRAMP_REG	0x4681#define ISABELLE_DAC3_SOFTRAMP_REG	0x4782#define ISABELLE_DAC_CFG_REG		0x4883#define ISABELLE_EARDRV_CFG1_REG	0x4984#define ISABELLE_EARDRV_CFG2_REG	0x4A85#define ISABELLE_HSDRV_GAIN_REG		0x4B86#define ISABELLE_HSDRV_CFG1_REG		0x4C87#define ISABELLE_HSDRV_CFG2_REG		0x4D88#define ISABELLE_HS_NG_CFG1_REG		0x4E89#define ISABELLE_HS_NG_CFG2_REG		0x4F90#define ISABELLE_LINEAMP_GAIN_REG	0x5091#define ISABELLE_LINEAMP_CFG_REG	0x5192#define ISABELLE_HFL_VOL_CTRL_REG	0x5293#define ISABELLE_HFL_SFTVOL_CTRL_REG	0x5394#define ISABELLE_HFL_LIM_CTRL_1_REG	0x5495#define ISABELLE_HFL_LIM_CTRL_2_REG	0x5596#define ISABELLE_HFR_VOL_CTRL_REG	0x5697#define ISABELLE_HFR_SFTVOL_CTRL_REG	0x5798#define ISABELLE_HFR_LIM_CTRL_1_REG	0x5899#define ISABELLE_HFR_LIM_CTRL_2_REG	0x59100#define ISABELLE_HF_MODE_REG		0x5A101#define ISABELLE_HFLPGA_CFG_REG		0x5B102#define ISABELLE_HFRPGA_CFG_REG		0x5C103#define ISABELLE_HFDRV_CFG_REG		0x5D104#define ISABELLE_PDMOUT_CFG1_REG	0x5E105#define ISABELLE_PDMOUT_CFG2_REG	0x5F106#define ISABELLE_PDMOUT_L_WM_REG	0x60107#define ISABELLE_PDMOUT_R_WM_REG	0x61108#define ISABELLE_HF_NG_CFG1_REG		0x62109#define ISABELLE_HF_NG_CFG2_REG		0x63110 111/* ISABELLE_PWR_EN_REG (0x02h) */112#define ISABELLE_CHIP_EN		BIT(0)113 114/* ISABELLE DAI FORMATS */115#define ISABELLE_AIF_FMT_MASK		0x70116#define ISABELLE_I2S_MODE		0x0117#define ISABELLE_LEFT_J_MODE		0x1118#define ISABELLE_PDM_MODE		0x2119 120#define ISABELLE_AIF_LENGTH_MASK	0x30121#define ISABELLE_AIF_LENGTH_20		0x00122#define ISABELLE_AIF_LENGTH_32		0x10123 124#define ISABELLE_AIF_MS			0x80125 126#define ISABELLE_FS_RATE_MASK		0xF127#define ISABELLE_FS_RATE_8		0x0128#define ISABELLE_FS_RATE_11		0x1129#define ISABELLE_FS_RATE_12		0x2130#define ISABELLE_FS_RATE_16		0x4131#define ISABELLE_FS_RATE_22		0x5132#define ISABELLE_FS_RATE_24		0x6133#define ISABELLE_FS_RATE_32		0x8134#define ISABELLE_FS_RATE_44		0x9135#define ISABELLE_FS_RATE_48		0xA136 137#define ISABELLE_MAX_REGISTER		0xFF138 139#endif140