From: R Sricharan Date: Mon, 12 Mar 2012 17:55:52 +0530 Subject: [U-Boot] [PATCH V3 19/19] OMAP5: reset: Use cold reset in case of 5430ES1.0 In-Reply-To: <1331555152-28911-1-git-send-email-r.sricharan@ti.com> References: <1331555152-28911-1-git-send-email-r.sricharan@ti.com> Message-ID: <1331555152-28911-20-git-send-email-r.sricharan@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Warm reset is not functional in case of omap5430ES1.0. So override the weak reset_cpu function to use cold reset instead. Signed-off-by: R Sricharan --- [v2] Addressed Tom's comments [v3] Addressed Nishant's comments arch/arm/cpu/armv7/omap5/hwinit.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv7/omap5/hwinit.c b/arch/arm/cpu/armv7/omap5/hwinit.c index 7da7075..d01cc81 100644 --- a/arch/arm/cpu/armv7/omap5/hwinit.c +++ b/arch/arm/cpu/armv7/omap5/hwinit.c @@ -160,3 +160,17 @@ void init_omap_revision(void) *omap_si_rev = OMAP5430_SILICON_ID_INVALID; } } + +void reset_cpu(ulong ignored) +{ + u32 omap_rev = omap_revision(); + + /* + * WARM reset is not functional in case of OMAP5430 ES1.0 soc. + * So use cold reset in case instead. + */ + if (omap_rev == OMAP5430_ES1_0) + writel(PRM_RSTCTRL_RESET << 0x1, PRM_RSTCTRL); + else + writel(PRM_RSTCTRL_RESET, PRM_RSTCTRL); +} -- 1.7.1