aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Dooks <ben@simtec.co.uk>2009-07-30 18:23:39 -0400
committerBen Dooks <ben-linux@fluff.org>2009-07-30 18:22:55 -0400
commitca0b4901d8faaf98cf254e25cd2784bcb21e46d5 (patch)
tree76ce5a5fa3ab39d8850343f78ba68a4c4ed8285f
parentf0176794b6abc2e5239c07a58cf11b6f43d0f185 (diff)
ARM: BAST: CPUFREQ: Add board support
Add board support for CPUFREQ with the Simtec BAST board registering the necessary information with the core. Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
-rw-r--r--arch/arm/mach-s3c2410/mach-bast.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/mach-bast.c b/arch/arm/mach-s3c2410/mach-bast.c
index ce3baba2cd7f..d8a26ea92f24 100644
--- a/arch/arm/mach-s3c2410/mach-bast.c
+++ b/arch/arm/mach-s3c2410/mach-bast.c
@@ -59,6 +59,7 @@
59#include <plat/clock.h> 59#include <plat/clock.h>
60#include <plat/devs.h> 60#include <plat/devs.h>
61#include <plat/cpu.h> 61#include <plat/cpu.h>
62#include <plat/cpu-freq.h>
62 63
63#include "usb-simtec.h" 64#include "usb-simtec.h"
64#include "nor-simtec.h" 65#include "nor-simtec.h"
@@ -570,6 +571,12 @@ static struct clk *bast_clocks[] __initdata = {
570 &s3c24xx_uclk, 571 &s3c24xx_uclk,
571}; 572};
572 573
574static struct s3c_cpufreq_board __initdata bast_cpufreq = {
575 .refresh = 7800, /* 7.8usec */
576 .auto_io = 1,
577 .need_io = 1,
578};
579
573static void __init bast_map_io(void) 580static void __init bast_map_io(void)
574{ 581{
575 /* initialise the clocks */ 582 /* initialise the clocks */
@@ -608,6 +615,8 @@ static void __init bast_init(void)
608 615
609 usb_simtec_init(); 616 usb_simtec_init();
610 nor_simtec_init(); 617 nor_simtec_init();
618
619 s3c_cpufreq_setboard(&bast_cpufreq);
611} 620}
612 621
613MACHINE_START(BAST, "Simtec-BAST") 622MACHINE_START(BAST, "Simtec-BAST")