mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
camera: csi: configure cphy by device tree
configure cphy mode by device tree instead of hard code. bug 3865712 Change-Id: If58b9847e44def0183122c8f6b22d05391051f30 Signed-off-by: snchen <snchen@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2833242 (cherry picked from commit 7ded1647946aa7063ca0de3c8ffc69e27b29b9c5) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2866943 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Ankur Pawar <ankurp@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com> Tested-by: Ankur Pawar <ankurp@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
4a11641e79
commit
32026c1862
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* Tegra CSI5 device common APIs
|
* Tegra CSI5 device common APIs
|
||||||
*/
|
*/
|
||||||
#include <linux/log2.h>
|
|
||||||
#include <media/csi.h>
|
#include <media/csi.h>
|
||||||
#include <media/mc_common.h>
|
#include <media/mc_common.h>
|
||||||
#include <media/csi5_registers.h>
|
#include <media/csi5_registers.h>
|
||||||
@@ -213,7 +213,8 @@ static int csi5_stream_set_config(struct tegra_csi_channel *chan, u32 stream_id,
|
|||||||
struct CAPTURE_CONTROL_MSG msg;
|
struct CAPTURE_CONTROL_MSG msg;
|
||||||
struct nvcsi_brick_config brick_config;
|
struct nvcsi_brick_config brick_config;
|
||||||
struct nvcsi_cil_config cil_config;
|
struct nvcsi_cil_config cil_config;
|
||||||
bool is_cphy = (csi_lanes == 3);
|
u32 phy_mode = read_phy_mode_from_dt(chan);
|
||||||
|
bool is_cphy = (phy_mode == CSI_PHY_MODE_CPHY);
|
||||||
dev_dbg(csi->dev, "%s: stream_id=%u, csi_port=%u\n",
|
dev_dbg(csi->dev, "%s: stream_id=%u, csi_port=%u\n",
|
||||||
__func__, stream_id, csi_port);
|
__func__, stream_id, csi_port);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user