mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
ODROID-COMMON:Added uSD card reset in poweroff function.
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I081293a937ff264f627db80c528295f0f886869e
(cherry picked from commit 42125fee38)
This commit is contained in:
@@ -201,6 +201,12 @@ static void do_aml_restart(enum reboot_mode reboot_mode, const char *cmd)
|
||||
|
||||
static void do_aml_poweroff(void)
|
||||
{
|
||||
#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
|
||||
if (!board_is_odroidn2())
|
||||
odroidc4_card_reset();
|
||||
else
|
||||
odroidn2_card_reset();
|
||||
#endif
|
||||
/* TODO: Add poweroff capability */
|
||||
__invoke_psci_fn_smc(0x82000042, 1, 0, 0);
|
||||
__invoke_psci_fn_smc(psci_function_id_poweroff,
|
||||
|
||||
Reference in New Issue
Block a user