Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03139b74 authored by Jilai Wang's avatar Jilai Wang
Browse files

msm:npu: Add npu virtualization support



This is initial driver change to support npu virtualization.

Change-Id: I8e5070cc3d3b9cd3a1d15d00deeef9700f6428ec
Signed-off-by: default avatarJilai Wang <jilaiw@codeaurora.org>
parent f2a1ad8d
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -9,3 +9,10 @@ config MSM_NPU
	  This module serves as the common driver
	  This module serves as the common driver
	  for npu which provides acceleration for neural
	  for npu which provides acceleration for neural
	  network processing.
	  network processing.

config VIRTIO_NPU
	tristate "Virtio MSM Neural Processing Unit support"
	depends on VIRTIO && MSM_NPU
	help
	  This is the virtual frontend driver for Neural Processing Unit
	  based on virtio. Say Y if you want to support virtual NPU.
+6 −1
Original line number Original line Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
# SPDX-License-Identifier: GPL-2.0-only


obj-$(CONFIG_MSM_NPU)      := msm_npu.o
ifneq ($(CONFIG_VIRTIO_NPU),)
obj-$(CONFIG_VIRTIO_NPU) := virtio_npu.o
else
msm_npu-objs := npu_dbg.o \
msm_npu-objs := npu_dbg.o \
                npu_dev.o \
                npu_dev.o \
                npu_debugfs.o \
                npu_debugfs.o \
                npu_host_ipc.o \
                npu_host_ipc.o \
                npu_hw_access.o \
                npu_hw_access.o \
                npu_mgr.o
                npu_mgr.o

obj-$(CONFIG_MSM_NPU) := msm_npu.o
endif