1# SPDX-License-Identifier: GPL-2.0 2menu "RKNPU" 3 depends on ARCH_ROCKCHIP 4 5config ROCKCHIP_RKNPU 6 tristate "ROCKCHIP_RKNPU" 7 depends on DRM || DMABUF_HEAPS_ROCKCHIP_CMA_HEAP 8 help 9 rknpu module. 10 11if ROCKCHIP_RKNPU 12 13config ROCKCHIP_RKNPU_DEBUG_FS 14 bool "RKNPU debugfs" 15 depends on DEBUG_FS 16 default y 17 help 18 Enable debugfs to debug RKNPU usage. 19 20config ROCKCHIP_RKNPU_PROC_FS 21 bool "RKNPU procfs" 22 depends on PROC_FS 23 help 24 Enable procfs to debug RKNPU usage. 25 26config ROCKCHIP_RKNPU_FENCE 27 bool "RKNPU fence" 28 depends on SYNC_FILE 29 help 30 Enable fence support for RKNPU. 31 32config ROCKCHIP_RKNPU_SRAM 33 bool "RKNPU SRAM" 34 depends on NO_GKI 35 help 36 Enable RKNPU SRAM support 37 38choice 39 prompt "RKNPU memory manager" 40 default ROCKCHIP_RKNPU_DRM_GEM 41 help 42 Select RKNPU memory manager 43 44config ROCKCHIP_RKNPU_DRM_GEM 45 bool "RKNPU DRM GEM" 46 depends on DRM 47 help 48 Enable RKNPU memory manager by DRM GEM. 49 50config ROCKCHIP_RKNPU_DMA_HEAP 51 bool "RKNPU DMA heap" 52 depends on DMABUF_HEAPS_ROCKCHIP_CMA_HEAP 53 help 54 Enable RKNPU memory manager by DMA Heap. 55 56endchoice 57 58endif 59 60endmenu 61