cc2e50fca65cb73bcc60411464bd74931cbfd780
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / t6xx / kbase / Kconfig
1 #
2 # (C) COPYRIGHT 2012-2013 ARM Limited. All rights reserved.
3 #
4 # This program is free software and is provided to you under the terms of the
5 # GNU General Public License version 2 as published by the Free Software
6 # Foundation, and any use by you of this program is subject to the terms
7 # of such GNU licence.
8 #
9 # A copy of the licence is included with the program, and can also be obtained
10 # from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
11 # Boston, MA  02110-1301, USA.
12 #
13 #
14
15
16
17 menuconfig MALI_T6XX
18         tristate "Mali-T6XX support"
19         default n
20         help
21           Enable this option to build support for the ARM Mali-T6XX GPU.
22
23           To compile this driver as a module, choose M here:
24           this will generate a single module, called mali_kbase.
25
26 config MALI_GATOR_SUPPORT
27         bool "Streamline Debug support"
28         depends on MALI_T6XX
29         default n
30         help
31           Adds diagnostic support for use with the ARM Streamline Performance Analyzer.
32           You will need the Gator device driver already loaded before loading this driver when enabling
33           Streamline debug support.
34
35 config MALI_T6XX_DVFS
36         bool "Enable DVFS"
37         depends on MALI_T6XX
38         default n
39         help
40           Choose this option to enable DVFS on MALI T6XX DDK.
41
42 config MALI_T6XX_RT_PM
43         bool "Enable Runtime power management"
44         depends on MALI_T6XX
45         depends on PM_RUNTIME
46         default n
47         help
48           Choose this option to enable runtime power management on MALI T6XX DDK.
49
50 config MALI_T6XX_ENABLE_TRACE
51         bool "Enable kbase tracing"
52         depends on MALI_T6XX
53         default n
54         help
55           Enables tracing in kbase.  Trace log available through
56           the "mali_trace" debugfs file, when the CONFIG_DEBUG_FS is enabled
57
58 config MALI_T6XX_DEBUG_SYS
59         bool "Enable sysfs for mali t6xx"
60         depends on MALI_T6XX && SYSFS
61         default n
62         help
63           Enables sysfs for mali t6xx device. Set/Monitor Mali T6xx Device
64
65 # MALI_EXPERT configuration options
66
67 menuconfig MALI_EXPERT
68         depends on MALI_T6XX
69         bool "Enable Expert Settings"
70         default n
71         help
72           Enabling this option and modifying the default settings may produce a driver with performance or
73           other limitations.
74
75 config MALI_DEBUG_SHADER_SPLIT_FS
76         bool "Allow mapping of shader cores via sysfs"
77         depends on MALI_T6XX && MALI_T6XX_DEBUG_SYS && MALI_EXPERT
78         default n
79         help
80           Select this option to provide a sysfs entry for runtime configuration of shader
81           core affinity masks.
82
83 config MALI_PLATFORM_FAKE
84         tristate "Enable fake platform device support"
85         depends on MALI_T6XX && MALI_EXPERT
86         default n
87         help
88           When you start to work with the Mali-T600 Series device driver the platform-specific code of
89           the Linux kernel for your platform may not be complete. In this situation the kernel device driver
90           supports creating the platform device outside of the Linux platform-specific code.
91           Enable this option if would like to use a platform device configuration from within the device driver.
92
93 choice
94         prompt "Platform configuration"
95         depends on MALI_T6XX && MALI_EXPERT
96         default MALI_PLATFORM_VEXPRESS
97         help
98           Select the SOC platform that contains a Mali-T6XX
99
100 config MALI_PLATFORM_VEXPRESS
101         depends on ARCH_VEXPRESS && (ARCH_VEXPRESS_CA9X4 || ARCH_VEXPRESS_CA15X4)
102         bool "Versatile Express"
103 config MALI_PLATFORM_VEXPRESS_VIRTEX7_40MHZ
104         depends on ARCH_VEXPRESS && (ARCH_VEXPRESS_CA9X4 || ARCH_VEXPRESS_CA15X4)
105         bool "Versatile Express w/Virtex7 @ 40Mhz"
106 config MALI_PLATFORM_GOLDFISH
107         depends on ARCH_GOLDFISH
108         bool "Android Goldfish virtual CPU"
109 config MALI_PLATFORM_PBX
110         depends on ARCH_REALVIEW && REALVIEW_EB_A9MP && MACH_REALVIEW_PBX
111         bool "Realview PBX-A9"
112 config MALI_PLATFORM_THIRDPARTY
113         bool "Third Party Platform"
114 endchoice
115
116 config MALI_PLATFORM_THIRDPARTY_NAME
117         depends on MALI_T6XX && MALI_PLATFORM_THIRDPARTY && MALI_EXPERT
118         string "Third party platform name"
119         help
120           Enter the name of a third party platform that is supported. The third part configuration
121           file must be in kbase/src/linux/config/tpip/mali_kbase_config_xxx.c where xxx is the name
122           specified here.
123
124 config MALI_DEBUG
125         bool "Debug build"
126         depends on MALI_T6XX && MALI_EXPERT
127         default n
128         help
129           Select this option for increased checking and reporting of errors.
130
131 config MALI_NO_MALI
132         bool "No Mali"
133         depends on MALI_T6XX && MALI_EXPERT
134         default n
135         help
136           This can be used to test the driver in a simulated environment
137           whereby the hardware is not physically present. If the hardware is physically
138           present it will not be used. This can be used to test the majority of the
139           driver without needing actual hardware or for software benchmarking.
140           All calls to the simulated hardware will complete immediately as if the hardware
141           completed the task.
142
143 config MALI_ERROR_INJECT
144         bool "Error injection"
145         depends on MALI_T6XX && MALI_EXPERT && MALI_NO_MALI
146         default n
147         help
148           Enables insertion of errors to test module failure and recovery mechanisms.
149
150 config MALI_TRACE_TIMELINE
151         bool "Timeline tracing"
152         depends on MALI_T6XX && MALI_EXPERT
153         default n
154         help
155           Enables timeline tracing through the kernel tracepoint system.
156
157 config MALI_SYSTEM_TRACE
158         bool "Enable system event tracing support"
159         depends on MALI_T6XX && MALI_EXPERT
160         default n
161         help
162           Choose this option to enable system trace events for each
163           kbase event.  This is typically used for debugging but has
164           minimal overhead when not in use. Enable only if you know what
165           you are doing.
166
167 config MALI_GPU_TRACEPOINTS
168         bool "Enable GPU tracepoints"
169         depends on MALI_T6XX && ANDROID
170         select GPU_TRACEPOINTS
171         help
172           Enables GPU tracepoints using Android trace event definitions.
173
174 source "drivers/gpu/arm/t6xx/kbase/src/platform/Kconfig"