Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/peci/
Dpeci_npcx.c75 uint8_t bit_rate_divider; in peci_npcx_configure() local
83 bit_rate_divider = DIV_ROUND_UP(data->peci_src_clk_freq, bitrate * 1000 * 4) - 1; in peci_npcx_configure()
88 bit_rate_divider = CLAMP(bit_rate_divider, PECI_MAX_BIT_RATE_VALID_MIN, in peci_npcx_configure()
91 if (bit_rate_divider < PECI_HIGH_SPEED_MIN_VAL) { in peci_npcx_configure()
96 SET_FIELD(reg->PECI_RATE, NPCX_PECI_RATE_MAX_BIT_RATE, bit_rate_divider); in peci_npcx_configure()