Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/serial/
H A Dserial_zynq.c51 unsigned int calc_bauderror, bdiv, bgen; in _uart_zynq_serial_setbrg() local
65 bgen = clock / (baud * (bdiv + 1)); in _uart_zynq_serial_setbrg()
66 if (bgen < 2 || bgen > 65535) in _uart_zynq_serial_setbrg()
69 calc_baud = clock / (bgen * (bdiv + 1)); in _uart_zynq_serial_setbrg()
84 writel(bgen, &regs->baud_rate_gen); in _uart_zynq_serial_setbrg()