2 * linux/arch/arm/mach-nomadik/clock.c
4 * Copyright (C) 2009 Alessandro Rubini
11 #include <asm/clkdev.h>
16 * The nomadik board uses generic clocks, but the serial pl011 file
17 * calls clk_enable(), clk_disable(), clk_get_rate(), so we provide them
19 unsigned long clk_get_rate(struct clk
*clk
)
23 EXPORT_SYMBOL(clk_get_rate
);
25 /* enable and disable do nothing */
26 int clk_enable(struct clk
*clk
)
30 EXPORT_SYMBOL(clk_enable
);
32 void clk_disable(struct clk
*clk
)
35 EXPORT_SYMBOL(clk_disable
);
37 int __clk_get(struct clk
*clk
)
42 /* Create a clock structure with the given name */
43 int nmdk_clk_create(struct clk
*clk
, const char *dev_id
)
45 struct clk_lookup
*clkdev
;
47 clkdev
= clkdev_alloc(clk
, NULL
, dev_id
);