From mboxrd@z Thu Jan 1 00:00:00 1970 From: ujhelyi.m@gmail.com Subject: [PATCH] am33xx-restart: trigger warm reset on omap2+ boards Date: Mon, 5 Aug 2013 12:02:24 +0200 Message-ID: <1375696944-13380-1-git-send-email-ujhelyi.m@gmail.com> Return-path: Received: from mail-bk0-f51.google.com ([209.85.214.51]:38545 "EHLO mail-bk0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754068Ab3HEKCq (ORCPT ); Mon, 5 Aug 2013 06:02:46 -0400 Received: by mail-bk0-f51.google.com with SMTP id ji2so883228bkc.38 for ; Mon, 05 Aug 2013 03:02:45 -0700 (PDT) Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: tony@atomide.com, linux@arm.linux.org.uk Cc: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, ujhelyi.m@gmail.com From: Matus Ujhelyi Currently the cold reset was triggered. It happened due to oposite offsets of cold/warm flags in PRM_RSTST and PRM_RSTCTRL registers. Signed-off-by: Matus Ujhelyi --- arch/arm/mach-omap2/am33xx-restart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/am33xx-restart.c b/arch/arm/mach-omap2/am33xx-restart.c index 1eae962..c88d8df7 100644 --- a/arch/arm/mach-omap2/am33xx-restart.c +++ b/arch/arm/mach-omap2/am33xx-restart.c @@ -24,8 +24,8 @@ void am33xx_restart(enum reboot_mode mode, const char *cmd) { /* TODO: Handle mode and cmd if necessary */ - am33xx_prm_rmw_reg_bits(AM33XX_GLOBAL_WARM_SW_RST_MASK, - AM33XX_GLOBAL_WARM_SW_RST_MASK, + am33xx_prm_rmw_reg_bits(AM33XX_RST_GLOBAL_WARM_SW_MASK, + AM33XX_RST_GLOBAL_WARM_SW_MASK, AM33XX_PRM_DEVICE_MOD, AM33XX_PRM_RSTCTRL_OFFSET); -- 1.7.9.5