1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 2 /* 3 * linux/sound/rt5659.h -- Platform data for R 3 * linux/sound/rt5659.h -- Platform data for RT5659 4 * 4 * 5 * Copyright 2013 Realtek Microelectronics 5 * Copyright 2013 Realtek Microelectronics 6 */ 6 */ 7 7 8 #ifndef __LINUX_SND_RT5659_H 8 #ifndef __LINUX_SND_RT5659_H 9 #define __LINUX_SND_RT5659_H 9 #define __LINUX_SND_RT5659_H 10 10 11 enum rt5659_dmic1_data_pin { 11 enum rt5659_dmic1_data_pin { 12 RT5659_DMIC1_NULL, 12 RT5659_DMIC1_NULL, 13 RT5659_DMIC1_DATA_IN2N, 13 RT5659_DMIC1_DATA_IN2N, 14 RT5659_DMIC1_DATA_GPIO5, 14 RT5659_DMIC1_DATA_GPIO5, 15 RT5659_DMIC1_DATA_GPIO9, 15 RT5659_DMIC1_DATA_GPIO9, 16 RT5659_DMIC1_DATA_GPIO11, 16 RT5659_DMIC1_DATA_GPIO11, 17 }; 17 }; 18 18 19 enum rt5659_dmic2_data_pin { 19 enum rt5659_dmic2_data_pin { 20 RT5659_DMIC2_NULL, 20 RT5659_DMIC2_NULL, 21 RT5659_DMIC2_DATA_IN2P, 21 RT5659_DMIC2_DATA_IN2P, 22 RT5659_DMIC2_DATA_GPIO6, 22 RT5659_DMIC2_DATA_GPIO6, 23 RT5659_DMIC2_DATA_GPIO10, 23 RT5659_DMIC2_DATA_GPIO10, 24 RT5659_DMIC2_DATA_GPIO12, 24 RT5659_DMIC2_DATA_GPIO12, 25 }; 25 }; 26 26 27 enum rt5659_jd_src { 27 enum rt5659_jd_src { 28 RT5659_JD_NULL, 28 RT5659_JD_NULL, 29 RT5659_JD3, 29 RT5659_JD3, 30 RT5659_JD_HDA_HEADER, 30 RT5659_JD_HDA_HEADER, 31 }; 31 }; 32 32 33 struct rt5659_platform_data { 33 struct rt5659_platform_data { 34 bool in1_diff; 34 bool in1_diff; 35 bool in3_diff; 35 bool in3_diff; 36 bool in4_diff; 36 bool in4_diff; 37 37 38 int ldo1_en; /* GPIO for LDO1_EN */ 38 int ldo1_en; /* GPIO for LDO1_EN */ 39 int reset; /* GPIO for RESET */ 39 int reset; /* GPIO for RESET */ 40 40 41 enum rt5659_dmic1_data_pin dmic1_data_ 41 enum rt5659_dmic1_data_pin dmic1_data_pin; 42 enum rt5659_dmic2_data_pin dmic2_data_ 42 enum rt5659_dmic2_data_pin dmic2_data_pin; 43 enum rt5659_jd_src jd_src; 43 enum rt5659_jd_src jd_src; 44 }; 44 }; 45 45 46 #endif 46 #endif 47 47 48 48
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.