• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0
2  *
3  * Copyright 2018 HabanaLabs, Ltd.
4  * All Rights Reserved.
5  *
6  */
7 
8 #ifndef HL_BOOT_IF_H
9 #define HL_BOOT_IF_H
10 
11 enum cpu_boot_status {
12 	CPU_BOOT_STATUS_NA = 0,		/* Default value after reset of chip */
13 	CPU_BOOT_STATUS_IN_WFE,
14 	CPU_BOOT_STATUS_DRAM_RDY,
15 	CPU_BOOT_STATUS_SRAM_AVAIL,
16 	CPU_BOOT_STATUS_IN_BTL,		/* BTL is H/W FSM */
17 	CPU_BOOT_STATUS_IN_PREBOOT,
18 	CPU_BOOT_STATUS_IN_SPL,
19 	CPU_BOOT_STATUS_IN_UBOOT,
20 	CPU_BOOT_STATUS_DRAM_INIT_FAIL,
21 	CPU_BOOT_STATUS_FIT_CORRUPTED,
22 	CPU_BOOT_STATUS_UBOOT_NOT_READY,
23 };
24 
25 enum kmd_msg {
26 	KMD_MSG_NA = 0,
27 	KMD_MSG_GOTO_WFE,
28 	KMD_MSG_FIT_RDY
29 };
30 
31 #endif /* HL_BOOT_IF_H */
32