rt5682.h 792 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * linux/sound/rt5682.h -- Platform data for RT5682
  3. *
  4. * Copyright 2018 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_RT5682_H
  11. #define __LINUX_SND_RT5682_H
  12. enum rt5682_dmic1_data_pin {
  13. RT5682_DMIC1_NULL,
  14. RT5682_DMIC1_DATA_GPIO2,
  15. RT5682_DMIC1_DATA_GPIO5,
  16. };
  17. enum rt5682_dmic1_clk_pin {
  18. RT5682_DMIC1_CLK_GPIO1,
  19. RT5682_DMIC1_CLK_GPIO3,
  20. };
  21. enum rt5682_jd_src {
  22. RT5682_JD_NULL,
  23. RT5682_JD1,
  24. };
  25. struct rt5682_platform_data {
  26. int ldo1_en; /* GPIO for LDO1_EN */
  27. enum rt5682_dmic1_data_pin dmic1_data_pin;
  28. enum rt5682_dmic1_clk_pin dmic1_clk_pin;
  29. enum rt5682_jd_src jd_src;
  30. };
  31. #endif