diff options
author | Ben Dooks <ben@simtec.co.uk> | 2009-07-30 23:23:39 +0100 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-07-30 23:22:55 +0100 |
commit | ca0b4901d8faaf98cf254e25cd2784bcb21e46d5 (patch) | |
tree | 76ce5a5fa3ab39d8850343f78ba68a4c4ed8285f /arch/arm/mach-s3c2410 | |
parent | f0176794b6abc2e5239c07a58cf11b6f43d0f185 (diff) | |
download | talos-obmc-linux-ca0b4901d8faaf98cf254e25cd2784bcb21e46d5.tar.gz talos-obmc-linux-ca0b4901d8faaf98cf254e25cd2784bcb21e46d5.zip |
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>
Diffstat (limited to 'arch/arm/mach-s3c2410')
-rw-r--r-- | arch/arm/mach-s3c2410/mach-bast.c | 9 |
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 @@ #include <plat/clock.h> #include <plat/devs.h> #include <plat/cpu.h> +#include <plat/cpu-freq.h> #include "usb-simtec.h" #include "nor-simtec.h" @@ -570,6 +571,12 @@ static struct clk *bast_clocks[] __initdata = { &s3c24xx_uclk, }; +static struct s3c_cpufreq_board __initdata bast_cpufreq = { + .refresh = 7800, /* 7.8usec */ + .auto_io = 1, + .need_io = 1, +}; + static void __init bast_map_io(void) { /* initialise the clocks */ @@ -608,6 +615,8 @@ static void __init bast_init(void) usb_simtec_init(); nor_simtec_init(); + + s3c_cpufreq_setboard(&bast_cpufreq); } MACHINE_START(BAST, "Simtec-BAST") |