From bbd5a6a314cb481e1b8e0686707e3ac7330c2ee0 Mon Sep 17 00:00:00 2001 From: Sudhir Vyas Date: Fri, 14 Dec 2018 15:21:14 +0530 Subject: media: i2c: imx390: refactor driver internals - Use vendor recommended 32bit frame-length and coarse-time v4l2 ctrls. TODO: convert to 64bit ctrls. - Rectify framelength address registers. - Update mode settings and resolution. - Correct line length and related settings to fix frame rate and buffer overflow issue. - Modify gmsl setup/reset interface, caller functions and sequence. - Let deserializer own the power functions to fix issues related to shared reset gpio. - Handle shared i2c passthrough2 to fix device communication issue. Bug 200407741 Change-Id: I1cbb6288dd150dbfc5d4b42a94f119c9775f6cff Signed-off-by: Sudhir Vyas Reviewed-on: https://git-master.nvidia.com/r/1989915 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Frank Chen Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/media/max9296.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include/media') diff --git a/include/media/max9296.h b/include/media/max9296.h index d503e84ac..615582668 100644 --- a/include/media/max9296.h +++ b/include/media/max9296.h @@ -1,5 +1,5 @@ /** - * Copyright (c) 2018, NVIDIA Corporation. All rights reserved. + * Copyright (c) 2018-2019, NVIDIA Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -19,9 +19,11 @@ #include +int max9296_setup_link(struct device *dev, struct device *s_dev); + int max9296_setup_control(struct device *dev); -int max9296_reset_control(struct device *dev); +int max9296_reset_control(struct device *dev, struct device *s_dev); int max9296_sdev_register(struct device *dev, struct gmsl_link_ctx *g_ctx); @@ -29,6 +31,8 @@ int max9296_sdev_unregister(struct device *dev, struct device *s_dev); int max9296_setup_streaming(struct device *dev, struct device *s_dev); -int max9296_link_ex(struct device *dev, struct device *s_dev); +int max9296_power_on(struct device *dev); + +void max9296_power_off(struct device *dev); #endif /* __MAX9296_H__ */ -- cgit v1.2.2