habanalabs: support multiple types of firmwares
authorOded Gabbay <ogabbay@kernel.org>
Thu, 1 Oct 2020 10:46:37 +0000 (13:46 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 30 Nov 2020 08:47:27 +0000 (10:47 +0200)
commit596553dbf9b2354c87eca5d96d96c09eb84b80e4
tree9cc3c561e49cd30c6940532b37807385b6cc8dee
parent28958207e9187da6171f3a418464a47216e0f3e2
habanalabs: support multiple types of firmwares

The driver now loads the firmware in two stages. For debugging purposes
we need to support situations where only the first stage firmware is
loaded.

Therefore, use a bitmask to determine which F/W is loaded

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/firmware_if.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/habanalabs_drv.c