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