cs42l56.h 1.2 KB

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