diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2012-05-29 19:26:41 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-07-07 14:07:34 +0200 |
commit | 702395073fa746f0dcfe6f16f781b4d84645fc40 (patch) | |
tree | 652a81818ad8afb7a9eee7e84c3df5ea6db15c66 /arch/arm/cpu | |
parent | f8b9d1d30ece82abccefac3c860c06f8b7da8fbb (diff) | |
download | u-boot-imx-702395073fa746f0dcfe6f16f781b4d84645fc40.zip u-boot-imx-702395073fa746f0dcfe6f16f781b4d84645fc40.tar.gz u-boot-imx-702395073fa746f0dcfe6f16f781b4d84645fc40.tar.bz2 |
ARM: OMAP3+: Detect reset type
Certain modules are not affected by means of
a warm reset and need not be configured again.
Adding an API to detect the reset reason warm/cold.
This will be used to skip the module configurations
that are retained across a warm reset.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: R Sricharan <r.sricharan@ti.com>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r-- | arch/arm/cpu/armv7/omap-common/reset.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/omap-common/reset.c b/arch/arm/cpu/armv7/omap-common/reset.c index 234e90a..587bb47 100644 --- a/arch/arm/cpu/armv7/omap-common/reset.c +++ b/arch/arm/cpu/armv7/omap-common/reset.c @@ -34,3 +34,8 @@ void __weak reset_cpu(unsigned long ignored) { writel(PRM_RSTCTRL_RESET, PRM_RSTCTRL); } + +u32 __weak warm_reset(void) +{ + return (readl(PRM_RSTST) & PRM_RSTST_WARM_RESET_MASK); +} |