Skip to content
Snippets Groups Projects
Forked from KED Software Projects / Miscellaneous / KED U-Boot Fork
Source project has a limited visibility.
  • Paul Kocialkowski's avatar
    0e14f889
    sniper: Power off when the power on reason is not a valid one · 0e14f889
    Paul Kocialkowski authored
    
    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: default avatarPaul Kocialkowski <contact@paulk.fr>
    Reviewed-by: default avatarTom Rini <trini@konsulko.com>
    0e14f889
    History
    sniper: Power off when the power on reason is not a valid one
    Paul Kocialkowski authored
    
    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: default avatarPaul Kocialkowski <contact@paulk.fr>
    Reviewed-by: default avatarTom Rini <trini@konsulko.com>