/* * drivers/i2c/busses/i2c-tegra.c * * Copyright (C) 2010 Google, Inc. * Author: Colin Cross * * 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 #include #define TEGRA_I2C_MAX_BUS 3 struct tegra_i2c_platform_data { int adapter_nr; int bus_count; const struct tegra_pingroup_config *bus_mux[TEGRA_I2C_MAX_BUS]; int bus_mux_len[TEGRA_I2C_MAX_BUS]; unsigned long bus_clk_rate[TEGRA_I2C_MAX_BUS]; bool is_dvc; int retries; int timeout; /* in jiffies */ u16 slave_addr; }; #endif /* _LINUX_I2C_TEGRA_H */