CONFIG_ZBOOT_ROM_TEXT=0x0
CONFIG_ZBOOT_ROM_BSS=0x0
CONFIG_CMDLINE="console=ttyFIQ0 androidboot.console=ttyFIQ0 init=/init"
+CONFIG_CPU_FREQ=y
+CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE=y
+CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
+CONFIG_CPU_FREQ_GOV_POWERSAVE=y
+CONFIG_CPU_FREQ_GOV_USERSPACE=y
+CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_IDLE=y
CONFIG_VFP=y
CONFIG_NEON=y
CONFIG_REGULATOR=y
CONFIG_REGULATOR_WM831X=y
CONFIG_REGULATOR_WM8994=y
+CONFIG_RK30_PWM_REGULATOR=y
CONFIG_MEDIA_SUPPORT=y
CONFIG_VIDEO_DEV=y
CONFIG_SOC_CAMERA=y
#include <linux/spi/spi.h>
#include <linux/mmc/host.h>
#include <linux/ion.h>
+#include <linux/cpufreq.h>
+#include <linux/clk.h>
+#include <mach/dvfs.h>
#include <asm/setup.h>
#include <asm/mach-types.h>
board_mem_reserved();
}
+static struct cpufreq_frequency_table cpu_dvfs_table[] = {
+ //{.frequency = 126*1000, .index = 980*1000},
+ //{.frequency = 252*1000, .index = 980*1000},
+ //{.frequency = 504*1000, .index = 980*1000},
+ {.frequency = 816*1000, .index = 1050*1000},
+ //{.frequency = 1008*1000,.index = 1150*1000},
+ //{.frequency = 1200*1000,.index = 1250*1000},
+ //{.frequency = 1416*1000,.index = 1280*1000},
+ //{.frequency = 1512*1000,.index = 1320*1000},
+ //{.frequency = 1560*1000,.index = 1350*1000},
+ //{.frequency = 1608*1000,.index = 1350*1000},
+ {.frequency = CPUFREQ_TABLE_END},
+};
+
void __init board_clock_init(void)
{
rk30_clock_data_init(periph_pll_297mhz, codec_pll_360mhz, max_i2s_12288khz);
+ dvfs_set_freq_volt_table(clk_get(NULL, "cpu"), cpu_dvfs_table);
}
MACHINE_START(RK30, "RK30board")
#include <mach/board.h>\r
\r
\r
-#if 1\r
+#if 0\r
#define DBG(x...) printk(KERN_INFO x)\r
#else\r
#define DBG(x...)\r
\r
static int pwm_regulator_list_voltage(struct regulator_dev *dev,unsigned int index)\r
{\r
- DBG("Enter %s, index =%d\n",__FUNCTION__,index);\r
if (index < sizeof(pwm_voltage_map)/sizeof(int))\r
return pwm_voltage_map[index];\r
else\r