habanalabs: refactor init device cpu code
authorOhad Sharabi <osharabi@habana.ai>
Sun, 11 Apr 2021 20:06:46 +0000 (23:06 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 18 Jun 2021 12:23:38 +0000 (15:23 +0300)
commita22f0ec0731ddf6355e6bf93ded189fca2542cdf
treeec50f663cea71a1fb4658b03067d2eb468b083ec
parent364690429a603ac4a7e8df3c3b98b51c914c7c3f
habanalabs: refactor init device cpu code

Replace multiple arguments to init device CPU function by passing
firmware loader managing structure that is initialized per ASIC with
the loader parameters.

In addition, the FW loader management structure is now part of the
habanalabs device, this way the loader parameters will be able to be
communicated across various boot stages.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/firmware_if.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c