#include <linux/clk-private.h>
#include "../../../drivers/clk/rockchip/clk-pd.h"
+#ifdef CONFIG_CPU_FREQ
extern int rockchip_cpufreq_reboot_limit_freq(void);
+#else
+static inline int rockchip_cpufreq_reboot_limit_freq(void) { return 0; }
+#endif
static DECLARE_COMPLETION(ddrfreq_completion);
static DEFINE_MUTEX(ddrfreq_mutex);
.minor = MISC_DYNAMIC_MINOR,
};
+#ifdef CONFIG_INPUT
static void ddr_freq_input_event(struct input_handle *handle, unsigned int type,
unsigned int code, int value)
{
.name = "ddr_freq",
.id_table = ddr_freq_ids,
};
+#endif
#if 0
static int ddrfreq_clk_event(int status, unsigned long event)
{
if (!ddr.reboot_rate)
ddr.reboot_rate = ddr.normal_rate;
+#ifdef CONFIG_INPUT
ret = input_register_handler(&ddr_freq_input_handler);
if (ret)
ddr.auto_freq = false;
+#endif
//REGISTER_CLK_NOTIFIER(pd_isp);
//REGISTER_CLK_NOTIFIER(pd_vop0);
typedef uint32_t uint32;
+#ifdef CONFIG_FB_ROCKCHIP
#define DDR_CHANGE_FREQ_IN_LCDC_VSYNC
+#endif
/***********************************
* Global Control Macro
***********************************/