mali_kbase_config.c 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. #include <mali_kbase.h>
  16. #include <mali_kbase_defs.h>
  17. #include <mali_kbase_config_defaults.h>
  18. int kbasep_platform_device_init(struct kbase_device *kbdev)
  19. {
  20. struct kbase_platform_funcs_conf *platform_funcs_p;
  21. platform_funcs_p = (struct kbase_platform_funcs_conf *)PLATFORM_FUNCS;
  22. if (platform_funcs_p && platform_funcs_p->platform_init_func)
  23. return platform_funcs_p->platform_init_func(kbdev);
  24. return 0;
  25. }
  26. void kbasep_platform_device_term(struct kbase_device *kbdev)
  27. {
  28. struct kbase_platform_funcs_conf *platform_funcs_p;
  29. platform_funcs_p = (struct kbase_platform_funcs_conf *)PLATFORM_FUNCS;
  30. if (platform_funcs_p && platform_funcs_p->platform_term_func)
  31. platform_funcs_p->platform_term_func(kbdev);
  32. }
  33. int kbase_cpuprops_get_default_clock_speed(u32 * const clock_speed)
  34. {
  35. KBASE_DEBUG_ASSERT(clock_speed != NULL);
  36. *clock_speed = 100;
  37. return 0;
  38. }