wm8962.h 803 B

1234567891011121314151617181920212223242526272829303132
  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. #ifndef _WM8962_PDATA_H
  9. #define _WM8962_PDATA_H
  10. #define WM8962_MAX_GPIO 6
  11. /* Use to set GPIO default values to zero */
  12. #define WM8962_GPIO_SET 0x10000
  13. struct wm8962_pdata {
  14. int gpio_base;
  15. u32 gpio_init[WM8962_MAX_GPIO];
  16. /* Setup for microphone detection, raw value to be written to
  17. * R48(0x30) - only microphone related bits will be updated.
  18. * Detection may be enabled here for use with signals brought
  19. * out on the GPIOs. */
  20. u32 mic_cfg;
  21. bool irq_active_low;
  22. bool spk_mono; /* Speaker outputs tied together as mono */
  23. };
  24. #endif