summaryrefslogtreecommitdiff
path: root/arch/arm/mach-rockchip/cpu-info.c
diff options
context:
space:
mode:
authorJagan Teki <jagan@amarulasolutions.com>2020-07-21 20:36:02 +0530
committerKever Yang <kever.yang@rock-chips.com>2020-07-22 20:55:13 +0800
commit88132e0a280adc120642f05f140aa77fd7e52611 (patch)
tree2d0f0539c9e302b95c1100e164aec5ca42906a09 /arch/arm/mach-rockchip/cpu-info.c
parentb24405f39b15243dec78dc8c844654204e36d788 (diff)
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>
Diffstat (limited to 'arch/arm/mach-rockchip/cpu-info.c')
-rw-r--r--arch/arm/mach-rockchip/cpu-info.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/arm/mach-rockchip/cpu-info.c b/arch/arm/mach-rockchip/cpu-info.c
index 21ca9dedce..bb5a198039 100644
--- a/arch/arm/mach-rockchip/cpu-info.c
+++ b/arch/arm/mach-rockchip/cpu-info.c
@@ -47,12 +47,6 @@ static char *get_reset_cause(void)
*/
env_set("reset_reason", cause);
- /*
- * Clear glb_rst_st, so we can determine the last reset cause
- * for following resets.
- */
- rk_clrreg(&cru->glb_rst_st, GLB_RST_ST_MASK);
-
return cause;
}