Commit 1402170
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>1 parent c3496e0 commit 1402170
File tree
3 files changed
+29
-8
lines changed- zephyr/program/framework
- include
- src
3 files changed
+29
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
644 | 653 | | |
645 | 654 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
66 | | - | |
67 | | - | |
68 | 65 | | |
69 | 66 | | |
70 | 67 | | |
| |||
121 | 118 | | |
122 | 119 | | |
123 | 120 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | 121 | | |
129 | 122 | | |
130 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
457 | 476 | | |
458 | 477 | | |
459 | 478 | | |
| |||
0 commit comments