| /* |
| * mali_platform.h |
| * |
| * Created on: Nov 8, 2013 |
| * Author: amlogic |
| */ |
| |
| #ifndef MESON_MAIN_H_ |
| #define MESON_MAIN_H_ |
| #include <linux/version.h> |
| #include <linux/kernel.h> |
| #include <linux/platform_device.h> |
| #ifdef CONFIG_PM_RUNTIME |
| #include <linux/pm_runtime.h> |
| #endif |
| #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 29)) |
| #include <mach/cpu.h> |
| #endif |
| |
| #include "mali_scaling.h" |
| #include "mali_clock.h" |
| |
| extern struct device_type mali_pm_device; |
| extern int mali_pm_statue; |
| |
| u32 set_max_mali_freq(u32 idx); |
| u32 get_max_mali_freq(void); |
| |
| int mali_meson_init_start(struct platform_device* ptr_plt_dev); |
| int mali_meson_init_finish(struct platform_device* ptr_plt_dev); |
| int mali_meson_uninit(struct platform_device* ptr_plt_dev); |
| int mali_light_suspend(struct device *device); |
| int mali_light_resume(struct device *device); |
| int mali_deep_suspend(struct device *device); |
| int mali_deep_resume(struct device *device); |
| |
| #endif /* MESON_MAIN_H_ */ |