summaryrefslogtreecommitdiff
path: root/board/lg
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2017-01-18 08:05:49 +0100
committerTom Rini <trini@konsulko.com>2017-01-20 09:15:19 -0500
commit17fa032671f7981628fe16b30399638842a4b1bb (patch)
tree473870132e1d52495cf5e149aa914f69b7e59709 /board/lg
parent0675f992dbf4a785a05a1baf149c2bce6aa5fe90 (diff)
downloadu-boot-17fa032671f7981628fe16b30399638842a4b1bb.tar.gz
u-boot-17fa032671f7981628fe16b30399638842a4b1bb.tar.bz2
u-boot-17fa032671f7981628fe16b30399638842a4b1bb.zip
serial, ns16550: bugfix: ns16550 fifo not enabled
commit: 65f83802b7a5b "serial: 16550: Add getfcr accessor" breaks u-boot commandline working with long commands sending to the board. Since the above patch, you have to setup the fcr register. For board/archs which enable OF_PLATDATA, the new field fcr in struct ns16550_platdata is not filled with a default value ... This leads in not setting up the uarts fifo, which ends in problems, when you send long commands to u-boots commandline. Detected this issue with automated tbot tests on am335x based shc board. The error does not popup, if you type commands. You need to copy&paste a long command to u-boots commandshell (or send a long command with tbot) Possible boards/plattforms with problems: ./arch/arm/cpu/arm926ejs/lpc32xx/devices.c ./arch/arm/mach-tegra/board.c ./board/overo/overo.c ./board/quipos/cairo/cairo.c ./board/logicpd/omap3som/omap3logic.c ./board/logicpd/zoom1/zoom1.c ./board/timll/devkit8000/devkit8000.c ./board/lg/sniper/sniper.c ./board/ti/beagle/beagle.c ./drivers/serial/serial_rockchip.c Signed-off-by: Heiko Schocher <hs@denx.de> Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Tested-by: Adam Ford <aford173@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/lg')
-rw-r--r--board/lg/sniper/sniper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/lg/sniper/sniper.c b/board/lg/sniper/sniper.c
index 0662449c38..b2b8f8861f 100644
--- a/board/lg/sniper/sniper.c
+++ b/board/lg/sniper/sniper.c
@@ -31,7 +31,8 @@ const omap3_sysinfo sysinfo = {
static const struct ns16550_platdata serial_omap_platdata = {
.base = OMAP34XX_UART3,
.reg_shift = 2,
- .clock = V_NS16550_CLK
+ .clock = V_NS16550_CLK,
+ .fcr = UART_FCR_DEFVAL,
};
U_BOOT_DEVICE(sniper_serial) = {