>From 78e022a77d0f5703dc820fcd42d79c18494bbf09 Mon Sep 17 00:00:00 2001 From: michael <[email protected]> Date: Fri, 30 Oct 2009 18:22:16 +0100 Subject: [PATCH 3/6] Add frequency scaling registration for GTA02 board
Signed-off-by: Michael Trimarchi <[email protected]> --- arch/arm/mach-s3c2442/mach-gta02.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-s3c2442/mach-gta02.c b/arch/arm/mach-s3c2442/mach-gta02.c index 380effa..ed999a4 100644 --- a/arch/arm/mach-s3c2442/mach-gta02.c +++ b/arch/arm/mach-s3c2442/mach-gta02.c @@ -81,6 +81,7 @@ #include <mach/gta02.h> +#include <plat/cpu-freq.h> #include <plat/regs-serial.h> #include <plat/nand.h> #include <plat/devs.h> @@ -1516,6 +1517,12 @@ static void mangle_glamo_res_by_system_rev(void) } } +static struct s3c_cpufreq_board __initdata gta02_cpufreq = { + .refresh = 17500, /* refresh period is 17.5usec */ + .auto_io = 1, + .need_io = 1, +}; + static void __init gta02_map_io(void) { s3c24xx_init_io(gta02_iodesc, ARRAY_SIZE(gta02_iodesc)); @@ -1709,6 +1716,8 @@ static void __init gta02_machine_init(void) pm_power_off = gta02_poweroff; + s3c_cpufreq_setboard(>a02_cpufreq); + /* Register the HDQ and vibrator as children of pwm device */ #ifdef CONFIG_HDQ_GPIO_BITBANG gta02_hdq_device.dev.parent = &s3c24xx_pwm_device.dev; -- 1.6.3.3
