Auto-wake behavior when external power is connected
#6
(11-08-2019, 12:02 PM)xalius Wrote: If I had to guess, I would say it's the PMIC interrupt from the RK808 that notifies the OS of a power management event:

15.2.5.4 INT_STS_MSK_REG2 : Interrupt Status Register #2
Bit 1 PLUG_OUT_INT_IM: Charger plug out event interrupt mask.
1: Mask the interrupt
0: Do not mask the interrupt
Bit 0 PLUG_IN_INT_IM: Charger plug in event interrupt mask
1: Mask the interrupt
0: Do not mask the interruptk

In normal operation you want to handle those to know that a charger is present, in suspend probably those and other PMIC IRQs should be masked.
The question is, where in the software stack is this handled exactly, ATF or Linux?

As far as I can see, it should be done in the RK808 Linux kernel driver.  Haven't had the time to check in detail, but it should be performed in the rk8xx_suspend() and rk8xx_resume() functions.


Messages In This Thread
RE: Auto-wake behavior when external power is connected - by dsimic - 11-05-2020, 02:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinebook Pro on Debian 12 Power Issue u974615 1 234 03-13-2024, 10:46 AM
Last Post: u974615
  Increasing the maximum power draw dsimic 15 19,163 11-21-2022, 03:36 AM
Last Post: bircoph
  Alternative Power supply options gallomimia 13 17,620 11-13-2022, 06:10 PM
Last Post: pineymousepad
  PBP booting but stops at flashing power led jonasd 13 5,140 09-26-2022, 12:17 AM
Last Post: jonasd
  Blinking red light for charger, no power-on bifo 11 13,374 11-30-2021, 01:37 PM
Last Post: wdt
  power on PBP if your keyboard is dead? stozi 0 1,284 11-29-2021, 01:55 PM
Last Post: stozi
  Motherboard malfunction - a possible warning about power supplies mjc 8 6,895 07-28-2021, 01:04 PM
Last Post: mjc
Question External Monitor not Working sciolus 5 4,893 05-05-2021, 02:05 AM
Last Post: aurora.borealis
Question UK Power Supply User 11436 11 17,106 02-09-2021, 12:30 PM
Last Post: dieselnutjob
  Pinebook Pro Dock Power Requirements calinb 9 11,896 12-16-2020, 09:24 AM
Last Post: dsimic

Forum Jump:


Users browsing this thread: 1 Guest(s)