Home
last modified time | relevance | path

Searched refs:csiphy (Results 1 – 8 of 8) sorted by relevance

/Linux-v6.1/drivers/media/platform/qcom/camss/
Dcamss-csiphy.c127 static int csiphy_set_clock_rates(struct csiphy_device *csiphy) in csiphy_set_clock_rates() argument
129 struct device *dev = csiphy->camss->dev; in csiphy_set_clock_rates()
134 u8 bpp = csiphy_get_bpp(csiphy->formats, csiphy->nformats, in csiphy_set_clock_rates()
135 csiphy->fmt[MSM_CSIPHY_PAD_SINK].code); in csiphy_set_clock_rates()
136 u8 num_lanes = csiphy->cfg.csi2->lane_cfg.num_data; in csiphy_set_clock_rates()
138 link_freq = camss_get_link_freq(&csiphy->subdev.entity, bpp, num_lanes); in csiphy_set_clock_rates()
142 for (i = 0; i < csiphy->nclocks; i++) { in csiphy_set_clock_rates()
143 struct camss_clock *clock = &csiphy->clock[i]; in csiphy_set_clock_rates()
145 if (csiphy->rate_set[i]) { in csiphy_set_clock_rates()
173 csiphy->timer_clk_rate = round_rate; in csiphy_set_clock_rates()
[all …]
Dcamss-csiphy-3ph-1-0.c266 static void csiphy_hw_version_read(struct csiphy_device *csiphy, in csiphy_hw_version_read() argument
272 csiphy->base + CSIPHY_3PH_CMN_CSI_COMMON_CTRLn(6)); in csiphy_hw_version_read()
274 hw_version = readl_relaxed(csiphy->base + in csiphy_hw_version_read()
276 hw_version |= readl_relaxed(csiphy->base + in csiphy_hw_version_read()
278 hw_version |= readl_relaxed(csiphy->base + in csiphy_hw_version_read()
280 hw_version |= readl_relaxed(csiphy->base + in csiphy_hw_version_read()
290 static void csiphy_reset(struct csiphy_device *csiphy) in csiphy_reset() argument
292 writel_relaxed(0x1, csiphy->base + CSIPHY_3PH_CMN_CSI_COMMON_CTRLn(0)); in csiphy_reset()
294 writel_relaxed(0x0, csiphy->base + CSIPHY_3PH_CMN_CSI_COMMON_CTRLn(0)); in csiphy_reset()
299 struct csiphy_device *csiphy = dev; in csiphy_isr() local
[all …]
Dcamss-csiphy-2ph-1-0.c43 static void csiphy_hw_version_read(struct csiphy_device *csiphy, in csiphy_hw_version_read() argument
46 u8 hw_version = readl_relaxed(csiphy->base + in csiphy_hw_version_read()
56 static void csiphy_reset(struct csiphy_device *csiphy) in csiphy_reset() argument
58 writel_relaxed(0x1, csiphy->base + CAMSS_CSI_PHY_GLBL_RESET); in csiphy_reset()
60 writel_relaxed(0x0, csiphy->base + CAMSS_CSI_PHY_GLBL_RESET); in csiphy_reset()
97 static void csiphy_lanes_enable(struct csiphy_device *csiphy, in csiphy_lanes_enable() argument
106 settle_cnt = csiphy_settle_cnt_calc(link_freq, csiphy->timer_clk_rate); in csiphy_lanes_enable()
108 writel_relaxed(0x1, csiphy->base + in csiphy_lanes_enable()
110 writel_relaxed(0x1, csiphy->base + in csiphy_lanes_enable()
115 writel_relaxed(val, csiphy->base + CAMSS_CSI_PHY_GLBL_PWR_CFG); in csiphy_lanes_enable()
[all …]
Dcamss-csiphy.h55 void (*hw_version_read)(struct csiphy_device *csiphy,
57 void (*reset)(struct csiphy_device *csiphy);
58 void (*lanes_enable)(struct csiphy_device *csiphy,
61 void (*lanes_disable)(struct csiphy_device *csiphy,
89 struct csiphy_device *csiphy,
92 int msm_csiphy_register_entity(struct csiphy_device *csiphy,
95 void msm_csiphy_unregister_entity(struct csiphy_device *csiphy);
DMakefile10 camss-csiphy-2ph-1-0.o \
11 camss-csiphy-3ph-1-0.o \
12 camss-csiphy.o \
Dcamss.c1162 ret = msm_csiphy_subdev_init(camss, &camss->csiphy[i], in camss_init_subdevices()
1216 ret = msm_csiphy_register_entity(&camss->csiphy[i], in camss_register_entities()
1259 &camss->csiphy[i].subdev.entity, in camss_register_entities()
1267 camss->csiphy[i].subdev.entity.name, in camss_register_entities()
1357 msm_csiphy_unregister_entity(&camss->csiphy[i]); in camss_register_entities()
1373 msm_csiphy_unregister_entity(&camss->csiphy[i]); in camss_unregister_entities()
1392 struct csiphy_device *csiphy = &camss->csiphy[id]; in camss_subdev_notifier_bound() local
1394 csiphy->cfg.csi2 = &csd->interface.csi2; in camss_subdev_notifier_bound()
1395 subdev->host_priv = csiphy; in camss_subdev_notifier_bound()
1410 struct csiphy_device *csiphy = in camss_subdev_notifier_complete() local
[all …]
Dcamss-csid.c739 struct csiphy_device *csiphy; in csid_link_setup() local
752 csiphy = v4l2_get_subdevdata(sd); in csid_link_setup()
756 if (!csiphy->cfg.csi2) in csid_link_setup()
759 csid->phy.csiphy_id = csiphy->id; in csid_link_setup()
761 lane_cfg = &csiphy->cfg.csi2->lane_cfg; in csid_link_setup()
Dcamss.h95 struct csiphy_device *csiphy; member