summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/include/hl_boot_if.h
blob: 4cd04c0902853312cd7c729226fe0191fe2665d9 (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
/* SPDX-License-Identifier: GPL-2.0
 *
 * Copyright 2018 HabanaLabs, Ltd.
 * All Rights Reserved.
 *
 */

#ifndef HL_BOOT_IF_H
#define HL_BOOT_IF_H

enum cpu_boot_status {
	CPU_BOOT_STATUS_NA = 0,		/* Default value after reset of chip */
	CPU_BOOT_STATUS_IN_WFE,
	CPU_BOOT_STATUS_DRAM_RDY,
	CPU_BOOT_STATUS_SRAM_AVAIL,
	CPU_BOOT_STATUS_IN_BTL,		/* BTL is H/W FSM */
	CPU_BOOT_STATUS_IN_PREBOOT,
	CPU_BOOT_STATUS_IN_SPL,
	CPU_BOOT_STATUS_IN_UBOOT,
	CPU_BOOT_STATUS_DRAM_INIT_FAIL,
	CPU_BOOT_STATUS_FIT_CORRUPTED,
	CPU_BOOT_STATUS_UBOOT_NOT_READY,
};

enum kmd_msg {
	KMD_MSG_NA = 0,
	KMD_MSG_GOTO_WFE,
	KMD_MSG_FIT_RDY
};

#endif /* HL_BOOT_IF_H */