Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * linux/sound/cs35l33.h -- Platform data for CS35l33
0004  *
0005  * Copyright (c) 2016 Cirrus Logic Inc.
0006  */
0007 
0008 #ifndef __CS35L33_H
0009 #define __CS35L33_H
0010 
0011 struct cs35l33_hg {
0012     bool enable_hg_algo;
0013     unsigned int mem_depth;
0014     unsigned int release_rate;
0015     unsigned int hd_rm;
0016     unsigned int ldo_thld;
0017     unsigned int ldo_path_disable;
0018     unsigned int ldo_entry_delay;
0019     bool vp_hg_auto;
0020     unsigned int vp_hg;
0021     unsigned int vp_hg_rate;
0022     unsigned int vp_hg_va;
0023 };
0024 
0025 struct cs35l33_pdata {
0026     /* Boost Controller Voltage Setting */
0027     unsigned int boost_ctl;
0028 
0029     /* Boost Controller Peak Current */
0030     unsigned int boost_ipk;
0031 
0032     /* Amplifier Drive Select */
0033     unsigned int amp_drv_sel;
0034 
0035     /* soft volume ramp */
0036     unsigned int ramp_rate;
0037 
0038     /* IMON adc scale */
0039     unsigned int imon_adc_scale;
0040 
0041     /* H/G algo configuration */
0042     struct cs35l33_hg hg_config;
0043 };
0044 
0045 #endif /* __CS35L33_H */