Searched refs:ppbaud (Results 1 – 1 of 1) sorted by relevance
| /linux/drivers/i3c/master/ |
| H A D | svc-i3c-master.c | 695 u32 ppbaud, odbaud, odhpp, mconfig; in svc_i3c_master_set_speed() local 719 ppbaud = FIELD_GET(GENMASK(11, 8), mconfig); in svc_i3c_master_set_speed() 721 odbaud = DIV_ROUND_UP(fclk_rate, bus->scl_rate.i2c * (2 + 2 * ppbaud)) - 1; in svc_i3c_master_set_speed() 745 u32 ppbaud, pplow, odhpp, odbaud, odstop, i2cbaud, reg; in svc_i3c_master_bus_init() local 772 ppbaud = DIV_ROUND_UP(fclk_rate / 2, i3c_scl_rate) - 1; in svc_i3c_master_bus_init() 781 high_period_ns = (ppbaud + 1) * fclk_period_ns; in svc_i3c_master_bus_init() 782 odbaud = DIV_ROUND_UP(fclk_rate, SVC_I3C_QUICK_I2C_CLK * (1 + ppbaud)) - 2; in svc_i3c_master_bus_init() 801 if (ppbaud > SVC_I3C_PPBAUD_MAX) { in svc_i3c_master_bus_init() 802 ppbaud = SVC_I3C_PPBAUD_MAX; in svc_i3c_master_bus_init() 803 pplow = DIV_ROUND_UP(fclk_rate, i3c_scl_rate) - (2 + 2 * ppbaud); in svc_i3c_master_bus_init() [all …]
|