blob: b2ce4f74e11c656c93450c5b2f0ca04449f04514 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* Copyright 2022 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef __X86_NON_DSX_COMMON_PWRSEQ_SM_HANDLER_H__
#define __X86_NON_DSX_COMMON_PWRSEQ_SM_HANDLER_H__
#include <init.h>
#include <kernel.h>
#include <zephyr/types.h>
#include <ap_power/ap_power.h>
#include <ap_power/ap_power_events.h>
#include <x86_common_pwrseq.h>
#define DT_DRV_COMPAT intel_ap_pwrseq
/* The wait time is ~150 msec, allow for safety margin. */
#define IN_PCH_SLP_SUS_WAIT_TIME_MS 250
enum power_states_ndsx chipset_pwr_sm_run(enum power_states_ndsx curr_state);
void init_chipset_pwr_seq_state(void);
void request_exit_hardoff(bool should_exit);
enum power_states_ndsx pwr_sm_get_state(void);
void apshutdown(void);
extern const char pwrsm_dbg[][25];
#endif /* __X86_NON_DSX_COMMON_PWRSEQ_SM_HANDLER_H__ */
|