]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: fsl_lpuart: do software reset for imx7ulp and imx8qxp
authorFugang Duan <fugang.duan@nxp.com>
Mon, 23 Aug 2021 09:18:01 +0000 (17:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Aug 2021 12:49:20 +0000 (14:49 +0200)
commit81a1b55311f44c2a813ce6dc0cd43230ec7ab7fe
treec8fff9493a3ac50b54c03f57b8a3384f98075659
parente41c38b16df34439dd926f16523a9c96e5503626
tty: serial: fsl_lpuart: do software reset for imx7ulp and imx8qxp

Do software reset for communication port on imx7ulp and imx8qxp 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.MX8QXP platform, which is not
expected action, so need to set the RST bit of GLOBAL register to reset
all uart internal logic and registers.

Currently, only i.MX7ULP and i.MX8QXP LPUART controllers include
global register that support the software reset.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Link: https://lore.kernel.org/r/20210823091801.17447-1-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c