]> git.baikalelectronics.ru Git - uboot.git/commit
sunxi: Avoid duplicate reset_cpu with SYSRESET enabled
authorSamuel Holland <samuel@sholland.org>
Thu, 4 Nov 2021 03:55:15 +0000 (22:55 -0500)
committerStefan Roese <sr@denx.de>
Thu, 4 Nov 2021 07:57:19 +0000 (08:57 +0100)
commitebcbf27328dd3968f75e6212be4acc7751735274
tree16ced77068fe2b5e80b446b7a956c449280b6fe0
parent071c3565614fa754992ab1d1a85292c1c6774de7
sunxi: Avoid duplicate reset_cpu with SYSRESET enabled

The sysreset uclass unconditionally provides a definition of the
reset_cpu() function. So does the sunxi board code. Fix the build with
SYSRESET enabled by omitting the function from the board code in that
case. The code still needs to be kept around for use in SPL.

Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/mach-sunxi/board.c