da7219.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * da7219.h - DA7219 ASoC Codec Driver Platform Data
  3. *
  4. * Copyright (c) 2015 Dialog Semiconductor
  5. *
  6. * Author: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License as published by the
  10. * Free Software Foundation; either version 2 of the License, or (at your
  11. * option) any later version.
  12. */
  13. #ifndef __DA7219_PDATA_H
  14. #define __DA7219_PDATA_H
  15. /* Mic Bias */
  16. enum da7219_micbias_voltage {
  17. DA7219_MICBIAS_1_6V = 0,
  18. DA7219_MICBIAS_1_8V,
  19. DA7219_MICBIAS_2_0V,
  20. DA7219_MICBIAS_2_2V,
  21. DA7219_MICBIAS_2_4V,
  22. DA7219_MICBIAS_2_6V,
  23. };
  24. /* Mic input type */
  25. enum da7219_mic_amp_in_sel {
  26. DA7219_MIC_AMP_IN_SEL_DIFF = 0,
  27. DA7219_MIC_AMP_IN_SEL_SE_P,
  28. DA7219_MIC_AMP_IN_SEL_SE_N,
  29. };
  30. struct da7219_aad_pdata;
  31. struct da7219_pdata {
  32. bool wakeup_source;
  33. /* Mic */
  34. enum da7219_micbias_voltage micbias_lvl;
  35. enum da7219_mic_amp_in_sel mic_amp_in_sel;
  36. /* AAD */
  37. struct da7219_aad_pdata *aad_pdata;
  38. };
  39. #endif /* __DA7219_PDATA_H */