Home
last modified time | relevance | path

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

/trusted-firmware-a/plat/imx/imx8qx/
A Dimx8qx_bl31_setup.c105 unsigned int sbr, osr, baud_diff, tmp_osr, tmp_sbr; in lpuart32_serial_setbrg() local
117 tmp_sbr = (rate / (baudrate * tmp_osr)); in lpuart32_serial_setbrg()
118 if (tmp_sbr == 0) in lpuart32_serial_setbrg()
119 tmp_sbr = 1; in lpuart32_serial_setbrg()
122 diff1 = rate / (tmp_osr * tmp_sbr) - baudrate; in lpuart32_serial_setbrg()
123 diff2 = rate / (tmp_osr * (tmp_sbr + 1)); in lpuart32_serial_setbrg()
128 tmp_sbr++; in lpuart32_serial_setbrg()
134 sbr = tmp_sbr; in lpuart32_serial_setbrg()
/trusted-firmware-a/plat/imx/imx8qm/
A Dimx8qm_bl31_setup.c94 unsigned int sbr, osr, baud_diff, tmp_osr, tmp_sbr; in lpuart32_serial_setbrg() local
106 tmp_sbr = (rate / (baudrate * tmp_osr)); in lpuart32_serial_setbrg()
107 if (tmp_sbr == 0) in lpuart32_serial_setbrg()
108 tmp_sbr = 1; in lpuart32_serial_setbrg()
111 diff1 = rate / (tmp_osr * tmp_sbr) - baudrate; in lpuart32_serial_setbrg()
112 diff2 = rate / (tmp_osr * (tmp_sbr + 1)); in lpuart32_serial_setbrg()
117 tmp_sbr++; in lpuart32_serial_setbrg()
123 sbr = tmp_sbr; in lpuart32_serial_setbrg()

Completed in 4 milliseconds