xref: /openbmc/linux/include/sound/sta350.h (revision 2874c5fd)
12874c5fdSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */
22439ea1fSSven Brandau /*
32439ea1fSSven Brandau  * Platform data for ST STA350 ASoC codec driver.
42439ea1fSSven Brandau  *
52439ea1fSSven Brandau  * Copyright: 2014 Raumfeld GmbH
62439ea1fSSven Brandau  * Author: Sven Brandau <info@brandau.biz>
72439ea1fSSven Brandau  */
82439ea1fSSven Brandau #ifndef __LINUX_SND__STA350_H
92439ea1fSSven Brandau #define __LINUX_SND__STA350_H
102439ea1fSSven Brandau 
112439ea1fSSven Brandau #define STA350_OCFG_2CH		0
122439ea1fSSven Brandau #define STA350_OCFG_2_1CH	1
132439ea1fSSven Brandau #define STA350_OCFG_1CH		3
142439ea1fSSven Brandau 
152439ea1fSSven Brandau #define STA350_OM_CH1		0
162439ea1fSSven Brandau #define STA350_OM_CH2		1
172439ea1fSSven Brandau #define STA350_OM_CH3		2
182439ea1fSSven Brandau 
192439ea1fSSven Brandau #define STA350_THERMAL_ADJUSTMENT_ENABLE	1
202439ea1fSSven Brandau #define STA350_THERMAL_RECOVERY_ENABLE		2
212439ea1fSSven Brandau #define STA350_FAULT_DETECT_RECOVERY_BYPASS	1
222439ea1fSSven Brandau 
232439ea1fSSven Brandau #define STA350_FFX_PM_DROP_COMP			0
242439ea1fSSven Brandau #define STA350_FFX_PM_TAPERED_COMP		1
252439ea1fSSven Brandau #define STA350_FFX_PM_FULL_POWER		2
262439ea1fSSven Brandau #define STA350_FFX_PM_VARIABLE_DROP_COMP	3
272439ea1fSSven Brandau 
282439ea1fSSven Brandau 
292439ea1fSSven Brandau struct sta350_platform_data {
302439ea1fSSven Brandau 	u8 output_conf;
312439ea1fSSven Brandau 	u8 ch1_output_mapping;
322439ea1fSSven Brandau 	u8 ch2_output_mapping;
332439ea1fSSven Brandau 	u8 ch3_output_mapping;
342439ea1fSSven Brandau 	u8 ffx_power_output_mode;
352439ea1fSSven Brandau 	u8 drop_compensation_ns;
367c2fccccSDaniel Mack 	u8 powerdown_delay_divider;
372439ea1fSSven Brandau 	unsigned int thermal_warning_recovery:1;
382439ea1fSSven Brandau 	unsigned int thermal_warning_adjustment:1;
392439ea1fSSven Brandau 	unsigned int fault_detect_recovery:1;
402439ea1fSSven Brandau 	unsigned int oc_warning_adjustment:1;
412439ea1fSSven Brandau 	unsigned int max_power_use_mpcc:1;
422439ea1fSSven Brandau 	unsigned int max_power_correction:1;
432439ea1fSSven Brandau 	unsigned int am_reduction_mode:1;
442439ea1fSSven Brandau 	unsigned int odd_pwm_speed_mode:1;
452439ea1fSSven Brandau 	unsigned int distortion_compensation:1;
462439ea1fSSven Brandau 	unsigned int invalid_input_detect_mute:1;
477c2fccccSDaniel Mack 	unsigned int activate_mute_output:1;
487c2fccccSDaniel Mack 	unsigned int bridge_immediate_off:1;
497c2fccccSDaniel Mack 	unsigned int noise_shape_dc_cut:1;
507c2fccccSDaniel Mack 	unsigned int powerdown_master_vol:1;
512439ea1fSSven Brandau };
522439ea1fSSven Brandau 
532439ea1fSSven Brandau #endif /* __LINUX_SND__STA350_H */
54