rt5659.h 1003 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. };
  30. struct rt5659_platform_data {
  31. bool in1_diff;
  32. bool in3_diff;
  33. bool in4_diff;
  34. int ldo1_en; /* GPIO for LDO1_EN */
  35. int reset; /* GPIO for RESET */
  36. enum rt5659_dmic1_data_pin dmic1_data_pin;
  37. enum rt5659_dmic2_data_pin dmic2_data_pin;
  38. enum rt5659_jd_src jd_src;
  39. };
  40. #endif