From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bill Pringlemeir Date: Thu, 05 Feb 2015 18:17:47 -0500 Subject: [U-Boot] [PATCH] imx: save reset cause in 'reset_cause' environment variable In-Reply-To: <54D3F954.80701@boundarydevices.com> (Eric Nelson's message of "Thu, 05 Feb 2015 16:14:28 -0700") References: <54D3BB1E.1060409@denx.de> <1423177107-16012-1-git-send-email-eric.nelson@boundarydevices.com> <54D3F790.6060605@boundarydevices.com> <54D3F954.80701@boundarydevices.com> Message-ID: <87vbjgne1w.fsf@nbsps.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 5 Feb 2015, eric.nelson at boundarydevices.com wrote: [snip] > Of course (if we go that route). > > I thought of this when typing up the list of values for the > commit comment. > > The human readable form is harder to handle on the receiving > side though, which is why I favor hex. I also prefer the hex. I have had very weird values in this register. For a normal user, we can guess and display a string. Sometimes in the case of double/triple resets, there can be very strange values. You can get these when DMA goes crazy (because of bad code or otherwise). Fwiw, Bill Pringlemeir.