]> git.baikalelectronics.ru Git - uboot.git/commit
ARM: imx8mm: verdin-imx8mm: Rework board_early_init()
authorMarek Vasut <marex@denx.de>
Fri, 8 Apr 2022 00:15:00 +0000 (02:15 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 12 Apr 2022 17:10:44 +0000 (19:10 +0200)
commitbb573cba14851d022c1583837e4e6a2fa4e5229a
tree407faf3cf2d9a50d39a8caa33bf0ea51a006a914
parentcbc727c509122f4c5697f8361809dcf2edcaa8bd
ARM: imx8mm: verdin-imx8mm: Rework board_early_init()

Rename board_early_init_f() to board_early_init(), since this function
has nothing to do with actual board_early_init_f() as used throughout
U-Boot. The board_early_init() is function local to this board used to
configure UART and WDT pinmux. Wrap init_uart_clk() into this function
so that early UART init would be all in one place. Turn the function
into __weak one, so it could be overridden in case custom carrier board
uses different UART or needs custom IOMUX settings.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@denx.de>
Cc: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Cc: Max Krummenacher <max.krummenacher@toradex.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
board/toradex/verdin-imx8mm/spl.c