OSDN Git Service

habanalabs: get clk is common function
authorOded Gabbay <ogabbay@kernel.org>
Sat, 8 Jan 2022 19:40:06 +0000 (21:40 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 28 Feb 2022 12:22:01 +0000 (14:22 +0200)
commit9e2884ce989aa3c6e5a6c69b83664376cd2d98fd
tree1f10a9de15f07c8dae2576464fc3ae1e5081c798
parentbfbe9cbedd41402e3be3c5189a6b82933a5cd76d
habanalabs: get clk is common function

Retrieving the clock from the f/w is done exactly the same in ALL our
ASICs. Therefore, no real justification for doing it as an
ASIC-specific function.

The only thing is we need to check if we are running on simulator,
which doesn't require ASIC-specific callback.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/habanalabs_ioctl.c
drivers/misc/habanalabs/common/hwmgr.c
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c