mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 12:25:08 +07:00
0ca3b1b7b9
This patch adds a definition of a new status in the device CPU boot stages and add the handling of the new status. Signed-off-by: Igor Grinberg <igrinberg@habana.ai> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
32 lines
648 B
C
32 lines
648 B
C
/* 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 */
|