2 * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
3 * Przemyslaw Marczak <p.marczak@samsung.com>
7 * SPDX-License-Identifier: GPL-2.0+
14 * Power off the board by simple command
15 * This requires implementation of function board_poweroff() which is declared
18 * Implementation of board_poweroff() should:
19 * 1.a. turn off the device
21 * 1.b. print info to user about turn off ability as it is in few boards
22 * 2. never back to caller
24 int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
29 if (!strcmp("off", argv[1])) {
31 /* This function should not back here */
32 return CMD_RET_SUCCESS;