Commit bdc3c69
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)
(cherry picked from commit 2cb64403c5dcdf8c32a20afceecb7d9d74514f99)1 parent 03829d6 commit bdc3c69
3 files changed
Lines changed: 30 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
461 | 471 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
| 71 | + | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
77 | | - | |
78 | | - | |
79 | 76 | | |
80 | 77 | | |
81 | 78 | | |
| |||
234 | 231 | | |
235 | 232 | | |
236 | 233 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | 234 | | |
242 | 235 | | |
243 | 236 | | |
| |||
| 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