mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
serial: pl01x: disable as per type of pl01x
pl010 & pl011 have different control register offsets, setting it as per the pl01x type. Signed-off-by: Vikas Manocha <vikas.manocha@st.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
d2ca9fd2cd
commit
f7e517b4eb
1 changed files with 4 additions and 3 deletions
|
|
@ -82,13 +82,14 @@ static int pl01x_generic_serial_init(struct pl01x_regs *regs,
|
|||
}
|
||||
#endif
|
||||
|
||||
/* First, disable everything */
|
||||
writel(0, ®s->pl010_cr);
|
||||
|
||||
switch (type) {
|
||||
case TYPE_PL010:
|
||||
/* disable everything */
|
||||
writel(0, ®s->pl010_cr);
|
||||
break;
|
||||
case TYPE_PL011:
|
||||
/* disable everything */
|
||||
writel(0, ®s->pl011_cr);
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue