Commit 0d5c246
zephyr: ap_pwrseq: add more power event notifications
Flag CONFIG_PLATFORM_EC_CHIPSET_RESUME_INIT_HOOK is used to
enable AP power sequencing resume init and suspend complete callbacks.
These are usually used to initialize/disable the SPI driver, which goes
to sleep on suspend. Require to initialize it first such that it can
receive a host resume event, that notifies the normal resume callback.
Add following power event notifications:
AP_POWER_RESUME_INIT
AP_POWER_SUSPEND_COMPLETE
AP_POWER_HARD_OFF
BUG=b:201000950
BRANCH=none
TEST=zmake configure -b nivviks --clobber
On AP, "shutdown -h now", enter G3
On EC, "apshutdown", enter G3
Signed-off-by: Li Feng <li1.feng@intel.com>
Change-Id: I9413735de1c50fcea6ee1e7fc97de91e125bbafc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3537389
Reviewed-by: Andrew McRae <amcrae@google.com>1 parent 1bb6bb5 commit 0d5c246
1 file changed
Lines changed: 24 additions & 8 deletions
Lines changed: 24 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
| 227 | + | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| |||
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
253 | | - | |
| 254 | + | |
254 | 255 | | |
255 | 256 | | |
256 | 257 | | |
| |||
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
284 | 290 | | |
285 | 291 | | |
286 | 292 | | |
| |||
297 | 303 | | |
298 | 304 | | |
299 | 305 | | |
300 | | - | |
| 306 | + | |
301 | 307 | | |
302 | | - | |
303 | | - | |
304 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
305 | 317 | | |
306 | 318 | | |
307 | 319 | | |
| |||
312 | 324 | | |
313 | 325 | | |
314 | 326 | | |
315 | | - | |
| 327 | + | |
316 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
317 | 333 | | |
318 | 334 | | |
319 | 335 | | |
| |||
0 commit comments