common: add command power off - to switch off the device by command
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Mon, 9 Jun 2014 06:25:09 +0000 (08:25 +0200)
committerLukasz Majewski <l.majewski@samsung.com>
Thu, 30 Oct 2014 08:27:14 +0000 (09:27 +0100)
commitd11dcb975807aee28b62098c99800a3d40834955
tree0f4c8d9a5107559efc6491b064e253ca1aba82b0
parentadbd4e3b4c0c66d8637584d62a242375910b1c68
common: add command power off - to switch off the device by command

This change introduces new config:
- CONFIG_CMD_POWEROFF - which enables common/cmd_poweroff.c

This requires implementation of function board_poweroff() which
is yet declared in include/common.h

Implementation of board_poweroff() should:
1.a. turn off the device
     or
1.b. print info to user about turn off ability
2.   never back to caller

Usage is simple: "power off"

Change-Id: Ia5fe73250e2ac29d0868b80bcd867bae2aa8d5be
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
common/Makefile
common/cmd_poweroff.c [new file with mode: 0644]