Commit 7147d1f
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 da46d46 commit 7147d1f
File tree
3 files changed
+30
-6
lines changed- zephyr/program/framework
- include
- src
3 files changed
+30
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
577 | 587 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
| 73 | + | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
78 | 77 | | |
79 | | - | |
80 | 78 | | |
81 | 79 | | |
82 | 80 | | |
| |||
244 | 242 | | |
245 | 243 | | |
246 | 244 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | 245 | | |
251 | 246 | | |
252 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
509 | 528 | | |
510 | 529 | | |
511 | 530 | | |
| |||
0 commit comments