• Home
  • Raw
  • Download

Lines Matching refs:csid

197 static void csid_configure_stream(struct csid_device *csid, u8 enable)  in csid_configure_stream()  argument
199 struct csid_testgen_config *tg = &csid->testgen; in csid_configure_stream()
200 u32 sink_code = csid->fmt[MSM_CSID_PAD_SINK].code; in csid_configure_stream()
201 u32 src_code = csid->fmt[MSM_CSID_PAD_SRC].code; in csid_configure_stream()
215 input_format = &csid->fmt[MSM_CSID_PAD_SRC]; in csid_configure_stream()
216 format = csid_get_fmt_entry(csid->formats, csid->nformats, in csid_configure_stream()
225 writel_relaxed(val, csid->base + CAMSS_CSID_TG_VC_CFG); in csid_configure_stream()
230 writel_relaxed(val, csid->base + CAMSS_CSID_TG_DT_n_CGG_0(0)); in csid_configure_stream()
234 writel_relaxed(val, csid->base + CAMSS_CSID_TG_DT_n_CGG_1(0)); in csid_configure_stream()
238 writel_relaxed(val, csid->base + CAMSS_CSID_TG_DT_n_CGG_2(0)); in csid_configure_stream()
240 struct csid_phy_config *phy = &csid->phy; in csid_configure_stream()
242 input_format = &csid->fmt[MSM_CSID_PAD_SINK]; in csid_configure_stream()
243 format = csid_get_fmt_entry(csid->formats, csid->nformats, in csid_configure_stream()
249 writel_relaxed(val, csid->base + CAMSS_CSID_CORE_CTRL_0); in csid_configure_stream()
254 writel_relaxed(val, csid->base + CAMSS_CSID_CORE_CTRL_1); in csid_configure_stream()
261 val = readl_relaxed(csid->base + CAMSS_CSID_CID_LUT_VC_n(vc)); in csid_configure_stream()
264 writel_relaxed(val, csid->base + CAMSS_CSID_CID_LUT_VC_n(vc)); in csid_configure_stream()
280 writel_relaxed(val, csid->base + CAMSS_CSID_CID_n_CFG(cid)); in csid_configure_stream()
284 writel_relaxed(val, csid->base + CAMSS_CSID_TG_CTRL); in csid_configure_stream()
289 writel_relaxed(val, csid->base + CAMSS_CSID_TG_CTRL); in csid_configure_stream()
294 static int csid_configure_testgen_pattern(struct csid_device *csid, s32 val) in csid_configure_testgen_pattern() argument
296 if (val > 0 && val <= csid->testgen.nmodes) in csid_configure_testgen_pattern()
297 csid->testgen.mode = val; in csid_configure_testgen_pattern()
302 static u32 csid_hw_version(struct csid_device *csid) in csid_hw_version() argument
304 u32 hw_version = readl_relaxed(csid->base + CAMSS_CSID_HW_VERSION); in csid_hw_version()
306 dev_dbg(csid->camss->dev, "CSID HW Version = 0x%08x\n", hw_version); in csid_hw_version()
320 struct csid_device *csid = dev; in csid_isr() local
323 value = readl_relaxed(csid->base + CAMSS_CSID_IRQ_STATUS); in csid_isr()
324 writel_relaxed(value, csid->base + CAMSS_CSID_IRQ_CLEAR_CMD); in csid_isr()
327 complete(&csid->reset_complete); in csid_isr()
338 static int csid_reset(struct csid_device *csid) in csid_reset() argument
342 reinit_completion(&csid->reset_complete); in csid_reset()
344 writel_relaxed(0x7fff, csid->base + CAMSS_CSID_RST_CMD); in csid_reset()
346 time = wait_for_completion_timeout(&csid->reset_complete, in csid_reset()
349 dev_err(csid->camss->dev, "CSID reset timeout\n"); in csid_reset()
356 static u32 csid_src_pad_code(struct csid_device *csid, u32 sink_code, in csid_src_pad_code() argument
388 static void csid_subdev_init(struct csid_device *csid) in csid_subdev_init() argument
390 csid->formats = csid_formats; in csid_subdev_init()
391 csid->nformats = ARRAY_SIZE(csid_formats); in csid_subdev_init()
392 csid->testgen.modes = csid_testgen_modes; in csid_subdev_init()
393 csid->testgen.nmodes = CSID_PAYLOAD_MODE_NUM_SUPPORTED_GEN1; in csid_subdev_init()