da7219.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. /* LDO */
  16. enum da7219_ldo_lvl_sel {
  17. DA7219_LDO_LVL_SEL_1_05V = 0,
  18. DA7219_LDO_LVL_SEL_1_10V,
  19. DA7219_LDO_LVL_SEL_1_20V,
  20. DA7219_LDO_LVL_SEL_1_40V,
  21. };
  22. /* Mic Bias */
  23. enum da7219_micbias_voltage {
  24. DA7219_MICBIAS_1_8V = 1,
  25. DA7219_MICBIAS_2_0V,
  26. DA7219_MICBIAS_2_2V,
  27. DA7219_MICBIAS_2_4V,
  28. DA7219_MICBIAS_2_6V,
  29. };
  30. /* Mic input type */
  31. enum da7219_mic_amp_in_sel {
  32. DA7219_MIC_AMP_IN_SEL_DIFF = 0,
  33. DA7219_MIC_AMP_IN_SEL_SE_P,
  34. DA7219_MIC_AMP_IN_SEL_SE_N,
  35. };
  36. struct da7219_aad_pdata;
  37. struct da7219_pdata {
  38. /* Internal LDO */
  39. enum da7219_ldo_lvl_sel ldo_lvl_sel;
  40. /* Mic */
  41. enum da7219_micbias_voltage micbias_lvl;
  42. enum da7219_mic_amp_in_sel mic_amp_in_sel;
  43. /* AAD */
  44. struct da7219_aad_pdata *aad_pdata;
  45. };
  46. #endif /* __DA7219_PDATA_H */