| xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame] | 1 | config 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 | |
| 9 | config 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 | |
| 19 | config 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 | |
| 28 | config 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 | |
| 36 | config MTK_GED_SUPPORT |
| 37 | bool "Support MTK GED" |
| 38 | default n |
| 39 | |
| 40 | choice |
| 41 | prompt "GPU_VERSION" |
| 42 | optional |
| 43 | |
| 44 | config GPU_VERSION_MALI_MIDGARD_R26P0 |
| 45 | bool "MIDGARD_R26P0" |
| 46 | select MALI_MIDGARD |
| 47 | |
| 48 | config GPU_VERSION_IMG_M1_10ED5173305 |
| 49 | bool "IMG_M1_10ED5173305" |
| 50 | |
| 51 | endchoice |
| 52 | |
| 53 | if GPU_VERSION_MALI_MIDGARD_R26P0 |
| 54 | source "drivers/gpu/mediatek/gpu_mali/midgard-r26p0/drivers/gpu/arm/midgard/Kconfig" |
| 55 | endif |