MLK-21445 serial: fsl_lpuart: do HW reset for communication port
authorFugang Duan <fugang.duan@nxp.com>
Fri, 12 Apr 2019 10:06:29 +0000 (18:06 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 2 May 2019 08:35:32 +0000 (11:35 +0300)
commit982982debc1bb5c82e75912ab93af177e212483c
tree6e76ffdee2bd69f3933f8fa8b3f7ee8979f29a92
parentae08768a40cad980e913bd5f6fe0996ba3165553
MLK-21445 serial: fsl_lpuart: do HW reset for communication port

Do HW reset for communication port after the port is registered
if the UART controller support the feature.

Do partition reset with LPUART's power on, LPUART registers will
keep the previous status, like on i.MX8QM platform,  which is not
expected action, so reset the HW is required.

Currently, only i.MX7ULP and i.MX8QM LPUART controllers include
global register that support HW reset.

Tested-by: Robin Gong <yibin.gong@nxp.com>
Tested-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit c2bc1f62ec28981462c9cb5ceac17134931ca19f)
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com>
(cherry picked from commit 9f396f540093402317c3c1b9a8fe955b91c89164)
drivers/tty/serial/fsl_lpuart.c