summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-ivc-single.h
diff options
context:
space:
mode:
authorAshish Singh <assingh@nvidia.com>2017-05-17 14:50:09 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-06 15:52:04 -0400
commit21dd54863ffa6ff2bb7b768c99b0bc11746b68e7 (patch)
tree62616a8429d422a5412486dc93f2e65f863488ec /drivers/i2c/busses/i2c-ivc-single.h
parentfcfe26548da7e0e6b870193b893a90383bed2352 (diff)
tegra: i2c: I2C single driver cleanup - 2
1. Separate IVC and I2C drviers. 2. Fix adding sensor on resume - it is now done at the time of making xfer call. 3. Rename files. 4. Move common header to include/soc/tegra Change-Id: Ia7686169b291d3ec46b43f1278f37286be897628 Reviewed-on: http://git-master/r/1484172 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Anna Dvinsky <advinsky@nvidia.com> Tested-by: Ashish Singh <assingh@nvidia.com> Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Diffstat (limited to 'drivers/i2c/busses/i2c-ivc-single.h')
-rw-r--r--drivers/i2c/busses/i2c-ivc-single.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-ivc-single.h b/drivers/i2c/busses/i2c-ivc-single.h
new file mode 100644
index 000000000..9caf160de
--- /dev/null
+++ b/drivers/i2c/busses/i2c-ivc-single.h
@@ -0,0 +1,25 @@
1/*
2 * Copyright (c) 2017 NVIDIA CORPORATION. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 */
13
14#ifndef _LINUX_I2C_IVC_SINGLE_H
15#define _LINUX_I2C_IVC_SINGLE_H
16
17struct tegra_i2c_ivc_dev;
18
19u32 tegra_i2c_get_clk_freq(struct device_node *np);
20u32 tegra_i2c_get_reg_base(struct device_node *np);
21struct tegra_i2c_ivc_dev *tegra_ivc_i2c_get_dev(u32 reg_base);
22int tegra_ivc_i2c_single_xfer(struct tegra_i2c_ivc_dev *ivc_dev,
23 const struct i2c_msg *reqs, int num);
24
25#endif /* _LINUX_I2C_IVC_SINGLE_H */