From 3318f1494e8619d182e2b99e8ac27868a6555eff Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Tue, 26 Jul 2011 10:16:20 +0800 Subject: [PATCH] rk29: phonesdk: cpufreq add 1G support --- arch/arm/mach-rk29/board-rk29-phonesdk.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-rk29/board-rk29-phonesdk.c b/arch/arm/mach-rk29/board-rk29-phonesdk.c index 833eceb8957c..63ef9b0b39f6 100755 --- a/arch/arm/mach-rk29/board-rk29-phonesdk.c +++ b/arch/arm/mach-rk29/board-rk29-phonesdk.c @@ -3085,11 +3085,12 @@ static void rk29_pm_power_off(void) while (1); } -static struct cpufreq_frequency_table freq_table[] = { - +static struct cpufreq_frequency_table freq_table[] = +{ { .index = 1050000, .frequency = 408000 }, - { .index = 1100000, .frequency = 576000 }, + { .index = 1100000, .frequency = 600000 }, { .index = 1150000, .frequency = 816000 }, + { .index = 1250000, .frequency = 1008000 }, { .frequency = CPUFREQ_TABLE_END }, }; @@ -3097,14 +3098,14 @@ 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); pm_power_off = rk29_pm_power_off; //arm_pm_restart = rk29_pm_power_restart; + board_update_cpufreq_table(freq_table); + platform_add_devices(devices, ARRAY_SIZE(devices)); #ifdef CONFIG_I2C0_RK29 i2c_register_board_info(default_i2c0_data.bus_num, board_i2c0_devices, -- 2.34.1