Mark Brown | 9a76f1f | 2010-08-05 13:20:59 +0100 | [diff] [blame] | 1 | /* |
| 2 | * wm8962.h -- WM8962 Soc Audio driver platform data |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
| 8 | |
| 9 | #ifndef _WM8962_PDATA_H |
| 10 | #define _WM8962_PDATA_H |
| 11 | |
| 12 | #define WM8962_MAX_GPIO 6 |
| 13 | |
| 14 | /* Use to set GPIO default values to zero */ |
| 15 | #define WM8962_GPIO_SET 0x10000 |
| 16 | |
| 17 | struct wm8962_pdata { |
Mark Brown | 3367b8d | 2010-09-20 17:34:58 +0100 | [diff] [blame] | 18 | int gpio_base; |
Mark Brown | 9a76f1f | 2010-08-05 13:20:59 +0100 | [diff] [blame] | 19 | u32 gpio_init[WM8962_MAX_GPIO]; |
| 20 | |
Mark Brown | a4f28c0 | 2010-09-29 13:24:35 -0700 | [diff] [blame] | 21 | /* Setup for microphone detection, raw value to be written to |
| 22 | * R48(0x30) - only microphone related bits will be updated. |
| 23 | * Detection may be enabled here for use with signals brought |
| 24 | * out on the GPIOs. */ |
| 25 | u32 mic_cfg; |
| 26 | |
Mark Brown | 45e6550 | 2010-09-28 16:01:20 -0700 | [diff] [blame] | 27 | bool irq_active_low; |
| 28 | |
Mark Brown | 9a76f1f | 2010-08-05 13:20:59 +0100 | [diff] [blame] | 29 | bool spk_mono; /* Speaker outputs tied together as mono */ |
| 30 | }; |
| 31 | |
| 32 | #endif |