https://redmine.replicant.us/https://redmine.replicant.us/favicon.ico?15984615062020-11-04T01:20:20ZReplicantReplicant - Issue #2157: Add charging mode at poweroff when a cable is pluggedhttps://redmine.replicant.us/issues/2157?journal_id=83722020-11-04T01:20:20ZDenis 'GNUtoo' CarikliGNUtoo@cyberdimension.org
<ul></ul><p>in sys-reboot.c in kernel_samsung_smdk4412 we have:<br /><pre>
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);
}
[...]
</pre></p>
<p>To enable charging while "not booted" we need to implement that in the kernel_replicant_linux too.</p> Replicant - Issue #2157: Add charging mode at poweroff when a cable is pluggedhttps://redmine.replicant.us/issues/2157?journal_id=89772021-03-26T20:08:29Z_I3^ RELATIVISM
<ul><li><strong>Type of work</strong> <i>C programming</i> added</li></ul>