cs42l56.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * linux/sound/cs42l56.h -- Platform data for CS42L56
  4. *
  5. * Copyright (c) 2014 Cirrus Logic Inc.
  6. */
  7. #ifndef __CS42L56_H
  8. #define __CS42L56_H
  9. struct cs42l56_platform_data {
  10. /* GPIO for Reset */
  11. unsigned int gpio_nreset;
  12. /* MICBIAS Level. Check datasheet Pg48 */
  13. unsigned int micbias_lvl;
  14. /* Analog Input 1A Reference 0=Single 1=Pseudo-Differential */
  15. unsigned int ain1a_ref_cfg;
  16. /* Analog Input 2A Reference 0=Single 1=Pseudo-Differential */
  17. unsigned int ain2a_ref_cfg;
  18. /* Analog Input 1B Reference 0=Single 1=Pseudo-Differential */
  19. unsigned int ain1b_ref_cfg;
  20. /* Analog Input 2B Reference 0=Single 1=Pseudo-Differential */
  21. unsigned int ain2b_ref_cfg;
  22. /* Charge Pump Freq. Check datasheet Pg62 */
  23. unsigned int chgfreq;
  24. /* HighPass Filter Right Channel Corner Frequency */
  25. unsigned int hpfb_freq;
  26. /* HighPass Filter Left Channel Corner Frequency */
  27. unsigned int hpfa_freq;
  28. /* Adaptive Power Control for LO/HP */
  29. unsigned int adaptive_pwr;
  30. };
  31. #endif /* __CS42L56_H */