From: Philipp Tomsich Date: Sat, 05 Aug 2017 00:43:56 +0200 Subject: [U-Boot] [U-Boot, v3] rockchip: rk3288: Add reset reason detection In-Reply-To: <1501760922-14079-1-git-send-email-w.egorov@phytec.de> References: <1501760922-14079-1-git-send-email-w.egorov@phytec.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > Sometimes it's helpful to know the reset reason caused in the SoC. > Add reset reason detection for the RK3288 SoC. > This will set an environment variable which represents the reset reason. > > Signed-off-by: Wadim Egorov > --- > Changes in v3: > - Fixed typo in commit message > - Use enum for CRU_GLB_RST_ST register decoding > > --- > arch/arm/include/asm/arch-rockchip/cru_rk3288.h | 12 +++++++++ > arch/arm/mach-rockchip/rk3288-board.c | 35 +++++++++++++++++++++++++ > 2 files changed, 47 insertions(+) > Acked-by: Philipp Tomsich