mirror of
https://github.com/torvalds/linux.git
synced 2026-05-01 21:12:29 -04:00
This patch adds the basic part of Goya's H/W initialization. It adds code that initializes Goya's internal CPU, various registers that are related to internal routing, scrambling, workarounds for H/W bugs, etc. It also initializes Goya's security scheme that prevents the user from abusing Goya to steal data from the host, crash the host, change Goya's F/W, etc. Reviewed-by: Mike Rapoport <rppt@linux.ibm.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
31 lines
613 B
C
31 lines
613 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
|
|
};
|
|
|
|
enum kmd_msg {
|
|
KMD_MSG_NA = 0,
|
|
KMD_MSG_GOTO_WFE,
|
|
KMD_MSG_FIT_RDY
|
|
};
|
|
|
|
#endif /* HL_BOOT_IF_H */
|