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)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 5 Apr 2017 09:57:02 +0000 (18:57 +0900)
commit811bdda79ded959b7630dcb4ac578ae9b55d5de9
treeeb48b44fe2eb2161c839a575e1fcd2059199ea4d
parentd56eb510d183f94332b1f4dbb8ce4562ceaa68f4
common: add command power off - to switch off the device by command

This change introduces new config:
- CONFIG_CMD_POWEROFF - which enables 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"

Changed for v2016.03:
- Relocated from common directory to cmd directory
- Renamed from cmd_poweroff to poweroff

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