Merge tag 'lsk-v3.10-15.10-android'
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / midgard / platform / vexpress_1xv7_a57 / mali_kbase_config_platform.h
1 /*
2  *
3  * (C) COPYRIGHT 2014-2015 ARM Limited. All rights reserved.
4  *
5  * This program is free software and is provided to you under the terms of the
6  * GNU General Public License version 2 as published by the Free Software
7  * Foundation, and any use by you of this program is subject to the terms
8  * of such GNU licence.
9  *
10  * A copy of the licence is included with the program, and can also be obtained
11  * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
12  * Boston, MA  02110-1301, USA.
13  *
14  */
15
16
17
18 /**
19  * Maximum frequency GPU will be clocked at. Given in kHz.
20  * This must be specified as there is no default value.
21  *
22  * Attached value: number in kHz
23  * Default value: NA
24  */
25 #define GPU_FREQ_KHZ_MAX 5000
26 /**
27  * Minimum frequency GPU will be clocked at. Given in kHz.
28  * This must be specified as there is no default value.
29  *
30  * Attached value: number in kHz
31  * Default value: NA
32  */
33 #define GPU_FREQ_KHZ_MIN 5000
34
35 /**
36  * CPU_SPEED_FUNC - A pointer to a function that calculates the CPU clock
37  *
38  * CPU clock speed of the platform is in MHz - see kbase_cpu_clk_speed_func
39  * for the function prototype.
40  *
41  * Attached value: A kbase_cpu_clk_speed_func.
42  * Default Value:  NA
43  */
44 #define CPU_SPEED_FUNC (&kbase_cpuprops_get_default_clock_speed)
45
46 /**
47  * GPU_SPEED_FUNC - A pointer to a function that calculates the GPU clock
48  *
49  * GPU clock speed of the platform in MHz - see kbase_gpu_clk_speed_func
50  * for the function prototype.
51  *
52  * Attached value: A kbase_gpu_clk_speed_func.
53  * Default Value:  NA
54  */
55 #define GPU_SPEED_FUNC (NULL)
56
57 /**
58  * Power management configuration
59  *
60  * Attached value: pointer to @ref kbase_pm_callback_conf
61  * Default value: See @ref kbase_pm_callback_conf
62  */
63 #define POWER_MANAGEMENT_CALLBACKS (&pm_callbacks)
64
65 /**
66  * Platform specific configuration functions
67  *
68  * Attached value: pointer to @ref kbase_platform_funcs_conf
69  * Default value: See @ref kbase_platform_funcs_conf
70  */
71 #define PLATFORM_FUNCS (NULL)
72
73 /** Power model for IPA
74  *
75  * Attached value: pointer to @ref mali_pa_model_ops
76  */
77 #define POWER_MODEL_CALLBACKS (NULL)
78
79 /**
80  * Secure mode switch
81  *
82  * Attached value: pointer to @ref kbase_secure_ops
83  */
84 #define SECURE_CALLBACKS (NULL)
85
86 extern struct kbase_pm_callback_conf pm_callbacks;