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