]> git.baikalelectronics.ru Git - uboot.git/commit
arm: socfpga: arria10: Add save_boot_params()
authorLey Foon Tan <ley.foon.tan@intel.com>
Fri, 6 Mar 2020 08:55:20 +0000 (16:55 +0800)
committerMarek Vasut <marex@denx.de>
Tue, 31 Mar 2020 00:52:38 +0000 (02:52 +0200)
commit927b746442a64f19f6c4b03e2cd11e2c3a5bfb7a
treef47739b14bae8f80c0d9dbf81ccdffec1c14c2e3
parent0f53ef1192c4f5acf988fda1f5a9b1333f043089
arm: socfpga: arria10: Add save_boot_params()

Add save_boot_params() to save reset status value from bootrom.

Bootrom will clear the status register in reset manager and stores the
reset status value in shared memory. Bootrom stores shared data at last
2KB of onchip RAM.

This function save reset status provided by bootrom to rst_mgr_status.
More information about reset status register value can be found in reset
manager register description.

When running in debugger without bootrom, r0 to r3 are random values.
So, skip save the value when r0 is not bootrom shared data address.

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
arch/arm/mach-socfpga/spl_a10.c