]> git.baikalelectronics.ru Git - uboot.git/commit
rockchip: Don't clear the reset status reg
authorJagan Teki <jagan@amarulasolutions.com>
Tue, 21 Jul 2020 15:06:02 +0000 (20:36 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 22 Jul 2020 12:55:13 +0000 (20:55 +0800)
commitf91e56ec638083533c3de818fccf780a62d2be33
tree2d0f0539c9e302b95c1100e164aec5ca42906a09
parent87aa89198b010e8d660ae8809e7213c45595ba31
rockchip: Don't clear the reset status reg

reset reason can be used several stages of U-Boot bootloader
like SPL, U-Boot proper based on the requirements.

Clearing the status register end of get_reset_cause will end
up showing the wrong reset cause when it read the second time.
For example, if board resets, SPL reads the reset status as
RST whereas U-Boot proper reads the status as POR.

However, based on the latest testing clearing reset status
won't be required for determine the last reset cause or
following resets.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/include/asm/arch-rockchip/cru.h
arch/arm/mach-rockchip/cpu-info.c