From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 13 Aug 2015 09:18:58 -0400 Subject: [U-Boot] [U-Boot, 11/12] sniper: Power off when the power on reason is not a valid one In-Reply-To: <1437398238-27912-12-git-send-email-contact@paulk.fr> References: <1437398238-27912-12-git-send-email-contact@paulk.fr> Message-ID: <20150813131858.GG25532@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Jul 20, 2015 at 03:17:17PM +0200, Paul Kocialkowski wrote: > In most cases, userspace will attempt to power off the device with HALT instead > of POWER_OFF, which triggers a reset instead of a proper power off from the > TWL4030. Hence, it is up to the bootloader to actually turn the device off when > there is no reason to turn it on. > > A reboot identified with the OMAP reboot mode bits set is acceptable, as well as > a power on reason from either the power button, USB or charger plug. > > Other cases should trigger a power off. Note that for the U-Boot reset command > to take effect, we have to fill-in the OMAP reboot bits. > > Signed-off-by: Paul Kocialkowski > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: