1 /* drivers/gpu/t6xx/kbase/src/platform/rk/mali_kbase_platform.h
2 * Rockchip SoC Mali-T764 platform-dependent codes
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software FoundatIon.
10 * @file mali_kbase_platform.h
11 * Platform-dependent init
14 #ifndef _KBASE_PLATFORM_H_
15 #define _KBASE_PLATFORM_H_
18 /** Indicator if system clock to mail-t604 is active */
21 spinlock_t cmu_pmu_lock;
25 struct clk * mali_pd_node;
26 struct dvfs_node * mali_clk_node;
28 #ifdef CONFIG_MALI_MIDGARD_DVFS
29 /*To calculate utilization for x sec */
37 int mali_dvfs_clk_set(struct dvfs_node * node,unsigned long rate);
39 /* All things that are needed for the Linux port. */
40 int kbase_platform_cmu_pmu_control(struct kbase_device *kbdev, int control);
41 int kbase_platform_create_sysfs_file(struct device *dev);
42 void kbase_platform_remove_sysfs_file(struct device *dev);
43 int kbase_platform_is_power_on(void);
44 mali_error kbase_platform_init(struct kbase_device *kbdev);
45 void kbase_platform_term(kbase_device *kbdev);
47 int kbase_platform_clock_on(struct kbase_device *kbdev);
48 int kbase_platform_clock_off(struct kbase_device *kbdev);
49 int kbase_platform_power_off(struct kbase_device *kbdev);
50 int kbase_platform_power_on(struct kbase_device *kbdev);
52 #endif /* _KBASE_PLATFORM_H_ */