Actions
Issue #2157
openAdd charging mode at poweroff when a cable is plugged
Start date:
11/04/2020
Due date:
% Done:
0%
Estimated time:
Resolution:
Device:
Unknown
Grant:
Type of work:
C programming
Updated by Denis 'GNUtoo' Carikli almost 4 years ago
in sys-reboot.c in kernel_samsung_smdk4412 we have:
static void sec_power_off(void) { [...] /* Check reboot charging */ if (is_cable_attached || (poweroff_try >= 5)) { pr_emerg ("%s: charger connected(%d) or power" "off failed(%d), reboot!\n", __func__, is_cable_attached, poweroff_try); writel(0x0, S5P_INFORM2); /* To enter LP charging */ flush_cache_all(); outer_flush_all(); arch_reset(0, 0); pr_emerg("%s: waiting for reboot\n", __func__); while (1); } [...]
To enable charging while "not booted" we need to implement that in the kernel_replicant_linux too.
Actions