diff options
author | Kelvin Cheung <keguang.zhang@gmail.com> | 2016-09-19 12:38:54 +0800 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-09-23 14:48:56 -0700 |
commit | a8e3ced421c1cd24221543a2bfda3134d46a6f21 (patch) | |
tree | ce7977ec79ce5544dfac628d57f057166f2b7e0a /drivers/clk/loongson1/clk.h | |
parent | 5963f19ca2b7e46cafc9647c8390bb20563b91cc (diff) | |
download | op-kernel-dev-a8e3ced421c1cd24221543a2bfda3134d46a6f21.zip op-kernel-dev-a8e3ced421c1cd24221543a2bfda3134d46a6f21.tar.gz |
clk: Loongson1: Refactor Loongson1 clock
Factor out the common functions into loongson1/clk.c
to support both Loongson1B and Loongson1C. And, put
the rest into loongson1/clk-loongson1b.c.
Signed-off-by: Kelvin Cheung <keguang.zhang@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/loongson1/clk.h')
-rw-r--r-- | drivers/clk/loongson1/clk.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/clk/loongson1/clk.h b/drivers/clk/loongson1/clk.h new file mode 100644 index 0000000..085d74b --- /dev/null +++ b/drivers/clk/loongson1/clk.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2012-2016 Zhang, Keguang <keguang.zhang@gmail.com> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + */ + +#ifndef __LOONGSON1_CLK_H +#define __LOONGSON1_CLK_H + +struct clk_hw *clk_hw_register_pll(struct device *dev, + const char *name, + const char *parent_name, + const struct clk_ops *ops, + unsigned long flags); + +#endif /* __LOONGSON1_CLK_H */ |