[PATCH 3/6] Add frequency scaling registration for GTA02 board
michael
michael at panicking.kicks-ass.org
Fri Oct 30 18:22:16 CET 2009
Signed-off-by: Michael Trimarchi <michael at panicking.kicks-ass.org>
---
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
--------------010504070502040001020002--
More information about the openmoko-kernel
mailing list