aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-nomadik/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-nomadik/clock.c')
-rw-r--r--arch/arm/mach-nomadik/clock.c28
1 files changed, 20 insertions, 8 deletions
diff --git a/arch/arm/mach-nomadik/clock.c b/arch/arm/mach-nomadik/clock.c
index 9f92502a0083..7af785017782 100644
--- a/arch/arm/mach-nomadik/clock.c
+++ b/arch/arm/mach-nomadik/clock.c
@@ -32,14 +32,26 @@ void clk_disable(struct clk *clk)
32} 32}
33EXPORT_SYMBOL(clk_disable); 33EXPORT_SYMBOL(clk_disable);
34 34
35/* Create a clock structure with the given name */ 35/* We have a fixed clock alone, for now */
36int nmdk_clk_create(struct clk *clk, const char *dev_id) 36static struct clk clk_48 = {
37{ 37 .rate = 48 * 1000 * 1000,
38 struct clk_lookup *clkdev; 38};
39
40#define CLK(_clk, dev) \
41 { \
42 .clk = _clk, \
43 .dev_id = dev, \
44 }
45
46static struct clk_lookup lookups[] = {
47 CLK(&clk_48, "uart0"),
48 CLK(&clk_48, "uart1"),
49};
39 50
40 clkdev = clkdev_alloc(clk, NULL, dev_id); 51static int __init clk_init(void)
41 if (!clkdev) 52{
42 return -ENOMEM; 53 clkdev_add_table(lookups, ARRAY_SIZE(lookups));
43 clkdev_add(clkdev);
44 return 0; 54 return 0;
45} 55}
56
57arch_initcall(clk_init);