rt5659.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * linux/sound/rt5659.h -- Platform data for RT5659
  3. *
  4. * Copyright 2013 Realtek Microelectronics
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef __LINUX_SND_RT5659_H
  11. #define __LINUX_SND_RT5659_H
  12. enum rt5659_dmic1_data_pin {
  13. RT5659_DMIC1_NULL,
  14. RT5659_DMIC1_DATA_IN2N,
  15. RT5659_DMIC1_DATA_GPIO5,
  16. RT5659_DMIC1_DATA_GPIO9,
  17. RT5659_DMIC1_DATA_GPIO11,
  18. };
  19. enum rt5659_dmic2_data_pin {
  20. RT5659_DMIC2_NULL,
  21. RT5659_DMIC2_DATA_IN2P,
  22. RT5659_DMIC2_DATA_GPIO6,
  23. RT5659_DMIC2_DATA_GPIO10,
  24. RT5659_DMIC2_DATA_GPIO12,
  25. };
  26. enum rt5659_jd_src {
  27. RT5659_JD_NULL,
  28. RT5659_JD3,
  29. RT5659_JD_HDA_HEADER,
  30. };
  31. struct rt5659_platform_data {
  32. bool in1_diff;
  33. bool in3_diff;
  34. bool in4_diff;
  35. int ldo1_en; /* GPIO for LDO1_EN */
  36. int reset; /* GPIO for RESET */
  37. enum rt5659_dmic1_data_pin dmic1_data_pin;
  38. enum rt5659_dmic2_data_pin dmic2_data_pin;
  39. enum rt5659_jd_src jd_src;
  40. };
  41. #endif