arm: imx8: factor out uart init code
authorAnatolij Gustschin <agust@denx.de>
Wed, 12 Jun 2019 11:35:25 +0000 (13:35 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 19 Jul 2019 18:14:50 +0000 (20:14 +0200)
commit64b5f469756f915cd223a0d8e807cb542a52666c
tree3d4733e112ddd1711ba612bb9fce099a000369eb
parentfcc79eee14205e4f786f5020ea18d9cc123da971
arm: imx8: factor out uart init code

New imx8 boards started adding duplicated UART init code.
Factor out this to common function sc_pm_setup_uart().

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
arch/arm/include/asm/arch-imx8/sys_proto.h
arch/arm/mach-imx/imx8/Makefile
arch/arm/mach-imx/imx8/misc.c [new file with mode: 0644]
board/freescale/imx8qm_mek/imx8qm_mek.c
board/freescale/imx8qxp_mek/imx8qxp_mek.c
board/toradex/apalis-imx8/apalis-imx8.c
board/toradex/colibri-imx8x/colibri-imx8x.c