Home
last modified time | relevance | path

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

/external/arm-trusted-firmware/plat/imx/imx8qx/
Dimx8qx_bl31_setup.c103 unsigned int sbr, osr, baud_diff, tmp_osr, tmp_sbr; in lpuart32_serial_setbrg() local
115 tmp_sbr = (rate / (baudrate * tmp_osr)); in lpuart32_serial_setbrg()
116 if (tmp_sbr == 0) in lpuart32_serial_setbrg()
117 tmp_sbr = 1; in lpuart32_serial_setbrg()
120 diff1 = rate / (tmp_osr * tmp_sbr) - baudrate; in lpuart32_serial_setbrg()
121 diff2 = rate / (tmp_osr * (tmp_sbr + 1)); in lpuart32_serial_setbrg()
126 tmp_sbr++; in lpuart32_serial_setbrg()
132 sbr = tmp_sbr; in lpuart32_serial_setbrg()
/external/arm-trusted-firmware/plat/imx/imx8qm/
Dimx8qm_bl31_setup.c92 unsigned int sbr, osr, baud_diff, tmp_osr, tmp_sbr; in lpuart32_serial_setbrg() local
104 tmp_sbr = (rate / (baudrate * tmp_osr)); in lpuart32_serial_setbrg()
105 if (tmp_sbr == 0) in lpuart32_serial_setbrg()
106 tmp_sbr = 1; in lpuart32_serial_setbrg()
109 diff1 = rate / (tmp_osr * tmp_sbr) - baudrate; in lpuart32_serial_setbrg()
110 diff2 = rate / (tmp_osr * (tmp_sbr + 1)); in lpuart32_serial_setbrg()
115 tmp_sbr++; in lpuart32_serial_setbrg()
121 sbr = tmp_sbr; in lpuart32_serial_setbrg()