habanalabs: fetch pll frequency from firmware
authorAlon Mizrahi <amizrahi@habana.ai>
Tue, 17 Nov 2020 12:25:14 +0000 (14:25 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 30 Nov 2020 08:47:36 +0000 (10:47 +0200)
commit4147864e8d65a0d57dd8573cf306382653616ac2
treef8f59a4c7267d5cd497d65b5b7b05359a39e236a
parent5c05487f15509320572c13fce8f490fb914cf7d4
habanalabs: fetch pll frequency from firmware

Once firmware security is enabled, driver must fetch pll frequencies
through the firmware message interface instead of reading the registers
directly.

Signed-off-by: Alon Mizrahi <amizrahi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
12 files changed:
drivers/misc/habanalabs/common/firmware_if.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/habanalabs_ioctl.c
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/gaudi/gaudiP.h
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/include/common/cpucp_if.h
drivers/misc/habanalabs/include/common/hl_boot_if.h
drivers/misc/habanalabs/include/gaudi/asic_reg/gaudi_regs.h
drivers/misc/habanalabs/include/gaudi/asic_reg/psoc_hbm_pll_regs.h [deleted file]
drivers/misc/habanalabs/include/gaudi/asic_reg/psoc_pci_pll_regs.h [deleted file]
include/uapi/misc/habanalabs.h