ARM: S3C64XX: Add USB external clock definition
authorMaurus Cuelenaere <mcuelenaere@gmail.com>
Mon, 17 May 2010 18:17:42 +0000 (20:17 +0200)
committerBen Dooks <ben-linux@fluff.org>
Tue, 18 May 2010 09:21:59 +0000 (18:21 +0900)
This adds the xusbxti clock to S3C64XX platform.

Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/mach-s3c64xx/clock.c
arch/arm/plat-samsung/include/plat/clock.h

index da83595890198e9a7cc05916e730be73d63f9e9d..7a4138beb665a1391dd5fe6137da1f584fc31107 100644 (file)
@@ -88,6 +88,12 @@ struct clk clk_48m = {
        .enable         = clk_48m_ctrl,
 };
 
+struct clk clk_xusbxti = {
+       .name           = "xusbxti",
+       .id             = -1,
+       .rate           = 48000000,
+};
+
 static int inline s3c64xx_gate(void __iomem *reg,
                                struct clk *clk,
                                int enable)
@@ -791,6 +797,7 @@ static struct clk *clks[] __initdata = {
        &clk_27m,
        &clk_48m,
        &clk_h2,
+       &clk_xusbxti,
 };
 
 /**
index 60b62692ac7ade89eff788e3bdb9987eedd35ead..efbc984640c3ba6bfe1d063f9ad14ba54ea0ae56 100644 (file)
@@ -74,6 +74,7 @@ extern struct clk clk_ext;
 extern struct clk clk_h2;
 extern struct clk clk_27m;
 extern struct clk clk_48m;
+extern struct clk clk_xusbxti;
 
 extern int clk_default_setrate(struct clk *clk, unsigned long rate);
 extern struct clk_ops clk_ops_def_setrate;