blob: d8bebe343b5c8468d6f86b6f050f9d05a614baa1 [file] [log] [blame]
xjb04a4022021-11-25 15:01:52 +08001config MTK_GPU_SUPPORT
2 tristate "Support MTK GPU"
3 help
4 config supports MTK GPU driver
5 CONFIG_MTK_GPU_SUPPORT defines
6 The gpu driver would be built-in, as kernel module or not supported
7 MTK_GPU_VERSION would define the target HW IP
8
9config MTK_GPU_VERSION
10 string "Support MTK GPU Driver Version"
11 default ""
12 help
13 CONFIG_MTK_GPU_VERSION define which gpu ddk version will be used
14 It has three parts
15 1. vendor name
16 2. GPU architecture name
17 3. driver version
18
19config MTK_GPU_COMMON_DVFS_SUPPORT
20 bool "Support GPU VSync-Based DVFS Policy"
21 default n
22 help
23 config supports to enable GPU DVFS policy
24 This enables MTK intenral GPU DVFS governor
25 It is nice method to save power
26 It is recommended to enable it when MTK_GPU_SUPPORT is enabled
27
28config SW_SYNC64
29 bool "Enable SW 64bit sync counter"
30 depends on SW_SYNC
31 help
32 A sync object driver that uses a 64bit counter to coordinate
33 syncrhronization. Useful when there is no hardware
34 primitive backing the synchronization.
35
36config MTK_GED_SUPPORT
37 bool "Support MTK GED"
38 default n
39
40choice
41 prompt "GPU_VERSION"
42 optional
43
44config GPU_VERSION_MALI_MIDGARD_R26P0
45 bool "MIDGARD_R26P0"
46 select MALI_MIDGARD
47
48config GPU_VERSION_IMG_M1_10ED5173305
49 bool "IMG_M1_10ED5173305"
50
51endchoice
52
53if GPU_VERSION_MALI_MIDGARD_R26P0
54source "drivers/gpu/mediatek/gpu_mali/midgard-r26p0/drivers/gpu/arm/midgard/Kconfig"
55endif