brintos

brintos / linux-shallow public Read only

0
0
Text · 2.6 KiB · c4b7140 Raw
98 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/*3 * PCM3168A codec driver header4 *5 * Copyright (C) 2015 Imagination Technologies Ltd.6 *7 * Author: Damien Horsley <Damien.Horsley@imgtec.com>8 */9 10#ifndef __PCM3168A_H__11#define __PCM3168A_H__12 13extern const struct dev_pm_ops pcm3168a_pm_ops;14extern const struct regmap_config pcm3168a_regmap;15 16extern int pcm3168a_probe(struct device *dev, struct regmap *regmap);17extern void pcm3168a_remove(struct device *dev);18 19#define PCM3168A_RST_SMODE			0x4020#define PCM3168A_MRST_MASK			0x8021#define PCM3168A_SRST_MASK			0x4022#define PCM3168A_DAC_SRDA_SHIFT			023#define PCM3168A_DAC_SRDA_MASK			0x324 25#define PCM3168A_DAC_PWR_MST_FMT		0x4126#define PCM3168A_DAC_PSMDA_SHIFT		727#define PCM3168A_DAC_PSMDA_MASK			0x8028#define PCM3168A_DAC_MSDA_SHIFT			429#define PCM3168A_DAC_MSDA_MASK			0x7030#define PCM3168A_DAC_FMT_SHIFT			031#define PCM3168A_DAC_FMT_MASK			0xf32 33#define PCM3168A_DAC_OP_FLT			0x4234#define PCM3168A_DAC_OPEDA_SHIFT		435#define PCM3168A_DAC_OPEDA_MASK			0xf036#define PCM3168A_DAC_FLT_SHIFT			037#define PCM3168A_DAC_FLT_MASK			0xf38 39#define PCM3168A_DAC_INV			0x4340 41#define PCM3168A_DAC_MUTE			0x4442 43#define PCM3168A_DAC_ZERO			0x4544 45#define PCM3168A_DAC_ATT_DEMP_ZF		0x4646#define PCM3168A_DAC_ATMDDA_MASK		0x8047#define PCM3168A_DAC_ATMDDA_SHIFT		748#define PCM3168A_DAC_ATSPDA_MASK		0x4049#define PCM3168A_DAC_ATSPDA_SHIFT		650#define PCM3168A_DAC_DEMP_SHIFT			451#define PCM3168A_DAC_DEMP_MASK			0x3052#define PCM3168A_DAC_AZRO_SHIFT			153#define PCM3168A_DAC_AZRO_MASK			0xe54#define PCM3168A_DAC_ZREV_MASK			0x155#define PCM3168A_DAC_ZREV_SHIFT			056 57#define PCM3168A_DAC_VOL_MASTER			0x4758 59#define PCM3168A_DAC_VOL_CHAN_START		0x4860 61#define PCM3168A_ADC_SMODE			0x5062#define PCM3168A_ADC_SRAD_SHIFT			063#define PCM3168A_ADC_SRAD_MASK			0x364 65#define PCM3168A_ADC_MST_FMT			0x5166#define PCM3168A_ADC_MSAD_SHIFT			467#define PCM3168A_ADC_MSAD_MASK			0x7068#define PCM3168A_ADC_FMTAD_SHIFT		069#define PCM3168A_ADC_FMTAD_MASK			0x770 71#define PCM3168A_ADC_PWR_HPFB			0x5272#define PCM3168A_ADC_PSVAD_SHIFT		473#define PCM3168A_ADC_PSVAD_MASK			0x7074#define PCM3168A_ADC_BYP_SHIFT			075#define PCM3168A_ADC_BYP_MASK			0x776 77#define PCM3168A_ADC_SEAD			0x5378 79#define PCM3168A_ADC_INV			0x5480 81#define PCM3168A_ADC_MUTE			0x5582 83#define PCM3168A_ADC_OV				0x5684 85#define PCM3168A_ADC_ATT_OVF			0x5786#define PCM3168A_ADC_ATMDAD_MASK		0x8087#define PCM3168A_ADC_ATMDAD_SHIFT		788#define PCM3168A_ADC_ATSPAD_MASK		0x4089#define PCM3168A_ADC_ATSPAD_SHIFT		690#define PCM3168A_ADC_OVFP_MASK			0x191#define PCM3168A_ADC_OVFP_SHIFT			092 93#define PCM3168A_ADC_VOL_MASTER			0x5894 95#define PCM3168A_ADC_VOL_CHAN_START		0x5996 97#endif98