From b13f37b34d0ff3586f5203a82ecb87d6f1432670 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Thu, 24 Jan 2013 00:23:03 +0800 Subject: [PATCH] rk3188: tb: support ddr init to 396MHz when boot --- arch/arm/configs/rk3188_tb_defconfig | 2 ++ arch/arm/mach-rk30/board-rk3168-tb.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm/configs/rk3188_tb_defconfig b/arch/arm/configs/rk3188_tb_defconfig index 351ad1a35dff..27c36cb6d4d9 100644 --- a/arch/arm/configs/rk3188_tb_defconfig +++ b/arch/arm/configs/rk3188_tb_defconfig @@ -21,6 +21,8 @@ CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_MODULE_FORCE_UNLOAD=y CONFIG_ARCH_RK3188=y +CONFIG_DDR_SDRAM_FREQ=300 +CONFIG_DDR_FREQ=y # CONFIG_DDR_TEST is not set CONFIG_FIQ_DEBUGGER=y CONFIG_FIQ_DEBUGGER_NO_SLEEP=y diff --git a/arch/arm/mach-rk30/board-rk3168-tb.c b/arch/arm/mach-rk30/board-rk3168-tb.c index eb7a4f1d3f0f..064c777c7286 100755 --- a/arch/arm/mach-rk30/board-rk3168-tb.c +++ b/arch/arm/mach-rk30/board-rk3168-tb.c @@ -2024,9 +2024,9 @@ static struct cpufreq_frequency_table dvfs_gpu_table[] = { }; static struct cpufreq_frequency_table dvfs_ddr_table[] = { - {.frequency = 200 * 1000 + DDR_FREQ_SUSPEND, .index = 950 * 1000}, - {.frequency = 300 * 1000 + DDR_FREQ_VIDEO, .index = 1000 * 1000}, - {.frequency = 400 * 1000 + DDR_FREQ_NORMAL, .index = 1100 * 1000}, +// {.frequency = 200 * 1000 + DDR_FREQ_SUSPEND, .index = 950 * 1000}, +// {.frequency = 300 * 1000 + DDR_FREQ_VIDEO, .index = 1000 * 1000}, + {.frequency = 396 * 1000 + DDR_FREQ_NORMAL, .index = 1100 * 1000}, {.frequency = CPUFREQ_TABLE_END}, }; -- 2.34.1