diff options
author | Vikas Manocha <vikas.manocha@st.com> | 2014-11-21 18:34:19 (GMT) |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-12-08 14:35:44 (GMT) |
commit | a7deea691c5e85bdf8bc456dd41d5aadc1e49450 (patch) | |
tree | b8a8d7f52252c66477fdfc108d745d45c967c104 | |
parent | b3ef791cebfa8c7469fc2923ee5de7905cb554cf (diff) | |
download | u-boot-a7deea691c5e85bdf8bc456dd41d5aadc1e49450.tar.xz |
serial: pl01x: pass pl01x_type to set baudrate
Although we were checking the pl01x type, seems like PL010 type was being
passed by mistake.
Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | drivers/serial/serial_pl01x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c index 38dda91..1860289 100644 --- a/drivers/serial/serial_pl01x.c +++ b/drivers/serial/serial_pl01x.c @@ -201,7 +201,7 @@ static void pl01x_serial_init_baud(int baudrate) base_regs = (struct pl01x_regs *)port[CONFIG_CONS_INDEX]; pl01x_generic_serial_init(base_regs, pl01x_type); - pl01x_generic_setbrg(base_regs, TYPE_PL010, clock, baudrate); + pl01x_generic_setbrg(base_regs, pl01x_type, clock, baudrate); } /* |