xref: /linux/include/sound/cs35l56.h (revision e496112529006ce0c2cfe67d1136186e2786d2e8)
1*e4961125SRichard Fitzgerald /* SPDX-License-Identifier: GPL-2.0-only */
2*e4961125SRichard Fitzgerald /*
3*e4961125SRichard Fitzgerald  * Common definitions for Cirrus Logic CS35L56 smart amp
4*e4961125SRichard Fitzgerald  *
5*e4961125SRichard Fitzgerald  * Copyright (C) 2023 Cirrus Logic, Inc. and
6*e4961125SRichard Fitzgerald  *                    Cirrus Logic International Semiconductor Ltd.
7*e4961125SRichard Fitzgerald  */
8*e4961125SRichard Fitzgerald 
9*e4961125SRichard Fitzgerald #ifndef __CS35L56_H
10*e4961125SRichard Fitzgerald #define __CS35L56_H
11*e4961125SRichard Fitzgerald 
12*e4961125SRichard Fitzgerald #include <linux/firmware/cirrus/cs_dsp.h>
13*e4961125SRichard Fitzgerald #include <linux/regulator/consumer.h>
14*e4961125SRichard Fitzgerald #include <linux/regmap.h>
15*e4961125SRichard Fitzgerald 
16*e4961125SRichard Fitzgerald #define CS35L56_DEVID					0x0000000
17*e4961125SRichard Fitzgerald #define CS35L56_REVID					0x0000004
18*e4961125SRichard Fitzgerald #define CS35L56_RELID					0x000000C
19*e4961125SRichard Fitzgerald #define CS35L56_OTPID					0x0000010
20*e4961125SRichard Fitzgerald #define CS35L56_SFT_RESET				0x0000020
21*e4961125SRichard Fitzgerald #define CS35L56_GLOBAL_ENABLES				0x0002014
22*e4961125SRichard Fitzgerald #define CS35L56_BLOCK_ENABLES				0x0002018
23*e4961125SRichard Fitzgerald #define CS35L56_BLOCK_ENABLES2				0x000201C
24*e4961125SRichard Fitzgerald #define CS35L56_REFCLK_INPUT				0x0002C04
25*e4961125SRichard Fitzgerald #define CS35L56_GLOBAL_SAMPLE_RATE			0x0002C0C
26*e4961125SRichard Fitzgerald #define CS35L56_ASP1_ENABLES1				0x0004800
27*e4961125SRichard Fitzgerald #define CS35L56_ASP1_CONTROL1				0x0004804
28*e4961125SRichard Fitzgerald #define CS35L56_ASP1_CONTROL2				0x0004808
29*e4961125SRichard Fitzgerald #define CS35L56_ASP1_CONTROL3				0x000480C
30*e4961125SRichard Fitzgerald #define CS35L56_ASP1_FRAME_CONTROL1			0x0004810
31*e4961125SRichard Fitzgerald #define CS35L56_ASP1_FRAME_CONTROL5			0x0004820
32*e4961125SRichard Fitzgerald #define CS35L56_ASP1_DATA_CONTROL1			0x0004830
33*e4961125SRichard Fitzgerald #define CS35L56_ASP1_DATA_CONTROL5			0x0004840
34*e4961125SRichard Fitzgerald #define CS35L56_DACPCM1_INPUT				0x0004C00
35*e4961125SRichard Fitzgerald #define CS35L56_DACPCM2_INPUT				0x0004C08
36*e4961125SRichard Fitzgerald #define CS35L56_ASP1TX1_INPUT				0x0004C20
37*e4961125SRichard Fitzgerald #define CS35L56_ASP1TX2_INPUT				0x0004C24
38*e4961125SRichard Fitzgerald #define CS35L56_ASP1TX3_INPUT				0x0004C28
39*e4961125SRichard Fitzgerald #define CS35L56_ASP1TX4_INPUT				0x0004C2C
40*e4961125SRichard Fitzgerald #define CS35L56_DSP1RX1_INPUT				0x0004C40
41*e4961125SRichard Fitzgerald #define CS35L56_DSP1RX2_INPUT				0x0004C44
42*e4961125SRichard Fitzgerald #define CS35L56_SWIRE_DP3_CH1_INPUT			0x0004C70
43*e4961125SRichard Fitzgerald #define CS35L56_SWIRE_DP3_CH2_INPUT			0x0004C74
44*e4961125SRichard Fitzgerald #define CS35L56_SWIRE_DP3_CH3_INPUT			0x0004C78
45*e4961125SRichard Fitzgerald #define CS35L56_SWIRE_DP3_CH4_INPUT			0x0004C7C
46*e4961125SRichard Fitzgerald #define CS35L56_SWIRE_DP3_CH5_INPUT			0x0004C80
47*e4961125SRichard Fitzgerald #define CS35L56_SWIRE_DP3_CH6_INPUT			0x0004C84
48*e4961125SRichard Fitzgerald #define CS35L56_IRQ1_CFG				0x000E000
49*e4961125SRichard Fitzgerald #define CS35L56_IRQ1_STATUS				0x000E004
50*e4961125SRichard Fitzgerald #define CS35L56_IRQ1_EINT_1				0x000E010
51*e4961125SRichard Fitzgerald #define CS35L56_IRQ1_EINT_2				0x000E014
52*e4961125SRichard Fitzgerald #define CS35L56_IRQ1_EINT_4				0x000E01C
53*e4961125SRichard Fitzgerald #define CS35L56_IRQ1_EINT_8				0x000E02C
54*e4961125SRichard Fitzgerald #define CS35L56_IRQ1_EINT_18				0x000E054
55*e4961125SRichard Fitzgerald #define CS35L56_IRQ1_EINT_20				0x000E05C
56*e4961125SRichard Fitzgerald #define CS35L56_IRQ1_MASK_1				0x000E090
57*e4961125SRichard Fitzgerald #define CS35L56_IRQ1_MASK_2				0x000E094
58*e4961125SRichard Fitzgerald #define CS35L56_IRQ1_MASK_4				0x000E09C
59*e4961125SRichard Fitzgerald #define CS35L56_IRQ1_MASK_8				0x000E0AC
60*e4961125SRichard Fitzgerald #define CS35L56_IRQ1_MASK_18				0x000E0D4
61*e4961125SRichard Fitzgerald #define CS35L56_IRQ1_MASK_20				0x000E0DC
62*e4961125SRichard Fitzgerald #define CS35L56_DSP_VIRTUAL1_MBOX_1			0x0011020
63*e4961125SRichard Fitzgerald #define CS35L56_DSP_VIRTUAL1_MBOX_2			0x0011024
64*e4961125SRichard Fitzgerald #define CS35L56_DSP_VIRTUAL1_MBOX_3			0x0011028
65*e4961125SRichard Fitzgerald #define CS35L56_DSP_VIRTUAL1_MBOX_4			0x001102C
66*e4961125SRichard Fitzgerald #define CS35L56_DSP_VIRTUAL1_MBOX_5			0x0011030
67*e4961125SRichard Fitzgerald #define CS35L56_DSP_VIRTUAL1_MBOX_6			0x0011034
68*e4961125SRichard Fitzgerald #define CS35L56_DSP_VIRTUAL1_MBOX_7			0x0011038
69*e4961125SRichard Fitzgerald #define CS35L56_DSP_VIRTUAL1_MBOX_8			0x001103C
70*e4961125SRichard Fitzgerald #define CS35L56_DSP_RESTRICT_STS1			0x00190F0
71*e4961125SRichard Fitzgerald #define CS35L56_DSP1_XMEM_PACKED_0			0x2000000
72*e4961125SRichard Fitzgerald #define CS35L56_DSP1_XMEM_PACKED_6143			0x2005FFC
73*e4961125SRichard Fitzgerald #define CS35L56_DSP1_XMEM_UNPACKED32_0			0x2400000
74*e4961125SRichard Fitzgerald #define CS35L56_DSP1_XMEM_UNPACKED32_4095		0x2403FFC
75*e4961125SRichard Fitzgerald #define CS35L56_DSP1_SYS_INFO_ID			0x25E0000
76*e4961125SRichard Fitzgerald #define CS35L56_DSP1_SYS_INFO_END			0x25E004C
77*e4961125SRichard Fitzgerald #define CS35L56_DSP1_AHBM_WINDOW_DEBUG_0		0x25E2040
78*e4961125SRichard Fitzgerald #define CS35L56_DSP1_AHBM_WINDOW_DEBUG_1		0x25E2044
79*e4961125SRichard Fitzgerald #define CS35L56_DSP1_XMEM_UNPACKED24_0			0x2800000
80*e4961125SRichard Fitzgerald #define CS35L56_DSP1_HALO_STATE_A1			0x2801E58
81*e4961125SRichard Fitzgerald #define CS35L56_DSP1_HALO_STATE				0x28021E0
82*e4961125SRichard Fitzgerald #define CS35L56_DSP1_PM_CUR_STATE_A1			0x2804000
83*e4961125SRichard Fitzgerald #define CS35L56_DSP1_PM_CUR_STATE			0x2804308
84*e4961125SRichard Fitzgerald #define CS35L56_DSP1_XMEM_UNPACKED24_8191		0x2807FFC
85*e4961125SRichard Fitzgerald #define CS35L56_DSP1_CORE_BASE				0x2B80000
86*e4961125SRichard Fitzgerald #define CS35L56_DSP1_SCRATCH1				0x2B805C0
87*e4961125SRichard Fitzgerald #define CS35L56_DSP1_SCRATCH2				0x2B805C8
88*e4961125SRichard Fitzgerald #define CS35L56_DSP1_SCRATCH3				0x2B805D0
89*e4961125SRichard Fitzgerald #define CS35L56_DSP1_SCRATCH4				0x2B805D8
90*e4961125SRichard Fitzgerald #define CS35L56_DSP1_YMEM_PACKED_0			0x2C00000
91*e4961125SRichard Fitzgerald #define CS35L56_DSP1_YMEM_PACKED_4604			0x2C047F0
92*e4961125SRichard Fitzgerald #define CS35L56_DSP1_YMEM_UNPACKED32_0			0x3000000
93*e4961125SRichard Fitzgerald #define CS35L56_DSP1_YMEM_UNPACKED32_3070		0x3002FF8
94*e4961125SRichard Fitzgerald #define CS35L56_DSP1_YMEM_UNPACKED24_0			0x3400000
95*e4961125SRichard Fitzgerald #define CS35L56_MAIN_RENDER_USER_MUTE			0x3400024
96*e4961125SRichard Fitzgerald #define CS35L56_MAIN_RENDER_USER_VOLUME			0x340002C
97*e4961125SRichard Fitzgerald #define CS35L56_MAIN_POSTURE_NUMBER			0x3400094
98*e4961125SRichard Fitzgerald #define CS35L56_TRANSDUCER_ACTUAL_PS			0x3400150
99*e4961125SRichard Fitzgerald #define CS35L56_DSP1_YMEM_UNPACKED24_6141		0x3405FF4
100*e4961125SRichard Fitzgerald #define CS35L56_DSP1_PMEM_0				0x3800000
101*e4961125SRichard Fitzgerald #define CS35L56_DSP1_PMEM_5114				0x3804FE8
102*e4961125SRichard Fitzgerald 
103*e4961125SRichard Fitzgerald /* DEVID */
104*e4961125SRichard Fitzgerald #define CS35L56_DEVID_MASK				0x00FFFFFF
105*e4961125SRichard Fitzgerald 
106*e4961125SRichard Fitzgerald /* REVID */
107*e4961125SRichard Fitzgerald #define CS35L56_AREVID_MASK				0x000000F0
108*e4961125SRichard Fitzgerald #define CS35L56_MTLREVID_MASK				0x0000000F
109*e4961125SRichard Fitzgerald #define CS35L56_REVID_B0				0x000000B0
110*e4961125SRichard Fitzgerald 
111*e4961125SRichard Fitzgerald /* ASP_ENABLES1 */
112*e4961125SRichard Fitzgerald #define CS35L56_ASP_RX2_EN_SHIFT			17
113*e4961125SRichard Fitzgerald #define CS35L56_ASP_RX1_EN_SHIFT			16
114*e4961125SRichard Fitzgerald #define CS35L56_ASP_TX4_EN_SHIFT			3
115*e4961125SRichard Fitzgerald #define CS35L56_ASP_TX3_EN_SHIFT			2
116*e4961125SRichard Fitzgerald #define CS35L56_ASP_TX2_EN_SHIFT			1
117*e4961125SRichard Fitzgerald #define CS35L56_ASP_TX1_EN_SHIFT			0
118*e4961125SRichard Fitzgerald 
119*e4961125SRichard Fitzgerald /* ASP_CONTROL1 */
120*e4961125SRichard Fitzgerald #define CS35L56_ASP_BCLK_FREQ_MASK			0x0000003F
121*e4961125SRichard Fitzgerald #define CS35L56_ASP_BCLK_FREQ_SHIFT			0
122*e4961125SRichard Fitzgerald 
123*e4961125SRichard Fitzgerald /* ASP_CONTROL2 */
124*e4961125SRichard Fitzgerald #define CS35L56_ASP_RX_WIDTH_MASK			0xFF000000
125*e4961125SRichard Fitzgerald #define CS35L56_ASP_RX_WIDTH_SHIFT			24
126*e4961125SRichard Fitzgerald #define CS35L56_ASP_TX_WIDTH_MASK			0x00FF0000
127*e4961125SRichard Fitzgerald #define CS35L56_ASP_TX_WIDTH_SHIFT			16
128*e4961125SRichard Fitzgerald #define CS35L56_ASP_FMT_MASK				0x00000700
129*e4961125SRichard Fitzgerald #define CS35L56_ASP_FMT_SHIFT				8
130*e4961125SRichard Fitzgerald #define CS35L56_ASP_BCLK_INV_MASK			0x00000040
131*e4961125SRichard Fitzgerald #define CS35L56_ASP_FSYNC_INV_MASK			0x00000004
132*e4961125SRichard Fitzgerald 
133*e4961125SRichard Fitzgerald /* ASP_CONTROL3 */
134*e4961125SRichard Fitzgerald #define CS35L56_ASP1_DOUT_HIZ_CTRL_MASK			0x00000003
135*e4961125SRichard Fitzgerald 
136*e4961125SRichard Fitzgerald /* ASP_DATA_CONTROL1 */
137*e4961125SRichard Fitzgerald #define CS35L56_ASP_TX_WL_MASK				0x0000003F
138*e4961125SRichard Fitzgerald 
139*e4961125SRichard Fitzgerald /* ASP_DATA_CONTROL5 */
140*e4961125SRichard Fitzgerald #define CS35L56_ASP_RX_WL_MASK				0x0000003F
141*e4961125SRichard Fitzgerald 
142*e4961125SRichard Fitzgerald /* ASPTXn_INPUT */
143*e4961125SRichard Fitzgerald #define CS35L56_ASP_TXn_SRC_MASK			0x0000007F
144*e4961125SRichard Fitzgerald 
145*e4961125SRichard Fitzgerald /* SWIRETX[1..7]_SRC SDWTXn INPUT */
146*e4961125SRichard Fitzgerald #define CS35L56_SWIRETXn_SRC_MASK			0x0000007F
147*e4961125SRichard Fitzgerald 
148*e4961125SRichard Fitzgerald /* IRQ1_STATUS */
149*e4961125SRichard Fitzgerald #define CS35L56_IRQ1_STS_MASK				0x00000001
150*e4961125SRichard Fitzgerald 
151*e4961125SRichard Fitzgerald /* IRQ1_EINT_1 */
152*e4961125SRichard Fitzgerald #define CS35L56_AMP_SHORT_ERR_EINT1_MASK		0x80000000
153*e4961125SRichard Fitzgerald 
154*e4961125SRichard Fitzgerald /* IRQ1_EINT_2 */
155*e4961125SRichard Fitzgerald #define CS35L56_DSP_VIRTUAL2_MBOX_WR_EINT1_MASK		0x00200000
156*e4961125SRichard Fitzgerald 
157*e4961125SRichard Fitzgerald /* IRQ1_EINT_4 */
158*e4961125SRichard Fitzgerald #define CS35L56_OTP_BOOT_DONE_MASK			0x00000002
159*e4961125SRichard Fitzgerald 
160*e4961125SRichard Fitzgerald /* IRQ1_EINT_8 */
161*e4961125SRichard Fitzgerald #define CS35L56_TEMP_ERR_EINT1_MASK			0x80000000
162*e4961125SRichard Fitzgerald 
163*e4961125SRichard Fitzgerald /* Mixer input sources */
164*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_NONE				0x00
165*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_ASP1RX1			0x08
166*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_ASP1RX2			0x09
167*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_VMON				0x18
168*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_IMON				0x19
169*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_ERR_VOL			0x20
170*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_CLASSH			0x21
171*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_VDDBMON			0x28
172*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_VBSTMON			0x29
173*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_DSP1TX1			0x32
174*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_DSP1TX2			0x33
175*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_DSP1TX3			0x34
176*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_DSP1TX4			0x35
177*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_DSP1TX5			0x36
178*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_DSP1TX6			0x37
179*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_DSP1TX7			0x38
180*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_DSP1TX8			0x39
181*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_TEMPMON			0x3A
182*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_INTERPOLATOR			0x40
183*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_SWIRE_RX1			0x44
184*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_SWIRE_RX2			0x45
185*e4961125SRichard Fitzgerald #define CS35L56_INPUT_SRC_SWIRE_RX3			0x46
186*e4961125SRichard Fitzgerald #define CS35L56_INPUT_MASK				0x7F
187*e4961125SRichard Fitzgerald 
188*e4961125SRichard Fitzgerald #define CS35L56_NUM_INPUT_SRC				22
189*e4961125SRichard Fitzgerald 
190*e4961125SRichard Fitzgerald /* ASP formats */
191*e4961125SRichard Fitzgerald #define CS35L56_ASP_FMT_DSP_A				0
192*e4961125SRichard Fitzgerald #define CS35L56_ASP_FMT_I2S				2
193*e4961125SRichard Fitzgerald 
194*e4961125SRichard Fitzgerald /* ASP HiZ modes */
195*e4961125SRichard Fitzgerald #define CS35L56_ASP_UNUSED_HIZ_OFF_HIZ			3
196*e4961125SRichard Fitzgerald 
197*e4961125SRichard Fitzgerald /* MAIN_RENDER_ACTUAL_PS */
198*e4961125SRichard Fitzgerald #define CS35L56_PS0					0
199*e4961125SRichard Fitzgerald #define CS35L56_PS3					3
200*e4961125SRichard Fitzgerald 
201*e4961125SRichard Fitzgerald /* CS35L56_DSP_RESTRICT_STS1 */
202*e4961125SRichard Fitzgerald #define CS35L56_RESTRICTED_MASK				0x7
203*e4961125SRichard Fitzgerald 
204*e4961125SRichard Fitzgerald /* CS35L56_MAIN_RENDER_USER_MUTE */
205*e4961125SRichard Fitzgerald #define CS35L56_MAIN_RENDER_USER_MUTE_MASK		1
206*e4961125SRichard Fitzgerald 
207*e4961125SRichard Fitzgerald /* CS35L56_MAIN_RENDER_USER_VOLUME */
208*e4961125SRichard Fitzgerald #define CS35L56_MAIN_RENDER_USER_VOLUME_MIN		-400
209*e4961125SRichard Fitzgerald #define CS35L56_MAIN_RENDER_USER_VOLUME_MAX		400
210*e4961125SRichard Fitzgerald #define CS35L56_MAIN_RENDER_USER_VOLUME_MASK		0x0000FFC0
211*e4961125SRichard Fitzgerald #define CS35L56_MAIN_RENDER_USER_VOLUME_SHIFT		6
212*e4961125SRichard Fitzgerald #define CS35L56_MAIN_RENDER_USER_VOLUME_SIGNBIT		9
213*e4961125SRichard Fitzgerald 
214*e4961125SRichard Fitzgerald /* CS35L56_MAIN_POSTURE_NUMBER */
215*e4961125SRichard Fitzgerald #define CS35L56_MAIN_POSTURE_MIN			0
216*e4961125SRichard Fitzgerald #define CS35L56_MAIN_POSTURE_MAX			255
217*e4961125SRichard Fitzgerald #define CS35L56_MAIN_POSTURE_MASK			CS35L56_MAIN_POSTURE_MAX
218*e4961125SRichard Fitzgerald 
219*e4961125SRichard Fitzgerald /* Software Values */
220*e4961125SRichard Fitzgerald #define CS35L56_HALO_STATE_SHUTDOWN			1
221*e4961125SRichard Fitzgerald #define CS35L56_HALO_STATE_BOOT_DONE			2
222*e4961125SRichard Fitzgerald 
223*e4961125SRichard Fitzgerald #define CS35L56_MBOX_CMD_AUDIO_PLAY			0x0B000001
224*e4961125SRichard Fitzgerald #define CS35L56_MBOX_CMD_AUDIO_PAUSE			0x0B000002
225*e4961125SRichard Fitzgerald #define CS35L56_MBOX_CMD_HIBERNATE_NOW			0x02000001
226*e4961125SRichard Fitzgerald #define CS35L56_MBOX_CMD_WAKEUP				0x02000002
227*e4961125SRichard Fitzgerald #define CS35L56_MBOX_CMD_PREVENT_AUTO_HIBERNATE		0x02000003
228*e4961125SRichard Fitzgerald #define CS35L56_MBOX_CMD_ALLOW_AUTO_HIBERNATE		0x02000004
229*e4961125SRichard Fitzgerald #define CS35L56_MBOX_CMD_SHUTDOWN			0x02000005
230*e4961125SRichard Fitzgerald #define CS35L56_MBOX_CMD_SYSTEM_RESET			0x02000007
231*e4961125SRichard Fitzgerald 
232*e4961125SRichard Fitzgerald #define CS35L56_MBOX_TIMEOUT_US				5000
233*e4961125SRichard Fitzgerald #define CS35L56_MBOX_POLL_US				250
234*e4961125SRichard Fitzgerald 
235*e4961125SRichard Fitzgerald #define CS35L56_PS0_POLL_US				500
236*e4961125SRichard Fitzgerald #define CS35L56_PS0_TIMEOUT_US				50000
237*e4961125SRichard Fitzgerald #define CS35L56_PS3_POLL_US				500
238*e4961125SRichard Fitzgerald #define CS35L56_PS3_TIMEOUT_US				300000
239*e4961125SRichard Fitzgerald 
240*e4961125SRichard Fitzgerald #define CS35L56_CONTROL_PORT_READY_US			2200
241*e4961125SRichard Fitzgerald #define CS35L56_HALO_STATE_POLL_US			1000
242*e4961125SRichard Fitzgerald #define CS35L56_HALO_STATE_TIMEOUT_US			50000
243*e4961125SRichard Fitzgerald #define CS35L56_HIBERNATE_WAKE_POLL_US			500
244*e4961125SRichard Fitzgerald #define CS35L56_HIBERNATE_WAKE_TIMEOUT_US		5000
245*e4961125SRichard Fitzgerald #define CS35L56_RESET_PULSE_MIN_US			1100
246*e4961125SRichard Fitzgerald 
247*e4961125SRichard Fitzgerald #define CS35L56_SDW1_PLAYBACK_PORT			1
248*e4961125SRichard Fitzgerald #define CS35L56_SDW1_CAPTURE_PORT			3
249*e4961125SRichard Fitzgerald 
250*e4961125SRichard Fitzgerald #define CS35L56_NUM_BULK_SUPPLIES			3
251*e4961125SRichard Fitzgerald #define CS35L56_NUM_DSP_REGIONS				5
252*e4961125SRichard Fitzgerald 
253*e4961125SRichard Fitzgerald extern struct regmap_config cs35l56_regmap_i2c;
254*e4961125SRichard Fitzgerald extern struct regmap_config cs35l56_regmap_spi;
255*e4961125SRichard Fitzgerald extern struct regmap_config cs35l56_regmap_sdw;
256*e4961125SRichard Fitzgerald 
257*e4961125SRichard Fitzgerald extern const struct cs_dsp_region cs35l56_dsp1_regions[CS35L56_NUM_DSP_REGIONS];
258*e4961125SRichard Fitzgerald extern const char * const cs35l56_tx_input_texts[CS35L56_NUM_INPUT_SRC];
259*e4961125SRichard Fitzgerald extern const unsigned int cs35l56_tx_input_values[CS35L56_NUM_INPUT_SRC];
260*e4961125SRichard Fitzgerald 
261*e4961125SRichard Fitzgerald void cs35l56_patch(struct device *dev, struct regmap *regmap, u8 revid);
262*e4961125SRichard Fitzgerald void cs35l56_reread_firmware_registers(struct device *dev, struct regmap *regmap);
263*e4961125SRichard Fitzgerald int cs35l56_get_bclk_freq_id(unsigned int freq);
264*e4961125SRichard Fitzgerald void cs35l56_fill_supply_names(struct regulator_bulk_data *data);
265*e4961125SRichard Fitzgerald 
266*e4961125SRichard Fitzgerald #endif /* ifndef __CS35L56_H */
267