blob: 41f4dabece15d2dea03d92d5b6ffe16f55098f9f (
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
35
36
37
38
39
40
41
42
43
44
45
46
|
/* This file is part of the coreboot project. */
/*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#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
|