android_device_allwinner-full/common/sayeye/SUN8IW5P1.h

44 lines
1.6 KiB
C
Raw Normal View History

2016-08-06 01:03:18 +00:00
#ifndef __SUN8IW5P1_H__
#define __SUN8IW5P1_H__
/* cpu spec files defined */
#define CPU0LOCK "/sys/devices/system/cpu/cpu0/cpufreq/boot_lock"
#define ROOMAGE "/sys/devices/platform/sunxi-budget-cooling/roomage"
#define CPUFREQ "/sys/devices/system/cpu/cpu0/cpufreq/scale_cur_freq"
#define CPUONLINE "/sys/devices/system/cpu/online"
#define CPUHOT "/sys/kernel/autohotplug/enable"
#define CPU0GOV "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
/* gpu spec files defined */
#define GPUFREQ "/sys/devices/platform/pvrsrvkm/dvfs/android"
/* ddr spec files defined */
#define DRAMFREQ "/sys/devices/platform/sunxi-ddrfreq/devfreq/sunxi-ddrfreq/cur_freq"
#define DRAMSCEN "/sys/class/devfreq/sunxi-ddrfreq/dsm/scene"
/* task spec files defined */
#define TASKS "/dev/cpuctl/tasks"
/* value define */
#define ROOMAGE_PERF "1008000 4 0 0 1200000 4 0 0 0"
#define ROOMAGE_NORMAL "0 0 0 0 1200000 4 0 0 0"
#define ROOMAGE_VIDEO "0 0 0 0 1200000 4 0 0 2"
/* dram scene value defined */
#define DRAM_NORMAL "0"
#define DRAM_HOME "1"
#define DRAM_LOCALVIDEO "2"
#define DRAM_BGMUSIC "3"
#define DRAM_4KLOCALVIDEO "4"
/* gpu scene value defined */
#define GPU_NORMAL "4\n"
#define GPU_HOME "4\n"
#define GPU_LOCALVIDEO "4\n"
#define GPU_BGMUSIC "4\n"
#define GPU_4KLOCALVIDEO "4\n"
#define GPU_PERF "8\n"
const static char *roomage_little[] = {
"0 4 0 0 1344000 4 0 0",
"1008000 4 0 0 1344000 4 0 0",
"0 4 0 0 1344000 4 0 0",
"0 4 0 0 1344000 4 0 0",
"1008000 4 0 0 1344000 4 0 0",
};
#endif