6384586371d069e39dfcf20b3cfbbd88c03f45cb
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / midgard_for_linux / platform / vexpress / 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 #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 (5000)
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 (5000)
36
37 /**
38  * Values used for determining the GPU frequency based on the LogicTile type
39  * Used by the function kbase_get_platform_logic_tile_type
40  */
41 #define VE_VIRTEX6_GPU_FREQ_MIN 5000
42 #define VE_VIRTEX6_GPU_FREQ_MAX 5000
43 #define VE_VIRTEX7_GPU_FREQ_MIN 40000
44 #define VE_VIRTEX7_GPU_FREQ_MAX 40000
45
46 /**
47  * CPU_SPEED_FUNC - A pointer to a function that calculates the CPU clock
48  *
49  * CPU clock speed of the platform is in MHz - see kbase_cpu_clk_speed_func
50  * for the function prototype.
51  *
52  * Attached value: A kbase_cpu_clk_speed_func.
53  * Default Value:  NA
54  */
55 #define CPU_SPEED_FUNC (&kbase_get_vexpress_cpu_clock_speed)
56
57 /**
58  * GPU_SPEED_FUNC - A pointer to a function that calculates the GPU clock
59  *
60  * GPU clock speed of the platform in MHz - see kbase_gpu_clk_speed_func
61  * for the function prototype.
62  *
63  * Attached value: A kbase_gpu_clk_speed_func.
64  * Default Value:  NA
65  */
66 #define GPU_SPEED_FUNC (NULL)
67
68 /**
69  * Power management configuration
70  *
71  * Attached value: pointer to @ref kbase_pm_callback_conf
72  * Default value: See @ref kbase_pm_callback_conf
73  */
74 #define POWER_MANAGEMENT_CALLBACKS (&pm_callbacks)
75
76 /**
77  * Platform specific configuration functions
78  *
79  * Attached value: pointer to @ref kbase_platform_funcs_conf
80  * Default value: See @ref kbase_platform_funcs_conf
81  */
82 #define PLATFORM_FUNCS (NULL)
83
84 /**
85  * Secure mode switch
86  *
87  * Attached value: pointer to @ref kbase_secure_ops
88  */
89 #define SECURE_CALLBACKS (NULL)
90
91 extern struct kbase_pm_callback_conf pm_callbacks;