Commit baf6b281 authored by Ben Dooks's avatar Ben Dooks Committed by Ben Dooks

ARM: OSIRIS: CPUFREQ: Add CPU frequency scaling support

Add CPU frequency scalling support to the Simtec Osiris.
Signed-off-by: default avatarBen Dooks <ben@simtec.co.uk>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent 0345b51c
...@@ -46,6 +46,7 @@ config MACH_OSIRIS ...@@ -46,6 +46,7 @@ config MACH_OSIRIS
select PM_SIMTEC if PM select PM_SIMTEC if PM
select S3C24XX_GPIO_EXTRA128 select S3C24XX_GPIO_EXTRA128
select S3C2440_XTAL_12000000 select S3C2440_XTAL_12000000
select S3C2410_IOTIMING if S3C2440_CPUFREQ
select S3C_DEV_USB_HOST select S3C_DEV_USB_HOST
help help
Say Y here if you are using the Simtec IM2440D20 module, also Say Y here if you are using the Simtec IM2440D20 module, also
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <plat/cpu-freq.h>
#include <plat/regs-serial.h> #include <plat/regs-serial.h>
#include <mach/regs-gpio.h> #include <mach/regs-gpio.h>
#include <mach/regs-mem.h> #include <mach/regs-mem.h>
...@@ -351,6 +352,12 @@ static struct clk *osiris_clocks[] __initdata = { ...@@ -351,6 +352,12 @@ static struct clk *osiris_clocks[] __initdata = {
&s3c24xx_uclk, &s3c24xx_uclk,
}; };
static struct s3c_cpufreq_board __initdata osiris_cpufreq = {
.refresh = 7800, /* refresh period is 7.8usec */
.auto_io = 1,
.need_io = 1,
};
static void __init osiris_map_io(void) static void __init osiris_map_io(void)
{ {
unsigned long flags; unsigned long flags;
...@@ -402,6 +409,8 @@ static void __init osiris_init(void) ...@@ -402,6 +409,8 @@ static void __init osiris_init(void)
s3c_i2c0_set_platdata(NULL); s3c_i2c0_set_platdata(NULL);
s3c_cpufreq_setboard(&osiris_cpufreq);
i2c_register_board_info(0, osiris_i2c_devs, i2c_register_board_info(0, osiris_i2c_devs,
ARRAY_SIZE(osiris_i2c_devs)); ARRAY_SIZE(osiris_i2c_devs));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment