Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/serial/
H A Dserial_mtk.c62 u32 quot, samplecount, realbaud; in _mtk_serial_setbrg() local
79 samplecount = DIV_ROUND_CLOSEST(priv->clock, in _mtk_serial_setbrg()
81 if (samplecount != 0) { in _mtk_serial_setbrg()
82 realbaud = priv->clock / samplecount / quot; in _mtk_serial_setbrg()
122 writel(samplecount - 1, &priv->regs->sample_count); in _mtk_serial_setbrg()
123 writel((samplecount - 2) >> 1, &priv->regs->sample_point); in _mtk_serial_setbrg()