From 6dcf219f495643c21289cd5df032e31e9ce941b1 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Jun 2011 16:47:30 +0800 Subject: [PATCH] phonesdk: modify ARM freq and core voltage in running --- arch/arm/mach-rk29/board-rk29-phonesdk.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-rk29/board-rk29-phonesdk.c b/arch/arm/mach-rk29/board-rk29-phonesdk.c index 4f622865348a..7e56806ad05f 100644 --- a/arch/arm/mach-rk29/board-rk29-phonesdk.c +++ b/arch/arm/mach-rk29/board-rk29-phonesdk.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include @@ -59,6 +60,7 @@ #include #include "devices.h" + #if defined(CONFIG_MTK23D) #include #endif @@ -3042,10 +3044,20 @@ static void rk29_pm_power_off(void) while (1); } +static struct cpufreq_frequency_table freq_table[] = { + + { .index = 1050000, .frequency = 408000 }, + { .index = 1100000, .frequency = 576000 }, + { .index = 1150000, .frequency = 816000 }, + { .frequency = CPUFREQ_TABLE_END }, +}; + static void __init machine_rk29_board_init(void) { rk29_board_iomux_init(); - + + board_update_cpufreq_table(freq_table); + gpio_request(POWER_ON_PIN,"poweronpin"); gpio_set_value(POWER_ON_PIN, GPIO_HIGH); gpio_direction_output(POWER_ON_PIN, GPIO_HIGH); -- 2.34.1