• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *
3  * (C) COPYRIGHT 2011-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 
20 #include <mali_kbase.h>
21 #include <mali_kbase_defs.h>
22 #include <mali_kbase_config_defaults.h>
23 
kbasep_platform_device_init(struct kbase_device * kbdev)24 int kbasep_platform_device_init(struct kbase_device *kbdev)
25 {
26 	struct kbase_platform_funcs_conf *platform_funcs_p;
27 
28 	platform_funcs_p = (struct kbase_platform_funcs_conf *)PLATFORM_FUNCS;
29 	if (platform_funcs_p && platform_funcs_p->platform_init_func)
30 		return platform_funcs_p->platform_init_func(kbdev);
31 
32 	return 0;
33 }
34 
kbasep_platform_device_term(struct kbase_device * kbdev)35 void kbasep_platform_device_term(struct kbase_device *kbdev)
36 {
37 	struct kbase_platform_funcs_conf *platform_funcs_p;
38 
39 	platform_funcs_p = (struct kbase_platform_funcs_conf *)PLATFORM_FUNCS;
40 	if (platform_funcs_p && platform_funcs_p->platform_term_func)
41 		platform_funcs_p->platform_term_func(kbdev);
42 }
43 
kbase_cpuprops_get_default_clock_speed(u32 * const clock_speed)44 int kbase_cpuprops_get_default_clock_speed(u32 * const clock_speed)
45 {
46 	KBASE_DEBUG_ASSERT(NULL != clock_speed);
47 
48 	*clock_speed = 100;
49 	return 0;
50 }
51 
52