blob: d8a7f2a9b5e451b04abdba0890b817e13b5d526d (
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
31
32
33
34
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef _SOC_APOLLOLAKE_HECI_H_
#define _SOC_APOLLOLAKE_HECI_H_
#include <stdint.h>
enum sec_status {
SEC_STATE_RESET = 0,
SEC_STATE_INIT,
SEC_STATE_RECOVERY,
SEC_STATE_UNKNOWN0,
SEC_STATE_UNKNOWN1,
SEC_STATE_NORMAL,
SEC_STATE_DISABLE_WAIT,
SEC_STATE_TRANSITION,
SEC_STATE_INVALID_CPU
};
#define REG_SEC_FW_STS0 0x40
#define MASK_SEC_FIRMWARE_COMPLETE (1 << 9)
#define MASK_SEC_STATUS 0xf
/* Read Firmware Status register */
uint32_t heci_fw_sts(void);
/* Returns true if CSE is in normal status */
bool heci_cse_normal(void);
/* Returns true if CSE is done with whatever it was doing */
bool heci_cse_done(void);
/* Dump CSE state and lockdown HECI1 interface using P2SB message. */
void heci_cse_lockdown(void);
#endif
|