blob: e3c84b92ff70edd60d9b3c5204c9df80a991436d [file] [log] [blame]
Bard Liao997b0522013-06-11 13:10:16 +08001/*
2 * linux/sound/rt5640.h -- Platform data for RT5640
3 *
4 * Copyright 2011 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.
9 */
10
11#ifndef __LINUX_SND_RT5640_H
12#define __LINUX_SND_RT5640_H
13
14struct rt5640_platform_data {
Oder Chiou16566e42015-10-21 09:46:05 +080015 /* IN1 & IN2 & IN3 can optionally be differential */
Bard Liao997b0522013-06-11 13:10:16 +080016 bool in1_diff;
17 bool in2_diff;
Oder Chiou16566e42015-10-21 09:46:05 +080018 bool in3_diff;
Bard Liao997b0522013-06-11 13:10:16 +080019
Oder Chiou71d97a792014-03-28 10:46:18 +080020 bool dmic_en;
21 bool dmic1_data_pin; /* 0 = IN1P; 1 = GPIO3 */
22 bool dmic2_data_pin; /* 0 = IN1N; 1 = GPIO4 */
23
Bard Liao997b0522013-06-11 13:10:16 +080024 int ldo1_en; /* GPIO for LDO1_EN */
25};
26
27#endif