]> git.ipfire.org Git - people/ms/u-boot.git/commit
arm: socfpga: misc: Fix warm reset
authorMarek Vasut <marex@denx.de>
Sun, 12 Jul 2015 13:11:03 +0000 (15:11 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 8 Aug 2015 12:14:08 +0000 (14:14 +0200)
commitef84861b7d3a78c0ba5754e592f5b08026ffbdd1
tree98a499c3fe1040343942c5c6e0d76d843179c494
parent066ad14a22b10b444ed9e89401f6d905164774b0
arm: socfpga: misc: Fix warm reset

Write necessary magic value into the Warm Boot from ON-Chip RAM
group Enable register to enable Warm reset support. Instead of
doing this in the reset_cpu() function, we do it in arch early
init to avoid breaking old kernel code which expects this magic
value to be already written into this register.

This magic is originally excavated from common/spl/spl.c in the
u-boot port from altera, where this value was written just before
the SPL jumped to actual U-Boot in the RAM.

Signed-off-by: Marek Vasut <marex@denx.de>
arch/arm/mach-socfpga/misc.c