projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge git://git.denx.de/u-boot-usb
[oweals/u-boot.git]
/
drivers
/
power
/
twl4030.c
diff --git
a/drivers/power/twl4030.c
b/drivers/power/twl4030.c
index 8866bf1b19edb4ae4731eabacf434c501435a3d2..ab98d68dfb7e92737833c4ead058991d6dc97ec5 100644
(file)
--- a/
drivers/power/twl4030.c
+++ b/
drivers/power/twl4030.c
@@
-171,3
+171,12
@@
void twl4030_power_mmc_init(int dev_index)
mdelay(100); /* ramp-up delay from Linux code */
}
}
mdelay(100); /* ramp-up delay from Linux code */
}
}
+
+#ifdef CONFIG_CMD_POWEROFF
+int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+{
+ twl4030_power_off();
+
+ return 0;
+}
+#endif