diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-07-11 20:29:02 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-07-22 07:44:25 -0400 |
commit | 841977df21e5f2c1276ae5a33cca3ac4fb976ad9 (patch) | |
tree | 0b2f019491eaf2a1331d0df7af1dfdbe7d96df07 /drivers/serial/usbtty.h | |
parent | 8e8d73b4a5ae051ca2de091151677f2d8340c1f6 (diff) | |
download | u-boot-imx-841977df21e5f2c1276ae5a33cca3ac4fb976ad9.zip u-boot-imx-841977df21e5f2c1276ae5a33cca3ac4fb976ad9.tar.gz u-boot-imx-841977df21e5f2c1276ae5a33cca3ac4fb976ad9.tar.bz2 |
serial: ns16550: drop CONFIG_OMAP1610 from the special case
If CONFIG_OMAP1610 is defined, the code returning the fixed value (26)
is enabled. But this case is covered by the following code.
(CONFIG_SYS_NS16550_CLK + (gd->baudrate * (MODE_X_DIV / 2))) /
(MODE_X_DIV * gd->baudrate)
= (48000000 + (115200 * (16 / 2))) / (16 * 115200)
= 48921600 / 1843200
= 26
The "#ifdef CONFIG_OMAP1610" was added by commit 6f21347d more than
ten years ago. In those days, the divide-and-round was not used.
I guess that is why this weird code was added here.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Tom Rini <trini@ti.com>
Cc: Rishi Bhattacharya <rishi@ti.com>
Diffstat (limited to 'drivers/serial/usbtty.h')
0 files changed, 0 insertions, 0 deletions