mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 14:23:49 +01:00
With the current dependency on only DRM, a config of
CONFIG_DRM_ACCEL_ROCKET=y
is possible, but of course wrong, because without DRM_ACCEL the build-
system will never even enter drivers/accel/* .
So depend on DRM_ACCEL instead of just DRM.
Fixes: ed98261b41 ("accel/rocket: Add a new driver for Rockchip's NPU")
Signed-off-by: Heiko Stuebner <[email protected]>
Signed-off-by: Tomeu Vizoso <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
25 lines
781 B
Plaintext
25 lines
781 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
config DRM_ACCEL_ROCKET
|
|
tristate "Rocket (support for Rockchip NPUs)"
|
|
depends on DRM_ACCEL
|
|
depends on (ARCH_ROCKCHIP && ARM64) || COMPILE_TEST
|
|
depends on ROCKCHIP_IOMMU || COMPILE_TEST
|
|
depends on MMU
|
|
select DRM_SCHED
|
|
select DRM_GEM_SHMEM_HELPER
|
|
help
|
|
Choose this option if you have a Rockchip SoC that contains a
|
|
compatible Neural Processing Unit (NPU), such as the RK3588. Called by
|
|
Rockchip either RKNN or RKNPU, it accelerates inference of neural
|
|
networks.
|
|
|
|
The interface exposed to userspace is described in
|
|
include/uapi/drm/rocket_accel.h and is used by the Rocket userspace
|
|
driver in Mesa3D.
|
|
|
|
If unsure, say N.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called rocket.
|