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 10 #ifndef __LINUX_PLATFORM_DATA_ADAU1977_H__ 11 #define __LINUX_PLATFORM_DATA_ADAU1977_H__ 12 13 /** 14 * enum adau1977_micbias - ADAU1977 MICBIAS pin voltage setting 15 * @ADAU1977_MICBIAS_5V0: MICBIAS is set to 5.0 V 16 * @ADAU1977_MICBIAS_5V5: MICBIAS is set to 5.5 V 17 * @ADAU1977_MICBIAS_6V0: MICBIAS is set to 6.0 V 18 * @ADAU1977_MICBIAS_6V5: MICBIAS is set to 6.5 V 19 * @ADAU1977_MICBIAS_7V0: MICBIAS is set to 7.0 V 20 * @ADAU1977_MICBIAS_7V5: MICBIAS is set to 7.5 V 21 * @ADAU1977_MICBIAS_8V0: MICBIAS is set to 8.0 V 22 * @ADAU1977_MICBIAS_8V5: MICBIAS is set to 8.5 V 23 * @ADAU1977_MICBIAS_9V0: MICBIAS is set to 9.0 V 24 */ 25 enum adau1977_micbias { 26 ADAU1977_MICBIAS_5V0 = 0x0, 27 ADAU1977_MICBIAS_5V5 = 0x1, 28 ADAU1977_MICBIAS_6V0 = 0x2, 29 ADAU1977_MICBIAS_6V5 = 0x3, 30 ADAU1977_MICBIAS_7V0 = 0x4, 31 ADAU1977_MICBIAS_7V5 = 0x5, 32 ADAU1977_MICBIAS_8V0 = 0x6, 33 ADAU1977_MICBIAS_8V5 = 0x7, 34 ADAU1977_MICBIAS_9V0 = 0x8, 35 }; 36 37 /** 38 * struct adau1977_platform_data - Platform configuration data for the ADAU1977 39 * @micbias: Specifies the voltage for the MICBIAS pin 40 */ 41 struct adau1977_platform_data { 42 enum adau1977_micbias micbias; 43 }; 44 45 #endif 46