Commit 6f1d9c0
fwk: fix power on AC attach requiring OS boot to take effect
Previously, you needed to boot an OS first for the settings to kick in.
So if you remove SSDs, the setting will not kick in.
Add a host command EC_CMD_POWER_ON_AC_ATTACH(0x3E2A) only for power
on AC attach, use for BIOS to notify EC to save it.
BRANCH=fwk-dogwood-27111
BUG=https://app.clickup.com/t/86evbbru9
TEST=1.unplug all SSDs and other storage
2. enable "power on ac attach" f10, save, reboot
3. unplug AC power and wait a few seconds
4. plug AC power can power on
Signed-off-by: johnwc_yeh <JohnWC_Yeh@compal.com>
(cherry picked from commit 1402170)1 parent c8091da commit 6f1d9c0
File tree
3 files changed
+30
-8
lines changed- zephyr/program/framework
- include
- src
3 files changed
+30
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
622 | 632 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
64 | | - | |
65 | | - | |
66 | 63 | | |
67 | 64 | | |
68 | 65 | | |
| |||
117 | 114 | | |
118 | 115 | | |
119 | 116 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | 117 | | |
125 | 118 | | |
126 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
463 | 482 | | |
464 | 483 | | |
465 | 484 | | |
| |||
0 commit comments