brintos

brintos / linux-shallow public Read only

0
0
Text · 1.3 KiB · 8bc28c2 Raw
61 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/*3 * cs4265.h -- CS4265 ALSA SoC audio driver4 *5 * Copyright 2014 Cirrus Logic, Inc.6 *7 * Author: Paul Handrigan <paul.handrigan@cirrus.com>8 */9 10#ifndef __CS4265_H__11#define __CS4265_H__12 13#define CS4265_CHIP_ID				0x114#define CS4265_CHIP_ID_VAL			0xD015#define CS4265_CHIP_ID_MASK			0xF016#define CS4265_REV_ID_MASK			0x0F17 18#define CS4265_PWRCTL				0x0219#define CS4265_PWRCTL_PDN			120 21#define CS4265_DAC_CTL				0x322#define CS4265_DAC_CTL_MUTE			(1 << 2)23#define CS4265_DAC_CTL_DIF			(3 << 4)24 25#define CS4265_ADC_CTL				0x426#define CS4265_ADC_MASTER			127#define CS4265_ADC_DIF				(1 << 4)28#define CS4265_ADC_FM				(3 << 6)29 30#define CS4265_MCLK_FREQ			0x531#define CS4265_MCLK_FREQ_MASK			(7 << 4)32 33#define CS4265_SIG_SEL				0x634#define CS4265_SIG_SEL_LOOP			(1 << 1)35 36#define CS4265_CHB_PGA_CTL			0x737#define CS4265_CHA_PGA_CTL			0x838 39#define CS4265_ADC_CTL2				0x940 41#define CS4265_DAC_CHA_VOL			0xA42#define CS4265_DAC_CHB_VOL			0xB43 44#define CS4265_DAC_CTL2				0xC45 46#define CS4265_INT_STATUS			0xD47#define CS4265_INT_MASK				0xE48#define CS4265_STATUS_MODE_MSB			0xF49#define CS4265_STATUS_MODE_LSB			0x1050 51#define CS4265_SPDIF_CTL1			0x1152 53#define CS4265_SPDIF_CTL2			0x1254#define CS4265_SPDIF_CTL2_MUTE			(1 << 4)55#define CS4265_SPDIF_CTL2_DIF			(3 << 6)56 57#define CS4265_C_DATA_BUFF			0x1358#define CS4265_MAX_REGISTER			0x2A59 60#endif61