summaryrefslogtreecommitdiff
path: root/drivers/serial/serial_pl01x.c
diff options
context:
space:
mode:
authorVikas Manocha <vikas.manocha@st.com>2014-11-21 10:34:19 -0800
committerTom Rini <trini@ti.com>2014-12-08 09:35:44 -0500
commita7deea691c5e85bdf8bc456dd41d5aadc1e49450 (patch)
treeb8a8d7f52252c66477fdfc108d745d45c967c104 /drivers/serial/serial_pl01x.c
parentb3ef791cebfa8c7469fc2923ee5de7905cb554cf (diff)
downloadu-boot-imx-a7deea691c5e85bdf8bc456dd41d5aadc1e49450.zip
u-boot-imx-a7deea691c5e85bdf8bc456dd41d5aadc1e49450.tar.gz
u-boot-imx-a7deea691c5e85bdf8bc456dd41d5aadc1e49450.tar.bz2
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>
Diffstat (limited to 'drivers/serial/serial_pl01x.c')
-rw-r--r--drivers/serial/serial_pl01x.c2
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);
}
/*