Searched refs:ctrl_config (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/drivers/i3c/ |
D | i3c_cdns.c | 928 struct i3c_config_controller *ctrl_config = &data->common.ctrl_config; in cdns_i3c_set_prescalers() local 932 (ctrl_config->scl.i3c * I3C_PRESCL_REG_SCALE)) - in cdns_i3c_set_prescalers() 935 (ctrl_config->scl.i2c * I2C_PRESCL_REG_SCALE)) - in cdns_i3c_set_prescalers() 939 ctrl_config->scl.i3c = config->input_frequency / ((prescl_i3c + 1) * I3C_PRESCL_REG_SCALE); in cdns_i3c_set_prescalers() 940 ctrl_config->scl.i2c = config->input_frequency / ((prescl_i2c + 1) * I2C_PRESCL_REG_SCALE); in cdns_i3c_set_prescalers() 942 LOG_DBG("%s: I3C speed = %u, PRESCL_CTRL0.i3c = 0x%x", dev->name, ctrl_config->scl.i3c, in cdns_i3c_set_prescalers() 944 LOG_DBG("%s: I2C speed = %u, PRESCL_CTRL0.i2c = 0x%x", dev->name, ctrl_config->scl.i2c, in cdns_i3c_set_prescalers() 948 uint32_t pres_step = 1000000000 / (ctrl_config->scl.i3c * 4); in cdns_i3c_set_prescalers() 1105 struct i3c_config_controller *ctrl_config = &data->common.ctrl_config; in cdns_i3c_target_ibi_raise_hj() local 1108 if (!ctrl_config->is_secondary) { in cdns_i3c_target_ibi_raise_hj() [all …]
|
D | i3c_mcux.c | 1887 (void)memcpy(&dev_data->common.ctrl_config, ctrl_cfg, sizeof(*ctrl_cfg)); in mcux_i3c_configure() 1937 (void)memcpy(config, &data->common.ctrl_config, sizeof(data->common.ctrl_config)); in mcux_i3c_config_get() 1953 struct i3c_config_controller *ctrl_config = &data->common.ctrl_config; in mcux_i3c_init() local 1973 if (ctrl_config->scl.i2c == 0U) { in mcux_i3c_init() 1974 ctrl_config->scl.i2c = ctrl_config_hal.baudRate_Hz.i2cBaud; in mcux_i3c_init() 1977 if (ctrl_config->scl.i3c == 0U) { in mcux_i3c_init() 1978 ctrl_config->scl.i3c = ctrl_config_hal.baudRate_Hz.i3cPushPullBaud; in mcux_i3c_init() 1982 ctrl_config->is_secondary = false; in mcux_i3c_init() 1985 ctrl_config->supported_hdr = 0U; in mcux_i3c_init() 1987 ret = mcux_i3c_configure(dev, I3C_CONFIG_CONTROLLER, ctrl_config); in mcux_i3c_init() [all …]
|
D | i3c_stm32.c | 567 uint32_t i2c_bus_freq = data->drv_data.ctrl_config.scl.i2c; in i3c_stm32_config_clk_wave() 568 uint32_t i3c_bus_freq = data->drv_data.ctrl_config.scl.i3c; in i3c_stm32_config_clk_wave() 625 (void)memcpy(config, &data->drv_data.ctrl_config, sizeof(data->drv_data.ctrl_config)); in i3c_stm32_config_get() 637 uint32_t i2c_bus_freq = data->drv_data.ctrl_config.scl.i2c; in i3c_stm32_config_ctrl_bus_char() 715 data->drv_data.ctrl_config.scl.i3c = ctrl_cfg->scl.i3c; in i3c_stm32_configure() 716 data->drv_data.ctrl_config.scl.i2c = ctrl_cfg->scl.i2c; in i3c_stm32_configure() 742 struct i3c_config_controller *ctrl_config = &data->drv_data.ctrl_config; in i3c_stm32_i2c_configure() local 746 ctrl_config->scl.i2c = 400000; in i3c_stm32_i2c_configure() 749 ctrl_config->scl.i2c = 1000000; in i3c_stm32_i2c_configure() 1551 i3c_stm32_configure(dev, I3C_CONFIG_CONTROLLER, &data->drv_data.ctrl_config); in i3c_stm32_init() [all …]
|
D | i3c_npcx.c | 1231 } else if ((data->common.ctrl_config.supported_hdr & I3C_MSG_HDR_DDR) && in npcx_i3c_transfer() 1247 __func__, dev->name, data->common.ctrl_config.supported_hdr, in npcx_i3c_transfer() 2358 struct i3c_config_controller *ctrl_config = &data->common.ctrl_config; in npcx_i3c_freq_init() local 2359 uint32_t scl_pp = ctrl_config->scl.i3c; in npcx_i3c_freq_init() 2377 LOG_DBG("hdr: %d", ctrl_config->supported_hdr); in npcx_i3c_freq_init() 2546 struct i3c_config_controller *config_cntlr = &data->common.ctrl_config; in npcx_i3c_dev_init() 2597 (void)memcpy(&dev_data->common.ctrl_config, config_cntlr, sizeof(*config_cntlr)); in npcx_i3c_configure() 2625 (void)memcpy(config, &data->common.ctrl_config, sizeof(data->common.ctrl_config)); in npcx_i3c_config_get() 2884 struct i3c_config_controller *config_cntlr = &data->common.ctrl_config; in npcx_i3c_init() 3034 .common.ctrl_config.is_secondary = DT_INST_PROP_OR(id, secondary, false), \
|
/Zephyr-latest/include/zephyr/drivers/ |
D | i3c.h | 1217 struct i3c_config_controller ctrl_config; member
|