^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * linux/sound/cs35l34.h -- Platform data for CS35l34
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Copyright (c) 2016 Cirrus Logic Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #ifndef __CS35L34_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #define __CS35L34_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) struct cs35l34_platform_data {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) /* Set AIF to half drive strength */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) bool aif_half_drv;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) /* Digital Soft Ramp Disable */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) bool digsft_disable;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) /* Amplifier Invert */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) bool amp_inv;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) /* Peak current (mA) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) unsigned int boost_peak;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) /* Boost inductor value (nH) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) unsigned int boost_ind;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) /* Boost Controller Voltage Setting (mV) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) unsigned int boost_vtge;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) /* Gain Change Zero Cross */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) bool gain_zc_disable;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) /* SDIN Left/Right Selection */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) unsigned int i2s_sdinloc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) /* TDM Rising Edge */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) bool tdm_rising_edge;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #endif /* __CS35L34_H */