Skip to content

Commit

Permalink
ARM: BAST: CPUFREQ: Add board support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ben Dooks authored and Ben Dooks committed Jul 30, 2009
1 parent f017679 commit ca0b490
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/arm/mach-s3c2410/mach-bast.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 */
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit ca0b490

Please sign in to comment.