992434bec2ff94f8cc6a14eb8e3ab7e7361af571
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / midgard / platform / rk / 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 
20  *      GPU will be clocked at. 
21  * Given in kHz.
22  * This must be specified 
23  *      as there is no default value.
24  *
25  * Attached value: number in kHz
26  * Default value: NA
27  */
28 #define GPU_FREQ_KHZ_MAX (5000)
29
30 /**
31  * Minimum frequency GPU will be clocked at. 
32  * Given in kHz.  
33  * This must be specified 
34  *      as there is no default value.
35  *
36  * Attached value: number in kHz
37  * Default value: NA
38  */
39 #define GPU_FREQ_KHZ_MIN (5000)
40
41 /**
42  * CPU_SPEED_FUNC 
43  *      - A pointer to a function that calculates the CPU clock
44  *
45  * CPU clock speed of the platform is in MHz 
46  * - see kbase_cpu_clk_speed_func 
47  *      for the function prototype.
48  *
49  * Attached value: A kbase_cpu_clk_speed_func.
50  * Default Value:  NA
51  */
52 #define CPU_SPEED_FUNC (NULL)
53
54 /**
55  * GPU_SPEED_FUNC 
56  * - A pointer to a function 
57  *      that calculates the GPU clock
58  *
59  * GPU clock speed of the platform in MHz 
60  * - see kbase_gpu_clk_speed_func for the function prototype.
61  *
62  * Attached value: A kbase_gpu_clk_speed_func.
63  * Default Value:  NA
64  */
65 #define GPU_SPEED_FUNC (NULL)
66
67 /**
68  * Power management configuration
69  *
70  * Attached value: 
71  *      pointer to @ref kbase_pm_callback_conf
72  * Default value: 
73  *      See @ref kbase_pm_callback_conf
74  */
75 #define POWER_MANAGEMENT_CALLBACKS (&pm_callbacks)
76 extern struct kbase_pm_callback_conf pm_callbacks;
77
78 /**
79  * Platform specific configuration functions
80  *
81  * Attached value: 
82  *      pointer to @ref kbase_platform_funcs_conf
83  * Default value: 
84  *      See @ref kbase_platform_funcs_conf
85  */
86 #define PLATFORM_FUNCS (&platform_funcs)
87 extern struct kbase_platform_funcs_conf platform_funcs;
88
89 /** Power model for IPA
90  *
91  * Attached value: pointer to @ref mali_pa_model_ops
92  */
93 #define POWER_MODEL_CALLBACKS (NULL)
94
95
96 /**
97  * Secure mode switch
98  *
99  * Attached value: pointer to @ref kbase_secure_ops
100  */
101 #define SECURE_CALLBACKS (NULL)
102