3 @@ -365,6 +365,7 @@ config ARCH_CNS3XXX
4 select MIGHT_HAVE_CACHE_L2X0
6 select PCI_DOMAINS if PCI
9 Support for Cavium Networks CNS3XXX platform.
11 --- a/arch/arm/mach-cns3xxx/core.c
12 +++ b/arch/arm/mach-cns3xxx/core.c
16 #include <linux/init.h>
17 +#include <linux/export.h>
18 #include <linux/interrupt.h>
19 #include <linux/clockchips.h>
20 +#include <linux/clk.h>
21 +#include <linux/clkdev.h>
23 #include <asm/mach/map.h>
24 #include <asm/mach/time.h>
26 #include <mach/cns3xxx.h>
33 static struct map_desc cns3xxx_io_desc[] __initdata = {
35 .virtual = CNS3XXX_TC11MP_TWD_BASE_VIRT,
36 @@ -277,3 +284,33 @@ void __init cns3xxx_l2x0_init(void)
39 #endif /* CONFIG_CACHE_L2X0 */
41 +int clk_enable(struct clk *clk)
45 +EXPORT_SYMBOL(clk_enable);
47 +void clk_disable(struct clk *clk)
50 +EXPORT_SYMBOL(clk_disable);
52 +unsigned long clk_get_rate(struct clk *clk)
56 +EXPORT_SYMBOL(clk_get_rate);
58 +static struct clk_lookup cns3xxx_clocks[] = {
64 +int __init cns3xxx_clocks_init(void)
66 + clkdev_add_table(cns3xxx_clocks, ARRAY_SIZE(cns3xxx_clocks));
69 +postcore_initcall(cns3xxx_clocks_init);