From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 20.mo3.mail-out.ovh.net ([178.33.47.94] helo=mo3.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TN280-0005ZI-8q for barebox@lists.infradead.org; Sat, 13 Oct 2012 13:51:44 +0000 Received: from mail632.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo3.mail-out.ovh.net (Postfix) with SMTP id 0984CFF88AC for ; Sat, 13 Oct 2012 16:00:59 +0200 (CEST) From: Jean-Christophe PLAGNIOL-VILLARD Date: Sat, 13 Oct 2012 15:49:20 +0200 Message-Id: <1350136162-22061-2-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <1350136162-22061-1-git-send-email-plagnioj@jcrosoft.com> References: <20121013134622.GM13639@game.jcrosoft.org> <1350136162-22061-1-git-send-email-plagnioj@jcrosoft.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/4] reset_source: add software reset as possible source To: barebox@lists.infradead.org Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/reset_source.c | 1 + include/reset_source.h | 1 + 2 files changed, 2 insertions(+) diff --git a/common/reset_source.c b/common/reset_source.c index ff76857..ec1afc0 100644 --- a/common/reset_source.c +++ b/common/reset_source.c @@ -22,6 +22,7 @@ static const char * const reset_src_names[] = { [RESET_UKWNOWN] = "unknown", [RESET_POWER] = "power", [RESET_RESET] = "reset", + [RESET_SOFTWARE] = "software", [RESET_WATCHDOG] = "watchdog", [RESET_WAKEUP] = "wakeup", [RESET_JTAG] = "jtag", diff --git a/include/reset_source.h b/include/reset_source.h index 1db1f4f..af4246a 100644 --- a/include/reset_source.h +++ b/include/reset_source.h @@ -17,6 +17,7 @@ enum reset_src_type { RESET_UKWNOWN, /* maybe the SoC cannot detect the reset source */ RESET_POWER, /* Power On Reset (cold start) */ RESET_RESET, /* generic ReSeT (warm start) */ + RESET_SOFTWARE, /* software */ RESET_WATCHDOG, /* watchdog */ RESET_WAKEUP, /* wake-up (some SoCs can handle this) */ RESET_JTAG, /* JTAG reset */ -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox