Commit dc091458 authored by H. Nikolaus Schaller's avatar H. Nikolaus Schaller

board/lc15: connect the poweroff command with the palmas poweroff function

Signed-off-by: default avatarH. Nikolaus Schaller <hns@goldelico.com>
parent bab7afa9
......@@ -297,6 +297,13 @@ int board_mmc_init(bd_t *bis)
return 0;
}
int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
{
twl603x_poweroff(false);
printf ("failed to power down\n");
return (0);
}
/* SPL only code */
#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_OS_BOOT)
......
......@@ -45,4 +45,5 @@
#define CONFIG_SYS_SCSI_MAX_DEVICE (CONFIG_SYS_SCSI_MAX_SCSI_ID * \
CONFIG_SYS_SCSI_MAX_LUN)
#define CONFIG_CMD_POWEROFF 1
#endif /* __CONFIG_LETUX_CORTEX15_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment