From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/phy/rockchip/phy-rockchip-csi2-dphy-common.h | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/kernel/drivers/phy/rockchip/phy-rockchip-csi2-dphy-common.h b/kernel/drivers/phy/rockchip/phy-rockchip-csi2-dphy-common.h
index 0ec812b..7af000b 100644
--- a/kernel/drivers/phy/rockchip/phy-rockchip-csi2-dphy-common.h
+++ b/kernel/drivers/phy/rockchip/phy-rockchip-csi2-dphy-common.h
@@ -9,9 +9,14 @@
#define _PHY_ROCKCHIP_CSI2_DPHY_COMMON_H_
#include <linux/rk-camera-module.h>
+#include <linux/rkcif-config.h>
#define PHY_MAX 16
#define MAX_DEV_NAME_LEN 32
+
+#define MAX_SAMSUNG_PHY_NUM 2
+
+#define MAX_INNO_PHY_NUM 2
/* add new chip id in tail by time order */
enum csi2_dphy_chip_id {
@@ -59,14 +64,18 @@
struct dphy_drv_data {
const char dev_name[MAX_DEV_NAME_LEN];
- enum csi2_dphy_vendor vendor;
+ enum csi2_dphy_chip_id chip_id;
+ char num_inno_phy;
+ char num_samsung_phy;
};
struct csi2_dphy {
struct device *dev;
struct list_head list;
struct csi2_dphy_hw *dphy_hw;
+ struct csi2_dphy_hw *dphy_hw_group[MAX_INNO_PHY_NUM];
struct samsung_mipi_dcphy *samsung_phy;
+ struct samsung_mipi_dcphy *samsung_phy_group[MAX_SAMSUNG_PHY_NUM];
struct v4l2_async_notifier notifier;
struct v4l2_subdev sd;
struct mutex mutex; /* lock for updating protection */
@@ -75,8 +84,10 @@
u64 data_rate_mbps;
int num_sensors;
int phy_index;
+ struct rkcif_csi_info csi_info;
+ void *phy_hw[RKMODULE_MULTI_DEV_NUM];
bool is_streaming;
- enum csi2_dphy_lane_mode lane_mode;
+ int lane_mode;
const struct dphy_drv_data *drv_data;
struct rkmodule_csi_dphy_param dphy_param;
};
@@ -87,8 +98,9 @@
const struct hsfreq_range *hsfreq_ranges_cphy;
int num_hsfreq_ranges_cphy;
const struct grf_reg *grf_regs;
- const struct txrx_reg *txrx_regs;
+ int num_grf_regs;
const struct csi2dphy_reg *csi2dphy_regs;
+ int num_csi2dphy_regs;
void (*individual_init)(struct csi2_dphy_hw *hw);
int (*stream_on)(struct csi2_dphy *dphy, struct v4l2_subdev *sd);
int (*stream_off)(struct csi2_dphy *dphy, struct v4l2_subdev *sd);
@@ -100,7 +112,6 @@
struct regmap *regmap_grf;
struct regmap *regmap_sys_grf;
const struct grf_reg *grf_regs;
- const struct txrx_reg *txrx_regs;
const struct csi2dphy_reg *csi2dphy_regs;
const struct dphy_hw_drv_data *drv_data;
void __iomem *hw_base_addr;
@@ -119,6 +130,8 @@
int (*stream_off)(struct csi2_dphy *dphy, struct v4l2_subdev *sd);
int (*ttl_mode_enable)(struct csi2_dphy_hw *hw);
void (*ttl_mode_disable)(struct csi2_dphy_hw *hw);
+ int (*quick_stream_on)(struct csi2_dphy *dphy, struct v4l2_subdev *sd);
+ int (*quick_stream_off)(struct csi2_dphy *dphy, struct v4l2_subdev *sd);
};
int rockchip_csi2_dphy_hw_init(void);
--
Gitblit v1.6.2