aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/plat-s3c64xx
diff options
context:
space:
mode:
authormerge <null@invalid>2009-03-04 12:53:41 +0000
committerAndy Green <agreen@octopus.localdomain>2009-03-04 12:53:41 +0000
commitcfebe723ca7e5810a2851fda2c305c5eeb6958e8 (patch)
treeec4e7037dbfdb840341afc7d8e502fcf26954674 /arch/arm/plat-s3c64xx
parent5faf7648227b6cec448972c53151c355c5014482 (diff)
MERGE-andy-tracking-patchset-edits
Diffstat (limited to 'arch/arm/plat-s3c64xx')
-rw-r--r--arch/arm/plat-s3c64xx/Makefile2
-rw-r--r--arch/arm/plat-s3c64xx/s3c6400-clock.c76
2 files changed, 0 insertions, 78 deletions
diff --git a/arch/arm/plat-s3c64xx/Makefile b/arch/arm/plat-s3c64xx/Makefile
index 0d5a9cdf3bb..4ecefb68252 100644
--- a/arch/arm/plat-s3c64xx/Makefile
+++ b/arch/arm/plat-s3c64xx/Makefile
@@ -34,8 +34,6 @@ obj-$(CONFIG_PM) += pm.o
obj-$(CONFIG_PM) += sleep.o
obj-$(CONFIG_PM) += irq-pm.o
-obj-$(CONFIG_CPU_FREQ_S3C64XX) += cpufreq.o
-
# Device setup
obj-$(CONFIG_S3C64XX_SETUP_I2C0) += setup-i2c0.o
diff --git a/arch/arm/plat-s3c64xx/s3c6400-clock.c b/arch/arm/plat-s3c64xx/s3c6400-clock.c
index 2dc67331c89..a6f6b91b732 100644
--- a/arch/arm/plat-s3c64xx/s3c6400-clock.c
+++ b/arch/arm/plat-s3c64xx/s3c6400-clock.c
@@ -24,7 +24,6 @@
#include <mach/hardware.h>
#include <mach/map.h>
-#include <mach/cpu.h>
#include <plat/cpu-freq.h>
@@ -89,80 +88,6 @@ struct clksrc_clk clk_mout_apll = {
.sources = &clk_src_apll,
};
-static u32 clk_arm_div_mask(void)
-{
- if (cpu_is_s3c6400())
- return S3C6400_CLKDIV0_ARM_MASK;
-
- if (cpu_is_s3c6410())
- return S3C6410_CLKDIV0_ARM_MASK;
-
- return 0;
-}
-
-static unsigned long s3c64xx_clk_arm_get_rate(struct clk *clk)
-{
- unsigned long rate = clk_get_rate(clk->parent);
- u32 val;
-
- val = __raw_readl(S3C_CLK_DIV0);
- val &= clk_arm_div_mask();
-
- return rate / (val + 1);
-}
-
-static unsigned long s3c64xx_clk_arm_round_rate(struct clk *clk,
- unsigned long rate)
-{
- unsigned long parent = clk_get_rate(clk->parent);
- int div;
- int max = clk_arm_div_mask() + 1;
-
- if (parent < rate)
- return parent;
-
- div = parent / rate;
-
- if (div < 1)
- div = 1;
- if (div > max)
- div = max;
-
- return parent / div;
-}
-
-static int s3c64xx_clk_arm_set_rate(struct clk *clk, unsigned long rate)
-{
- unsigned int div;
- u32 val;
- unsigned long flags;
-
- rate = clk_round_rate(clk, rate);
- div = (clk_get_rate(clk->parent) / rate) - 1;
-
- if (div > clk_arm_div_mask())
- return -EINVAL;
-
- val = __raw_readl(S3C_CLK_DIV0);
- val &= ~clk_arm_div_mask();
- val |= div;
-
- local_irq_save(flags);
- __raw_writel(val, S3C_CLK_DIV0);
- local_irq_restore(flags);
-
- return 0;
-}
-
-static struct clk clk_arm = {
- .name = "armclk",
- .id = -1,
- .parent = &clk_mout_apll.clk,
- .round_rate = &s3c64xx_clk_arm_round_rate,
- .get_rate = s3c64xx_clk_arm_get_rate,
- .set_rate = s3c64xx_clk_arm_set_rate,
-};
-
struct clk clk_fout_epll = {
.name = "fout_epll",
.id = -1,
@@ -708,7 +633,6 @@ static struct clk *clks[] __initdata = {
&clk_audio0.clk,
&clk_audio1.clk,
&clk_irda.clk,
- &clk_arm,
};
void __init s3c6400_register_clocks(void)