提交 4c2fb5fc 编写于 作者: A Adam Ford 提交者: Tom Rini

power: twl4030: Add CONFIG_CMD_POWEROFF support

With the addition of twl4030_power_off(), let's allow the 'poweroff' command
to run this function when CONFIG_CMD_POWEROFF is enabled.

Tested on a DM3730 with twl4030 PMIC.
Signed-off-by: NAdam Ford <aford173@gmail.com>
Reviewed-by: NTom Rini <trini@konsulko.com>
Reviewed-by: NJaehoon Chung <jh80.chung@samsung.com>
上级 15fde737
......@@ -171,3 +171,12 @@ void twl4030_power_mmc_init(int dev_index)
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册