Searched refs:csiphy (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.10/drivers/media/platform/qcom/camss/ |
D | camss-csiphy.c | 102 static int csiphy_set_clock_rates(struct csiphy_device *csiphy) in csiphy_set_clock_rates() argument 104 struct device *dev = csiphy->camss->dev; in csiphy_set_clock_rates() 109 ret = camss_get_pixel_clock(&csiphy->subdev.entity, &pixel_clock); in csiphy_set_clock_rates() 113 for (i = 0; i < csiphy->nclocks; i++) { in csiphy_set_clock_rates() 114 struct camss_clock *clock = &csiphy->clock[i]; in csiphy_set_clock_rates() 119 u8 bpp = csiphy_get_bpp(csiphy->formats, in csiphy_set_clock_rates() 120 csiphy->nformats, in csiphy_set_clock_rates() 121 csiphy->fmt[MSM_CSIPHY_PAD_SINK].code); in csiphy_set_clock_rates() 122 u8 num_lanes = csiphy->cfg.csi2->lane_cfg.num_data; in csiphy_set_clock_rates() 150 csiphy->timer_clk_rate = round_rate; in csiphy_set_clock_rates() [all …]
|
D | camss-csiphy-3ph-1-0.c | 48 static void csiphy_hw_version_read(struct csiphy_device *csiphy, in csiphy_hw_version_read() argument 54 csiphy->base + CSIPHY_3PH_CMN_CSI_COMMON_CTRLn(6)); in csiphy_hw_version_read() 56 hw_version = readl_relaxed(csiphy->base + in csiphy_hw_version_read() 58 hw_version |= readl_relaxed(csiphy->base + in csiphy_hw_version_read() 60 hw_version |= readl_relaxed(csiphy->base + in csiphy_hw_version_read() 62 hw_version |= readl_relaxed(csiphy->base + in csiphy_hw_version_read() 72 static void csiphy_reset(struct csiphy_device *csiphy) in csiphy_reset() argument 74 writel_relaxed(0x1, csiphy->base + CSIPHY_3PH_CMN_CSI_COMMON_CTRLn(0)); in csiphy_reset() 76 writel_relaxed(0x0, csiphy->base + CSIPHY_3PH_CMN_CSI_COMMON_CTRLn(0)); in csiphy_reset() 81 struct csiphy_device *csiphy = dev; in csiphy_isr() local [all …]
|
D | camss-csiphy-2ph-1-0.c | 29 static void csiphy_hw_version_read(struct csiphy_device *csiphy, in csiphy_hw_version_read() argument 32 u8 hw_version = readl_relaxed(csiphy->base + in csiphy_hw_version_read() 42 static void csiphy_reset(struct csiphy_device *csiphy) in csiphy_reset() argument 44 writel_relaxed(0x1, csiphy->base + CAMSS_CSI_PHY_GLBL_RESET); in csiphy_reset() 46 writel_relaxed(0x0, csiphy->base + CAMSS_CSI_PHY_GLBL_RESET); in csiphy_reset() 84 static void csiphy_lanes_enable(struct csiphy_device *csiphy, in csiphy_lanes_enable() argument 94 csiphy->timer_clk_rate); in csiphy_lanes_enable() 96 writel_relaxed(0x1, csiphy->base + in csiphy_lanes_enable() 98 writel_relaxed(0x1, csiphy->base + in csiphy_lanes_enable() 103 writel_relaxed(val, csiphy->base + CAMSS_CSI_PHY_GLBL_PWR_CFG); in csiphy_lanes_enable() [all …]
|
D | camss-csiphy.h | 48 void (*hw_version_read)(struct csiphy_device *csiphy, 50 void (*reset)(struct csiphy_device *csiphy); 51 void (*lanes_enable)(struct csiphy_device *csiphy, 54 void (*lanes_disable)(struct csiphy_device *csiphy, 81 struct csiphy_device *csiphy, 84 int msm_csiphy_register_entity(struct csiphy_device *csiphy, 87 void msm_csiphy_unregister_entity(struct csiphy_device *csiphy);
|
D | Makefile | 7 camss-csiphy-2ph-1-0.o \ 8 camss-csiphy-3ph-1-0.o \ 9 camss-csiphy.o \
|
D | camss.c | 541 ret = msm_csiphy_subdev_init(camss, &camss->csiphy[i], in camss_init_subdevices() 594 ret = msm_csiphy_register_entity(&camss->csiphy[i], in camss_register_entities() 636 &camss->csiphy[i].subdev.entity, in camss_register_entities() 644 camss->csiphy[i].subdev.entity.name, in camss_register_entities() 709 msm_csiphy_unregister_entity(&camss->csiphy[i]); in camss_register_entities() 725 msm_csiphy_unregister_entity(&camss->csiphy[i]); in camss_unregister_entities() 744 struct csiphy_device *csiphy = &camss->csiphy[id]; in camss_subdev_notifier_bound() local 746 csiphy->cfg.csi2 = &csd->interface.csi2; in camss_subdev_notifier_bound() 747 subdev->host_priv = csiphy; in camss_subdev_notifier_bound() 762 struct csiphy_device *csiphy = in camss_subdev_notifier_complete() local [all …]
|
D | camss.h | 77 struct csiphy_device *csiphy; member
|
D | camss-csid.c | 1243 struct csiphy_device *csiphy; in csid_link_setup() local 1256 csiphy = v4l2_get_subdevdata(sd); in csid_link_setup() 1260 if (!csiphy->cfg.csi2) in csid_link_setup() 1263 csid->phy.csiphy_id = csiphy->id; in csid_link_setup() 1265 lane_cfg = &csiphy->cfg.csi2->lane_cfg; in csid_link_setup()
|