/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * include/linux/mfd/wm8994/pdata.h -- Platform data for WM8994 * * Copyright 2009 Wolfson Microelectronics PLC. * * Author: Mark Brown <[email protected]> */ #ifndef __MFD_WM8994_PDATA_H__ #define __MFD_WM8994_PDATA_H__ #define WM8994_NUM_LDO … #define WM8994_NUM_GPIO … #define WM8994_NUM_AIF … struct wm8994_ldo_pdata { … }; #define WM8994_CONFIGURE_GPIO … #define WM8994_DRC_REGS … #define WM8994_EQ_REGS … #define WM8958_MBC_CUTOFF_REGS … #define WM8958_MBC_COEFF_REGS … #define WM8958_MBC_COMBINED_REGS … #define WM8958_VSS_HPF_REGS … #define WM8958_VSS_REGS … #define WM8958_ENH_EQ_REGS … /** * DRC configurations are specified with a label and a set of register * values to write (the enable bits will be ignored). At runtime an * enumerated control will be presented for each DRC block allowing * the user to choose the configuration to use. * * Configurations may be generated by hand or by using the DRC control * panel provided by the WISCE - see http://www.wolfsonmicro.com/wisce/ * for details. */ struct wm8994_drc_cfg { … }; /** * ReTune Mobile configurations are specified with a label, sample * rate and set of values to write (the enable bits will be ignored). * * Configurations are expected to be generated using the ReTune Mobile * control panel in WISCE - see http://www.wolfsonmicro.com/wisce/ */ struct wm8994_retune_mobile_cfg { … }; /** * Multiband compressor configurations are specified with a label and * two sets of values to write. Configurations are expected to be * generated using the multiband compressor configuration panel in * WISCE - see http://www.wolfsonmicro.com/wisce/ */ struct wm8958_mbc_cfg { … }; /** * VSS HPF configurations are specified with a label and two values to * write. Configurations are expected to be generated using the * multiband compressor configuration panel in WISCE - see * http://www.wolfsonmicro.com/wisce/ */ struct wm8958_vss_hpf_cfg { … }; /** * VSS configurations are specified with a label and array of values * to write. Configurations are expected to be generated using the * multiband compressor configuration panel in WISCE - see * http://www.wolfsonmicro.com/wisce/ */ struct wm8958_vss_cfg { … }; /** * Enhanced EQ configurations are specified with a label and array of * values to write. Configurations are expected to be generated using * the multiband compressor configuration panel in WISCE - see * http://www.wolfsonmicro.com/wisce/ */ struct wm8958_enh_eq_cfg { … }; /** * Microphone detection rates, used to tune response rates and power * consumption for WM8958/WM1811 microphone detection. * * @sysclk: System clock rate to use this configuration for. * @idle: True if this configuration should use when no accessory is detected, * false otherwise. * @start: Value for MICD_BIAS_START_TIME register field (not shifted). * @rate: Value for MICD_RATE register field (not shifted). */ struct wm8958_micd_rate { … }; struct wm8994_pdata { … }; #endif