Home
last modified time | relevance | path

Searched refs:ctrl_config (Results 1 – 4 of 4) sorted by relevance

/Zephyr-Core-3.7.0/drivers/i3c/
Di3c_cdns.c911 struct i3c_config_controller *ctrl_config = &data->common.ctrl_config; in cdns_i3c_set_prescalers() local
915 (ctrl_config->scl.i3c * I3C_PRESCL_REG_SCALE)) - in cdns_i3c_set_prescalers()
918 (ctrl_config->scl.i2c * I2C_PRESCL_REG_SCALE)) - in cdns_i3c_set_prescalers()
922 ctrl_config->scl.i3c = config->input_frequency / ((prescl_i3c + 1) * I3C_PRESCL_REG_SCALE); in cdns_i3c_set_prescalers()
923 ctrl_config->scl.i2c = config->input_frequency / ((prescl_i2c + 1) * I2C_PRESCL_REG_SCALE); in cdns_i3c_set_prescalers()
925 LOG_DBG("%s: I3C speed = %u, PRESCL_CTRL0.i3c = 0x%x", dev->name, ctrl_config->scl.i3c, in cdns_i3c_set_prescalers()
927 LOG_DBG("%s: I2C speed = %u, PRESCL_CTRL0.i2c = 0x%x", dev->name, ctrl_config->scl.i2c, in cdns_i3c_set_prescalers()
931 uint32_t pres_step = 1000000000 / (ctrl_config->scl.i3c * 4); in cdns_i3c_set_prescalers()
1088 struct i3c_config_controller *ctrl_config = &data->common.ctrl_config; in cdns_i3c_target_ibi_raise_hj() local
1091 if (!ctrl_config->is_secondary) { in cdns_i3c_target_ibi_raise_hj()
[all …]
Di3c_mcux.c1907 (void)memcpy(&dev_data->common.ctrl_config, ctrl_cfg, sizeof(*ctrl_cfg)); in mcux_i3c_configure()
1957 (void)memcpy(config, &data->common.ctrl_config, sizeof(data->common.ctrl_config)); in mcux_i3c_config_get()
1973 struct i3c_config_controller *ctrl_config = &data->common.ctrl_config; in mcux_i3c_init() local
1997 if (ctrl_config->scl.i2c == 0U) { in mcux_i3c_init()
1998 ctrl_config->scl.i2c = ctrl_config_hal.baudRate_Hz.i2cBaud; in mcux_i3c_init()
2001 if (ctrl_config->scl.i3c == 0U) { in mcux_i3c_init()
2002 ctrl_config->scl.i3c = ctrl_config_hal.baudRate_Hz.i3cPushPullBaud; in mcux_i3c_init()
2006 ctrl_config->is_secondary = false; in mcux_i3c_init()
2009 ctrl_config->supported_hdr = 0U; in mcux_i3c_init()
2011 ret = mcux_i3c_configure(dev, I3C_CONFIG_CONTROLLER, ctrl_config); in mcux_i3c_init()
[all …]
Di3c_npcx.c1073 } else if ((data->common.ctrl_config.supported_hdr & I3C_MSG_HDR_DDR) && in npcx_i3c_transfer()
1088 __func__, dev->name, data->common.ctrl_config.supported_hdr, in npcx_i3c_transfer()
1893 struct i3c_config_controller *ctrl_config = &data->common.ctrl_config; in npcx_i3c_freq_init() local
1894 uint32_t scl_pp = ctrl_config->scl.i3c; in npcx_i3c_freq_init()
1912 LOG_DBG("hdr: %d", ctrl_config->supported_hdr); in npcx_i3c_freq_init()
2014 (void)memcpy(&dev_data->common.ctrl_config, cntlr_cfg, sizeof(*cntlr_cfg)); in npcx_i3c_configure()
2032 (void)memcpy(config, &data->common.ctrl_config, sizeof(data->common.ctrl_config)); in npcx_i3c_config_get()
2041 struct i3c_config_controller *ctrl_config = &data->common.ctrl_config; in npcx_i3c_init() local
2083 ctrl_config->is_secondary = false; /* Currently can only act as primary controller. */ in npcx_i3c_init()
2084 ctrl_config->supported_hdr = I3C_MSG_HDR_DDR; /* HDR-DDR mode is supported. */ in npcx_i3c_init()
[all …]
/Zephyr-Core-3.7.0/include/zephyr/drivers/
Di3c.h1195 struct i3c_config_controller ctrl_config; member