Lines Matching refs:hwcfg
1035 __ffs(*valid_link_freqs), sensor->hwcfg.op_sys_clock); in ccs_init_late_controls()
1148 for (j = 0; sensor->hwcfg.op_sys_clock[j]; j++) { in ccs_get_mbus_formats()
1149 pll->link_freq = sensor->hwcfg.op_sys_clock[j]; in ccs_get_mbus_formats()
1347 client->addr = sensor->hwcfg.i2c_addr_dfl; in ccs_change_cci_addr()
1350 sensor->hwcfg.i2c_addr_alt << 1); in ccs_change_cci_addr()
1354 client->addr = sensor->hwcfg.i2c_addr_alt; in ccs_change_cci_addr()
1361 if (val != sensor->hwcfg.i2c_addr_alt << 1) in ccs_change_cci_addr()
1375 unsigned int ext_freq = sensor->hwcfg.ext_clk; in ccs_setup_flash_strobe()
1381 strobe_setup = sensor->hwcfg.strobe_setup; in ccs_setup_flash_strobe()
1489 sensor->hwcfg.strobe_setup->trigger = 0; in ccs_setup_flash_strobe()
1568 sleep = SMIAPP_RESET_DELAY(sensor->hwcfg.ext_clk); in ccs_power_on()
1612 if (sensor->hwcfg.i2c_addr_alt) { in ccs_power_on()
1628 sensor->hwcfg.ext_clk / (1000000 / (1 << 8))); in ccs_power_on()
1634 rval = ccs_write(sensor, CSI_LANE_MODE, sensor->hwcfg.lanes - 1); in ccs_power_on()
1648 sensor->hwcfg.csi_signalling_mode); in ccs_power_on()
1696 if (sensor->hwcfg.i2c_addr_alt) in ccs_power_off()
1836 sensor->hwcfg.strobe_setup != NULL && in ccs_start_streaming()
1837 sensor->hwcfg.strobe_setup->trigger != 0) { in ccs_start_streaming()
1955 switch (sensor->hwcfg.csi_signalling_mode) { in ccs_pre_streamon()
3184 struct ccs_hwconfig *hwcfg = &sensor->hwcfg; in ccs_get_hwconfig() local
3207 hwcfg->csi_signalling_mode = CCS_CSI_SIGNALING_MODE_CSI_2_DPHY; in ccs_get_hwconfig()
3208 hwcfg->lanes = bus_cfg.bus.mipi_csi2.num_data_lanes; in ccs_get_hwconfig()
3211 hwcfg->csi_signalling_mode = CCS_CSI_SIGNALING_MODE_CSI_2_CPHY; in ccs_get_hwconfig()
3212 hwcfg->lanes = bus_cfg.bus.mipi_csi2.num_data_lanes; in ccs_get_hwconfig()
3216 hwcfg->csi_signalling_mode = (bus_cfg.bus.mipi_csi1.strobe) ? in ccs_get_hwconfig()
3219 hwcfg->lanes = 1; in ccs_get_hwconfig()
3231 hwcfg->module_board_orient = in ccs_get_hwconfig()
3244 &hwcfg->ext_clk); in ccs_get_hwconfig()
3248 dev_dbg(dev, "clk %u, mode %u\n", hwcfg->ext_clk, in ccs_get_hwconfig()
3249 hwcfg->csi_signalling_mode); in ccs_get_hwconfig()
3257 hwcfg->op_sys_clock = devm_kcalloc( in ccs_get_hwconfig()
3259 sizeof(*hwcfg->op_sys_clock), GFP_KERNEL); in ccs_get_hwconfig()
3260 if (!hwcfg->op_sys_clock) { in ccs_get_hwconfig()
3266 hwcfg->op_sys_clock[i] = bus_cfg.link_frequencies[i]; in ccs_get_hwconfig()
3267 dev_dbg(dev, "freq %u: %lld\n", i, hwcfg->op_sys_clock[i]); in ccs_get_hwconfig()
3331 if (sensor->hwcfg.ext_clk) { in ccs_probe()
3335 sensor->hwcfg.ext_clk); in ccs_probe()
3339 sensor->hwcfg.ext_clk); in ccs_probe()
3344 if (rate != sensor->hwcfg.ext_clk) { in ccs_probe()
3347 sensor->hwcfg.ext_clk, rate); in ccs_probe()
3351 sensor->hwcfg.ext_clk = clk_get_rate(sensor->ext_clk); in ccs_probe()
3353 sensor->hwcfg.ext_clk); in ccs_probe()
3355 } else if (sensor->hwcfg.ext_clk) { in ccs_probe()
3357 sensor->hwcfg.ext_clk); in ccs_probe()
3363 if (!sensor->hwcfg.ext_clk) { in ccs_probe()
3453 if (sensor->hwcfg.module_board_orient == in ccs_probe()
3525 sensor->pll.csi2.lanes = sensor->hwcfg.lanes; in ccs_probe()
3578 sensor->pll.ext_clk_freq_hz = sensor->hwcfg.ext_clk; in ccs_probe()