Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/media/platform/qcom/camss/
Dcamss-csiphy.c137 static int csiphy_set_clock_rates(struct csiphy_device *csiphy) in csiphy_set_clock_rates() argument
139 struct device *dev = csiphy->camss->dev; in csiphy_set_clock_rates()
144 u8 bpp = csiphy_get_bpp(csiphy->res->formats->formats, csiphy->res->formats->nformats, in csiphy_set_clock_rates()
145 csiphy->fmt[MSM_CSIPHY_PAD_SINK].code); in csiphy_set_clock_rates()
146 u8 num_lanes = csiphy->cfg.csi2->lane_cfg.num_data; in csiphy_set_clock_rates()
148 link_freq = camss_get_link_freq(&csiphy->subdev.entity, bpp, num_lanes); in csiphy_set_clock_rates()
152 for (i = 0; i < csiphy->nclocks; i++) { in csiphy_set_clock_rates()
153 struct camss_clock *clock = &csiphy->clock[i]; in csiphy_set_clock_rates()
155 if (csiphy->rate_set[i]) { in csiphy_set_clock_rates()
183 csiphy->timer_clk_rate = round_rate; in csiphy_set_clock_rates()
[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-3ph-1-0.c351 static void csiphy_hw_version_read(struct csiphy_device *csiphy, in csiphy_hw_version_read() argument
357 csiphy->base + CSIPHY_3PH_CMN_CSI_COMMON_CTRLn(6)); in csiphy_hw_version_read()
359 hw_version = readl_relaxed(csiphy->base + in csiphy_hw_version_read()
361 hw_version |= readl_relaxed(csiphy->base + in csiphy_hw_version_read()
363 hw_version |= readl_relaxed(csiphy->base + in csiphy_hw_version_read()
365 hw_version |= readl_relaxed(csiphy->base + in csiphy_hw_version_read()
375 static void csiphy_reset(struct csiphy_device *csiphy) in csiphy_reset() argument
377 writel_relaxed(0x1, csiphy->base + CSIPHY_3PH_CMN_CSI_COMMON_CTRLn(0)); in csiphy_reset()
379 writel_relaxed(0x0, csiphy->base + CSIPHY_3PH_CMN_CSI_COMMON_CTRLn(0)); in csiphy_reset()
384 struct csiphy_device *csiphy = dev; in csiphy_isr() local
[all …]
Dcamss-csiphy.h65 void (*hw_version_read)(struct csiphy_device *csiphy,
67 void (*reset)(struct csiphy_device *csiphy);
68 void (*lanes_enable)(struct csiphy_device *csiphy,
71 void (*lanes_disable)(struct csiphy_device *csiphy,
102 struct csiphy_device *csiphy,
105 int msm_csiphy_register_entity(struct csiphy_device *csiphy,
108 void msm_csiphy_unregister_entity(struct csiphy_device *csiphy);
Dcamss.c48 .csiphy = {
64 .csiphy = {
166 .csiphy = {
182 .csiphy = {
198 .csiphy = {
372 .csiphy = {
390 .csiphy = {
408 .csiphy = {
604 .csiphy = {
626 .csiphy = {
[all …]
DMakefile10 camss-csiphy-2ph-1-0.o \
11 camss-csiphy-3ph-1-0.o \
12 camss-csiphy.o \
Dcamss.h53 struct csiphy_subdev_resources csiphy; member
109 struct csiphy_device *csiphy; member
Dcamss-csid.c1185 struct csiphy_device *csiphy; in csid_link_setup() local
1197 csiphy = v4l2_get_subdevdata(sd); in csid_link_setup()
1201 if (!csiphy->cfg.csi2) in csid_link_setup()
1204 csid->phy.csiphy_id = csiphy->id; in csid_link_setup()
1206 lane_cfg = &csiphy->cfg.csi2->lane_cfg; in csid_link_setup()