]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/cmd_boot.c
cmd_boot: Add a poweroff command
[people/ms/u-boot.git] / common / cmd_boot.c
index 8f2e0701b540387b01906d26b622d3a239580b2d..72f2cf362d46eeb84113cd4d96942c376549c417 100644 (file)
@@ -61,3 +61,11 @@ U_BOOT_CMD(
        "Perform RESET of the CPU",
        ""
 );
+
+#ifdef CONFIG_CMD_POWEROFF
+U_BOOT_CMD(
+       poweroff, 1, 0, do_poweroff,
+       "Perform POWEROFF of the device",
+       ""
+);
+#endif