diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2020-07-21 20:36:03 +0530 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2020-07-22 20:55:13 +0800 |
commit | e230c579a3f6a325fa1624ed9a3df445096674bb (patch) | |
tree | 1a18bc60e7daab3d10b7eb1c1856728aa58d4ce6 /arch/arm/include | |
parent | 88132e0a280adc120642f05f140aa77fd7e52611 (diff) | |
download | u-boot-e230c579a3f6a325fa1624ed9a3df445096674bb.tar.gz u-boot-e230c579a3f6a325fa1624ed9a3df445096674bb.tar.xz u-boot-e230c579a3f6a325fa1624ed9a3df445096674bb.zip |
rockchip: Separate the reset cause from display cpuinfo
reset cause is a generic functionality based on the soc
cru registers in rockchip. This can be used for printing
the cause of reset in cpuinfo or some other place where
reset cause is needed.
Other than cpuinfo, reset cause can also be using during
bootcount for checking the specific reset cause and glow
the led based on the reset cause.
So, let's separate the reset cause code from cpuinfo, and
add a check to build it for rk3399, rk3288 since these two
soc are supporting reset cause as of now.
Tested-by: Suniel Mahesh <sunil@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/arch-rockchip/cru.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-rockchip/cru.h b/arch/arm/include/asm/arch-rockchip/cru.h index d2057cb738..13ea4aba8e 100644 --- a/arch/arm/include/asm/arch-rockchip/cru.h +++ b/arch/arm/include/asm/arch-rockchip/cru.h @@ -30,4 +30,6 @@ enum { #define MHz 1000000 +char *get_reset_cause(void); + #endif /* _ROCKCHIP_CLOCK_H */ |