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

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

parent bab7afa9
Loading
Loading
Loading
Loading
+7 −0
Changes for board/goldelico/letux-cortex15/lc15.c: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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)

+1 −0
Changes for include/configs/letux_cortex15.h: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -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 */