brintos

brintos / linux-shallow public Read only

0
0
Text · 1.7 KiB · f777225 Raw
59 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/*3 * wm8962.h  --  WM8962 Soc Audio driver platform data4 */5 6#ifndef _WM8962_PDATA_H7#define _WM8962_PDATA_H8 9#define WM8962_MAX_GPIO 610 11/* Use to set GPIO default values to zero */12#define WM8962_GPIO_SET 0x1000013 14#define WM8962_GPIO_FN_CLKOUT           015#define WM8962_GPIO_FN_LOGIC            116#define WM8962_GPIO_FN_SDOUT            217#define WM8962_GPIO_FN_IRQ              318#define WM8962_GPIO_FN_THERMAL          419#define WM8962_GPIO_FN_PLL2_LOCK        620#define WM8962_GPIO_FN_PLL3_LOCK        721#define WM8962_GPIO_FN_FLL_LOCK         922#define WM8962_GPIO_FN_DRC_ACT         1023#define WM8962_GPIO_FN_WSEQ_DONE       1124#define WM8962_GPIO_FN_ALC_NG_ACT      1225#define WM8962_GPIO_FN_ALC_PEAK_LIMIT  1326#define WM8962_GPIO_FN_ALC_SATURATION  1427#define WM8962_GPIO_FN_ALC_LEVEL_THR   1528#define WM8962_GPIO_FN_ALC_LEVEL_LOCK  1629#define WM8962_GPIO_FN_FIFO_ERR        1730#define WM8962_GPIO_FN_OPCLK           1831#define WM8962_GPIO_FN_DMICCLK         1932#define WM8962_GPIO_FN_DMICDAT         2033#define WM8962_GPIO_FN_MICD            2134#define WM8962_GPIO_FN_MICSCD          2235 36struct wm8962_pdata {37	struct clk *mclk;38	int gpio_base;39	u32 gpio_init[WM8962_MAX_GPIO];40 41	/* Setup for microphone detection, raw value to be written to42	 * R48(0x30) - only microphone related bits will be updated.43	 * Detection may be enabled here for use with signals brought44	 * out on the GPIOs. */45	u32 mic_cfg;46 47	bool irq_active_low;48 49	bool spk_mono;   /* Speaker outputs tied together as mono */50 51	/**52	 * This flag should be set if one or both IN4 inputs is wired53	 * in a DC measurement configuration.54	 */55	bool in4_dc_measure;56};57 58#endif59