linux/include/sound/wm8904.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Platform data for WM8904
 *
 * Copyright 2009 Wolfson Microelectronics PLC.
 *
 * Author: Mark Brown <[email protected]>
 */

#ifndef __MFD_WM8994_PDATA_H__
#define __MFD_WM8994_PDATA_H__

/* Used to enable configuration of a GPIO to all zeros */
#define WM8904_GPIO_NO_CONFIG

/*
 * R6 (0x06) - Mic Bias Control 0
 */
#define WM8904_MICDET_THR_MASK
#define WM8904_MICDET_THR_SHIFT
#define WM8904_MICDET_THR_WIDTH
#define WM8904_MICSHORT_THR_MASK
#define WM8904_MICSHORT_THR_SHIFT
#define WM8904_MICSHORT_THR_WIDTH
#define WM8904_MICDET_ENA
#define WM8904_MICDET_ENA_MASK
#define WM8904_MICDET_ENA_SHIFT
#define WM8904_MICDET_ENA_WIDTH
#define WM8904_MICBIAS_ENA
#define WM8904_MICBIAS_ENA_MASK
#define WM8904_MICBIAS_ENA_SHIFT
#define WM8904_MICBIAS_ENA_WIDTH

/*
 * R7 (0x07) - Mic Bias Control 1
 */
#define WM8904_MIC_DET_FILTER_ENA
#define WM8904_MIC_DET_FILTER_ENA_MASK
#define WM8904_MIC_DET_FILTER_ENA_SHIFT
#define WM8904_MIC_DET_FILTER_ENA_WIDTH
#define WM8904_MIC_SHORT_FILTER_ENA
#define WM8904_MIC_SHORT_FILTER_ENA_MASK
#define WM8904_MIC_SHORT_FILTER_ENA_SHIFT
#define WM8904_MIC_SHORT_FILTER_ENA_WIDTH
#define WM8904_MICBIAS_SEL_MASK
#define WM8904_MICBIAS_SEL_SHIFT
#define WM8904_MICBIAS_SEL_WIDTH


/*
 * R121 (0x79) - GPIO Control 1
 */
#define WM8904_GPIO1_PU
#define WM8904_GPIO1_PU_MASK
#define WM8904_GPIO1_PU_SHIFT
#define WM8904_GPIO1_PU_WIDTH
#define WM8904_GPIO1_PD
#define WM8904_GPIO1_PD_MASK
#define WM8904_GPIO1_PD_SHIFT
#define WM8904_GPIO1_PD_WIDTH
#define WM8904_GPIO1_SEL_MASK
#define WM8904_GPIO1_SEL_SHIFT
#define WM8904_GPIO1_SEL_WIDTH

/*
 * R122 (0x7A) - GPIO Control 2
 */
#define WM8904_GPIO2_PU
#define WM8904_GPIO2_PU_MASK
#define WM8904_GPIO2_PU_SHIFT
#define WM8904_GPIO2_PU_WIDTH
#define WM8904_GPIO2_PD
#define WM8904_GPIO2_PD_MASK
#define WM8904_GPIO2_PD_SHIFT
#define WM8904_GPIO2_PD_WIDTH
#define WM8904_GPIO2_SEL_MASK
#define WM8904_GPIO2_SEL_SHIFT
#define WM8904_GPIO2_SEL_WIDTH

/*
 * R123 (0x7B) - GPIO Control 3
 */
#define WM8904_GPIO3_PU
#define WM8904_GPIO3_PU_MASK
#define WM8904_GPIO3_PU_SHIFT
#define WM8904_GPIO3_PU_WIDTH
#define WM8904_GPIO3_PD
#define WM8904_GPIO3_PD_MASK
#define WM8904_GPIO3_PD_SHIFT
#define WM8904_GPIO3_PD_WIDTH
#define WM8904_GPIO3_SEL_MASK
#define WM8904_GPIO3_SEL_SHIFT
#define WM8904_GPIO3_SEL_WIDTH

/*
 * R124 (0x7C) - GPIO Control 4
 */
#define WM8904_GPI7_ENA
#define WM8904_GPI7_ENA_MASK
#define WM8904_GPI7_ENA_SHIFT
#define WM8904_GPI7_ENA_WIDTH
#define WM8904_GPI8_ENA
#define WM8904_GPI8_ENA_MASK
#define WM8904_GPI8_ENA_SHIFT
#define WM8904_GPI8_ENA_WIDTH
#define WM8904_GPIO_BCLK_MODE_ENA
#define WM8904_GPIO_BCLK_MODE_ENA_MASK
#define WM8904_GPIO_BCLK_MODE_ENA_SHIFT
#define WM8904_GPIO_BCLK_MODE_ENA_WIDTH
#define WM8904_GPIO_BCLK_SEL_MASK
#define WM8904_GPIO_BCLK_SEL_SHIFT
#define WM8904_GPIO_BCLK_SEL_WIDTH

#define WM8904_MIC_REGS
#define WM8904_GPIO_REGS
#define WM8904_DRC_REGS
#define WM8904_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 wm8904_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 wm8904_retune_mobile_cfg {};

struct wm8904_pdata {};

#endif