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