MALI: rockchip: linux: upgrade to DDK r13p0-00rel0
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / midgard_for_linux / platform / vexpress_6xvirtex7_10mhz / mali_kbase_config_platform.h
1 /*
2  *
3  * (C) COPYRIGHT 2014-2016 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 #include "mali_kbase_cpu_vexpress.h"
19
20 /**
21  * Maximum frequency GPU will be clocked at. Given in kHz.
22  * This must be specified as there is no default value.
23  *
24  * Attached value: number in kHz
25  * Default value: NA
26  */
27 #define GPU_FREQ_KHZ_MAX 10000
28 /**
29  * Minimum frequency GPU will be clocked at. Given in kHz.
30  * This must be specified as there is no default value.
31  *
32  * Attached value: number in kHz
33  * Default value: NA
34  */
35 #define GPU_FREQ_KHZ_MIN 10000
36
37 /**
38  * CPU_SPEED_FUNC - A pointer to a function that calculates the CPU clock
39  *
40  * CPU clock speed of the platform is in MHz - see kbase_cpu_clk_speed_func
41  * for the function prototype.
42  *
43  * Attached value: A kbase_cpu_clk_speed_func.
44  * Default Value:  NA
45  */
46 #define CPU_SPEED_FUNC (&kbase_get_vexpress_cpu_clock_speed)
47
48 /**
49  * GPU_SPEED_FUNC - A pointer to a function that calculates the GPU clock
50  *
51  * GPU clock speed of the platform in MHz - see kbase_gpu_clk_speed_func
52  * for the function prototype.
53  *
54  * Attached value: A kbase_gpu_clk_speed_func.
55  * Default Value:  NA
56  */
57 #define GPU_SPEED_FUNC (NULL)
58
59 /**
60  * Power management configuration
61  *
62  * Attached value: pointer to @ref kbase_pm_callback_conf
63  * Default value: See @ref kbase_pm_callback_conf
64  */
65 #define POWER_MANAGEMENT_CALLBACKS (&pm_callbacks)
66
67 /**
68  * Platform specific configuration functions
69  *
70  * Attached value: pointer to @ref kbase_platform_funcs_conf
71  * Default value: See @ref kbase_platform_funcs_conf
72  */
73 #define PLATFORM_FUNCS (NULL)
74
75 /**
76  * Protected mode switch
77  *
78  * Attached value: pointer to @ref kbase_protected_ops
79  */
80 #define PROTECTED_CALLBACKS (NULL)
81
82 extern struct kbase_pm_callback_conf pm_callbacks;