~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to include/sound/wm8903.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#define WM8903_MICBIAS_ENA_WIDTH                     1  /* MICBIAS_ENA */
34
34
 
35
35
/*
 
36
 * WM8903_GPn_FN values
 
37
 *
 
38
 * See datasheets for list of valid values per pin
 
39
 */
 
40
#define WM8903_GPn_FN_GPIO_OUTPUT                    0
 
41
#define WM8903_GPn_FN_BCLK                           1
 
42
#define WM8903_GPn_FN_IRQ_OUTPT                      2
 
43
#define WM8903_GPn_FN_GPIO_INPUT                     3
 
44
#define WM8903_GPn_FN_MICBIAS_CURRENT_DETECT         4
 
45
#define WM8903_GPn_FN_MICBIAS_SHORT_DETECT           5
 
46
#define WM8903_GPn_FN_DMIC_LR_CLK_OUTPUT             6
 
47
#define WM8903_GPn_FN_FLL_LOCK_OUTPUT                8
 
48
#define WM8903_GPn_FN_FLL_CLOCK_OUTPUT               9
 
49
 
 
50
/*
36
51
 * R116 (0x74) - GPIO Control 1
37
52
 */
38
53
#define WM8903_GP1_FN_MASK                      0x1F00  /* GP1_FN - [12:8] */
227
242
#define WM8903_GP5_DB_SHIFT                          0  /* GP5_DB */
228
243
#define WM8903_GP5_DB_WIDTH                          1  /* GP5_DB */
229
244
 
 
245
#define WM8903_NUM_GPIO 5
 
246
 
230
247
struct wm8903_platform_data {
231
248
        bool irq_active_low;   /* Set if IRQ active low, default high */
232
249
 
239
256
 
240
257
        int micdet_delay;      /* Delay after microphone detection (ms) */
241
258
 
242
 
        u32 gpio_cfg[5];       /* Default register values for GPIO pin mux */
 
259
        int gpio_base;
 
260
        u32 gpio_cfg[WM8903_NUM_GPIO]; /* Default register values for GPIO pin mux */
243
261
};
244
262
 
245
263
#endif