/*
- * Copyright (C) 2012 ROCKCHIP, Inc.
+ * Copyright (C) 2012-2013 ROCKCHIP, Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
static struct clk *gpu_clk;
static struct clk *ddr_clk;
-#if !defined(CONFIG_ARCH_RK3066B)
+#if !defined(CONFIG_ARCH_RK3066B) && !defined(CONFIG_ARCH_RK3188)
#define GPU_MAX_RATE 350*1000*1000
#endif
}
/**********************thermal limit**************************/
-#if !defined(CONFIG_ARCH_RK3066B)
+#if !defined(CONFIG_ARCH_RK3066B) && !defined(CONFIG_ARCH_RK3188)
#define CONFIG_RK30_CPU_FREQ_LIMIT_BY_TEMP
#endif
clk_enable_dvfs(cpu_clk);
#if !defined(CONFIG_ARCH_RK3066B)
+#if defined(CONFIG_ARCH_RK3188)
+ dvfs_clk_enable_limit(gpu_clk, 133000000, 600000000);
+#else
/* Limit gpu frequency between 133M to 400M */
dvfs_clk_enable_limit(gpu_clk, 133000000, 400000000);
+#endif
#endif
freq_wq = create_singlethread_workqueue("rk30_cpufreqd");
if (!is_ondemand)
goto out;
-#if !defined(CONFIG_ARCH_RK3066B)
+#if !defined(CONFIG_ARCH_RK3066B) && !defined(CONFIG_ARCH_RK3188)
if (is_booting && target_freq >= 1600 * 1000) {
s64 boottime_ms = ktime_to_ms(ktime_get_boottime());
if (boottime_ms > 30 * MSEC_PER_SEC) {
obj-$(CONFIG_SMP) += ../mach-rk30/platsmp.o ../mach-rk30/headsmp.o
obj-$(CONFIG_HOTPLUG_CPU) += ../mach-rk30/hotplug.o
obj-$(CONFIG_CPU_IDLE) += ../mach-rk30/cpuidle.o
+obj-$(CONFIG_CPU_FREQ) += ../mach-rk30/cpufreq.o
obj-$(CONFIG_DVFS) += ../mach-rk30/dvfs.o
obj-$(CONFIG_MACH_RK3188_FPGA) += board-rk3188-fpga.o