]> git.dujemihanovic.xyz Git - u-boot.git/commit
imx: imx8m*: Remove do_reset from board files
authorClaudius Heine <ch@denx.de>
Wed, 4 Mar 2020 14:23:11 +0000 (15:23 +0100)
committerStefano Babic <sbabic@denx.de>
Fri, 1 May 2020 11:46:22 +0000 (13:46 +0200)
commitb9bb1d06e2623a9e42db72ab269aac615d56a336
tree884f5324e10a5f17c3dc05e91c112bc258954552
parentb46e6cc581b3dcb48cdd96bd5db0c40c86285975
imx: imx8m*: Remove do_reset from board files

Use the `do_reset` implementation of `arch/arm/lib/reset.c` in SPL
instead.  It is very close to what is done here, anyway, and plays
more nicely with the rest of U-Boot than adding a custom `do_reset`
implementation into board files.

`do_reset` from `arch/arm/lib/reset.c` calls `reset_cpu` with 0 as the
addr parameter while the boards are passing WDOG1_BASE_ADDR.  This is
ok because the `reset_cpu` implementation uses WDOG1_BASE_ADDR by
default if 0 is passed in.

Co-Authored-by: Harald Seiler <hws@denx.de>
Signed-off-by: Claudius Heine <ch@denx.de>
Signed-off-by: Harald Seiler <hws@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
board/freescale/imx8mm_evk/spl.c
board/freescale/imx8mn_evk/spl.c
board/freescale/imx8mp_evk/spl.c
board/toradex/verdin-imx8mm/spl.c