diff options
author | Ofir Bitton <obitton@habana.ai> | 2020-04-16 13:47:15 +0300 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2020-05-19 14:48:41 +0300 |
commit | 47f6b41cddf8497e19bc7dc46ab2e56aa8e875c9 (patch) | |
tree | 92074eec66168d23ae041b8a6a2391de6270ebbb /drivers/misc/habanalabs/include/hl_boot_if.h | |
parent | 39b425170d35ff0841084007423f1b82f3b3e5ac (diff) |
habanalabs: load CPU device boot loader from host
Load CPU device boot loader during driver boot time in order to avoid flash
write for every boot loader update.
To preserve backward-compatibility, skip the device boot load if the device
doesn't request it.
Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/misc/habanalabs/include/hl_boot_if.h')
-rw-r--r-- | drivers/misc/habanalabs/include/hl_boot_if.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/include/hl_boot_if.h b/drivers/misc/habanalabs/include/hl_boot_if.h index 7106315fc92e..c22d134e73af 100644 --- a/drivers/misc/habanalabs/include/hl_boot_if.h +++ b/drivers/misc/habanalabs/include/hl_boot_if.h @@ -11,6 +11,8 @@ #define LKD_HARD_RESET_MAGIC 0xED7BD694 #define HL_POWER9_HOST_MAGIC 0x1DA30009 +#define BOOT_FIT_SRAM_OFFSET 0x200000 + /* * CPU error bits in BOOT_ERROR registers * @@ -77,6 +79,7 @@ enum cpu_boot_status { CPU_BOOT_STATUS_BMC_WAITING_SKIPPED, /* deprecated - will be removed */ /* Last boot loader progress status, ready to receive commands */ CPU_BOOT_STATUS_READY_TO_BOOT = 15, + CPU_BOOT_STATUS_WAITING_FOR_BOOT_FIT = 16, }; enum kmd_msg { |