1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/sound/cs35l35.h -- Platform data for CS35l35
5 * Copyright (c) 2016 Cirrus Logic Inc.
13 * Class H Algorithm Control Variables
14 * You can either have it done
15 * automatically or you can adjust
16 * these variables for tuning
18 * if you do not enable the internal algorithm
19 * you will get a set of mixer controls for
22 * Section 4.3 of the datasheet
24 bool classh_bst_override
;
25 bool classh_algo_enable
;
26 int classh_bst_max_limit
;
28 int classh_release_rate
;
30 int classh_wk_fet_disable
;
31 int classh_wk_fet_delay
;
32 int classh_wk_fet_thld
;
41 * highly configurable signal monitoring
42 * data positioning and different types of
45 * Section 4.8.2 - 4.8.4 of the datasheet
75 struct cs35l35_platform_data
{
77 /* Stereo (2 Device) */
79 /* serial port drive strength */
81 /* serial port drive in unused slots */
83 /* Boost Power Down with FET */
85 /* Boost Voltage : used if ClassH Algo Enabled */
87 /* Boost Converter Peak Current CTRL */
89 /* Amp Gain Zero Cross */
91 /* Audio Input Location */
93 /* Advisory Input Location */
95 /* Shared Boost for stereo */
97 /* Specifies this amp is using an external boost supply */
101 /* ClassH Algorithm */
102 struct classh_cfg classh_algo
;
104 struct monitor_cfg mon_cfg
;
107 #endif /* __CS35L35_H */