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>
This commit is contained in:
parent
b3ef791ceb
commit
a7deea691c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue