diff options
author | Sudhir Vyas <svyas@nvidia.com> | 2018-06-27 13:44:57 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-06-29 15:57:45 -0400 |
commit | 50502408931b5db85f6afb0b30fff45293897d01 (patch) | |
tree | 3e8436ba109364249abf415447a96e80d7f2a6f7 /include | |
parent | a126ba0addf99211530e1afdcec972c818685fcb (diff) |
media: i2c: add max9295 GMSL serializer driver
Add driver support for max9295 I2C IO
expander, it works as serializer device
in GMSL setup.
Bug 200407741
Change-Id: I9aa41400d4f4e4e6540b75da0f5a5b18f8188c31
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1763275
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/media/max9295.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/media/max9295.h b/include/media/max9295.h new file mode 100644 index 000000000..79ec73f65 --- /dev/null +++ b/include/media/max9295.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /** | ||
2 | * Copyright (c) 2018, 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 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #ifndef __MAX9295_H__ | ||
18 | #define __MAX9295_H__ | ||
19 | |||
20 | #include <media/gmsl-link.h> | ||
21 | |||
22 | int max9295_poweron(struct device *dev); | ||
23 | |||
24 | int max9295_poweroff(struct device *dev); | ||
25 | |||
26 | int max9295_dev_pair(struct device *dev, struct gmsl_link_data *pinfo); | ||
27 | |||
28 | int max9295_dev_unpair(struct device *dev, struct device *s_dev); | ||
29 | |||
30 | int max9295_stream_setup(struct device *dev); | ||
31 | |||
32 | int max9295_streamon(struct device *dev); | ||
33 | |||
34 | int max9295_streamoff(struct device *dev); | ||
35 | |||
36 | #endif /* __MAX9295_H__ */ | ||