d0043099595fcf9dc172f281e465167df10984ea
2 * ADM5120 minimal CLK API implementation
4 * Copyright (C) 2007-2008 Gabor Juhos <juhosg@openwrt.org>
6 * This file was based on the CLK API implementation in:
7 * arch/mips/tx4938/toshiba_rbtx4938/setup.c
8 * Copyright (C) 2000-2001 Toshiba Corporation
9 * 2003-2005 (c) MontaVista Software, Inc.
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License version 2 as published
13 * by the Free Software Foundation.
17 #include <linux/kernel.h>
18 #include <linux/string.h>
19 #include <linux/module.h>
20 #include <linux/err.h>
21 #include <linux/clk.h>
23 #include <asm/mach-adm5120/adm5120_defs.h>
29 static struct clk uart_clk
= {
30 .rate
= ADM5120_UART_CLOCK
33 struct clk
*clk_get(struct device
*dev
, const char *id
)
35 if (!strcmp(id
, "UARTCLK"))
38 return ERR_PTR(-ENOENT
);
40 EXPORT_SYMBOL(clk_get
);
42 int clk_enable(struct clk
*clk
)
46 EXPORT_SYMBOL(clk_enable
);
48 void clk_disable(struct clk
*clk
)
51 EXPORT_SYMBOL(clk_disable
);
53 unsigned long clk_get_rate(struct clk
*clk
)
57 EXPORT_SYMBOL(clk_get_rate
);
59 void clk_put(struct clk
*clk
)
62 EXPORT_SYMBOL(clk_put
);
This page took 0.05231 seconds and 3 git commands to generate.