]> git.baikalelectronics.ru Git - uboot.git/commit
sunxi: fel: drop redundant "control register" save/restore
authorAndre Przywara <andre.przywara@arm.com>
Wed, 13 Jul 2022 15:27:58 +0000 (16:27 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sat, 21 Jan 2023 01:32:23 +0000 (01:32 +0000)
commit72f480d966ff55a11cad0297202d5b3214714f21
treee521a0f8a7fc38890863b802476f600cf3942f34
parentc0955db20da7097ae43efe850e6f2797d7e60485
sunxi: fel: drop redundant "control register" save/restore

For some reasons shrouded in mystery, the code saving the FEL state was
saving the SCTLR register twice, with the second copy trying to justify
itself by using its ancient "control register" alias name.

Drop the redundant second copy, both from the fel_stash data structure,
and also the code saving and restoring it.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Samuel Holland <samuel@sholland.org>
Tested-by: Samuel Holland <samuel@sholland.org>
arch/arm/cpu/armv7/sunxi/fel_utils.S
arch/arm/mach-sunxi/board.c