adau1977.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * ADAU1977/ADAU1978/ADAU1979 driver
  3. *
  4. * Copyright 2014 Analog Devices Inc.
  5. * Author: Lars-Peter Clausen <lars@metafoo.de>
  6. *
  7. * Licensed under the GPL-2.
  8. */
  9. #ifndef __LINUX_PLATFORM_DATA_ADAU1977_H__
  10. #define __LINUX_PLATFORM_DATA_ADAU1977_H__
  11. /**
  12. * enum adau1977_micbias - ADAU1977 MICBIAS pin voltage setting
  13. * @ADAU1977_MICBIAS_5V0: MICBIAS is set to 5.0 V
  14. * @ADAU1977_MICBIAS_5V5: MICBIAS is set to 5.5 V
  15. * @ADAU1977_MICBIAS_6V0: MICBIAS is set to 6.0 V
  16. * @ADAU1977_MICBIAS_6V5: MICBIAS is set to 6.5 V
  17. * @ADAU1977_MICBIAS_7V0: MICBIAS is set to 7.0 V
  18. * @ADAU1977_MICBIAS_7V5: MICBIAS is set to 7.5 V
  19. * @ADAU1977_MICBIAS_8V0: MICBIAS is set to 8.0 V
  20. * @ADAU1977_MICBIAS_8V5: MICBIAS is set to 8.5 V
  21. * @ADAU1977_MICBIAS_9V0: MICBIAS is set to 9.0 V
  22. */
  23. enum adau1977_micbias {
  24. ADAU1977_MICBIAS_5V0 = 0x0,
  25. ADAU1977_MICBIAS_5V5 = 0x1,
  26. ADAU1977_MICBIAS_6V0 = 0x2,
  27. ADAU1977_MICBIAS_6V5 = 0x3,
  28. ADAU1977_MICBIAS_7V0 = 0x4,
  29. ADAU1977_MICBIAS_7V5 = 0x5,
  30. ADAU1977_MICBIAS_8V0 = 0x6,
  31. ADAU1977_MICBIAS_8V5 = 0x7,
  32. ADAU1977_MICBIAS_9V0 = 0x8,
  33. };
  34. /**
  35. * struct adau1977_platform_data - Platform configuration data for the ADAU1977
  36. * @micbias: Specifies the voltage for the MICBIAS pin
  37. */
  38. struct adau1977_platform_data {
  39. enum adau1977_micbias micbias;
  40. };
  41. #endif