summaryrefstree
path: root/kernel/include/linux/esxxx.h
blob: a15438d55eb6af511307a3a3d21ac2811005a2d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
 * esxxx.h - header for esxxx I2C interface
 *
 * Copyright (C) 2011-2012 Audience, Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 *
 */

#ifndef __ESXXX_H__
#define __ESXXX_H__

#include <linux/types.h>

#if defined(CONFIG_SND_SOC_ES705) || defined(CONFIG_SND_SOC_ES804)
struct esxxx_accdet_config {
	int	btn_serial_cfg;
	int	btn_parallel_cfg;
	int	btn_detection_rate;
	int	btn_press_settling_time;
	int	btn_bounce_time;
	int	btn_long_press_time;
};

struct esxxx_platform_data {
	int	irq_base, irq_end;
	int	reset_gpio;
#if !defined(CONFIG_SND_SOC_ESXXX_UART_WAKEUP)	
	int	wakeup_gpio;
#endif
	int	uart_tx_gpio;
	int	uart_rx_gpio;
	int	gpiob_gpio;
	int	accdet_gpio;
	int	int_gpio;
	struct esxxx_accdet_config accdet_cfg;
	int (*esxxx_clk_cb) (struct device *, int);
	const char *fw_filename;
	const char *vs_filename;
	int use_dhwpt;
};
#else
struct esxxx_platform_data {
	unsigned int	irq_base, irq_end;
	unsigned int	reset_gpio;
	unsigned int	gpiob_gpio;
	unsigned int	accdet_gpio;
	unsigned int	int_gpio;
	struct slim_device intf_device;	

};
#endif
#endif /* __ESXXX_H__ */