18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * linux/sound/cs35l34.h -- Platform data for CS35l34
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (c) 2016 Cirrus Logic Inc.
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef __CS35L34_H
98c2ecf20Sopenharmony_ci#define __CS35L34_H
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_cistruct cs35l34_platform_data {
128c2ecf20Sopenharmony_ci	/* Set AIF to half drive strength */
138c2ecf20Sopenharmony_ci	bool aif_half_drv;
148c2ecf20Sopenharmony_ci	/* Digital Soft Ramp Disable */
158c2ecf20Sopenharmony_ci	bool digsft_disable;
168c2ecf20Sopenharmony_ci	/* Amplifier Invert */
178c2ecf20Sopenharmony_ci	bool amp_inv;
188c2ecf20Sopenharmony_ci	/* Peak current (mA) */
198c2ecf20Sopenharmony_ci	unsigned int boost_peak;
208c2ecf20Sopenharmony_ci	/* Boost inductor value (nH) */
218c2ecf20Sopenharmony_ci	unsigned int boost_ind;
228c2ecf20Sopenharmony_ci	/* Boost Controller Voltage Setting (mV) */
238c2ecf20Sopenharmony_ci	unsigned int boost_vtge;
248c2ecf20Sopenharmony_ci	/* Gain Change Zero Cross */
258c2ecf20Sopenharmony_ci	bool gain_zc_disable;
268c2ecf20Sopenharmony_ci	/* SDIN Left/Right Selection */
278c2ecf20Sopenharmony_ci	unsigned int i2s_sdinloc;
288c2ecf20Sopenharmony_ci	/* TDM Rising Edge */
298c2ecf20Sopenharmony_ci	bool tdm_rising_edge;
308c2ecf20Sopenharmony_ci};
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#endif /* __CS35L34_H */
33