Blame view

include/sound/wm8962.h 1.65 KB
9a76f1ff6   Mark Brown   ASoC: Add initial...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  /*
   * wm8962.h  --  WM8962 Soc Audio driver platform data
   *
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License version 2 as
   * published by the Free Software Foundation.
   */
  
  #ifndef _WM8962_PDATA_H
  #define _WM8962_PDATA_H
  
  #define WM8962_MAX_GPIO 6
  
  /* Use to set GPIO default values to zero */
  #define WM8962_GPIO_SET 0x10000
7cd873c2c   Mark Brown   ASoC: Define cons...
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  #define WM8962_GPIO_FN_CLKOUT           0
  #define WM8962_GPIO_FN_LOGIC            1
  #define WM8962_GPIO_FN_SDOUT            2
  #define WM8962_GPIO_FN_IRQ              3
  #define WM8962_GPIO_FN_THERMAL          4
  #define WM8962_GPIO_FN_PLL2_LOCK        6
  #define WM8962_GPIO_FN_PLL3_LOCK        7
  #define WM8962_GPIO_FN_FLL_LOCK         9
  #define WM8962_GPIO_FN_DRC_ACT         10
  #define WM8962_GPIO_FN_WSEQ_DONE       11
  #define WM8962_GPIO_FN_ALC_NG_ACT      12
  #define WM8962_GPIO_FN_ALC_PEAK_LIMIT  13
  #define WM8962_GPIO_FN_ALC_SATURATION  14
  #define WM8962_GPIO_FN_ALC_LEVEL_THR   15
  #define WM8962_GPIO_FN_ALC_LEVEL_LOCK  16
  #define WM8962_GPIO_FN_FIFO_ERR        17
  #define WM8962_GPIO_FN_OPCLK           18
  #define WM8962_GPIO_FN_DMICCLK         19
  #define WM8962_GPIO_FN_DMICDAT         20
  #define WM8962_GPIO_FN_MICD            21
  #define WM8962_GPIO_FN_MICSCD          22
9a76f1ff6   Mark Brown   ASoC: Add initial...
37
  struct wm8962_pdata {
3367b8d42   Mark Brown   ASoC: Add support...
38
  	int gpio_base;
9a76f1ff6   Mark Brown   ASoC: Add initial...
39
  	u32 gpio_init[WM8962_MAX_GPIO];
a4f28c001   Mark Brown   ASoC: Provide mic...
40
41
42
43
44
  	/* Setup for microphone detection, raw value to be written to
  	 * R48(0x30) - only microphone related bits will be updated.
  	 * Detection may be enabled here for use with signals brought
  	 * out on the GPIOs. */
  	u32 mic_cfg;
45e655047   Mark Brown   ASoC: Initial WM8...
45
  	bool irq_active_low;
9a76f1ff6   Mark Brown   ASoC: Add initial...
46
47
48
49
  	bool spk_mono;   /* Speaker outputs tied together as mono */
  };
  
  #endif