summaryrefslogtreecommitdiff
path: root/include/linux/i2c-tegra.h
blob: ea40c64c9f35a24f7f3e38d59688553e7ac61b7d (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
/*
 * drivers/i2c/busses/i2c-tegra.c
 *
 * Copyright (C) 2010 Google, Inc.
 * Author: Colin Cross <ccross@android.com>
 *
 * Copyright (C) 2010-2011 NVIDIA Corporation
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * 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.
 *
 */

#ifndef _LINUX_I2C_TEGRA_H
#define _LINUX_I2C_TEGRA_H

struct tegra_i2c_platform_data {
	unsigned long bus_clk_rate;
	bool is_dvc;
	bool is_clkon_always;
	int retries;
	int timeout;	/* in jiffies */
	u16 slave_addr;
	int scl_gpio;
	int sda_gpio;
	bool is_high_speed_enable;
	u16 hs_master_code;
	bool needs_cl_dvfs_clock;
	bool bit_banging_xfer_after_shutdown;
};

struct tegra_i2c_slave_platform_data {
	int adapter_nr;
	const struct tegra_pingroup_config *pinmux;
	int bus_mux_len;
	unsigned long bus_clk_rate;
	int max_rx_buffer_size;
	int max_tx_buffer_size;
};

#endif /* _LINUX_I2C_TEGRA_H */