Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / clk / actions / owl-fixed-factor.h
blob3dfd7fd7d292a456c45bae87d8e7d179f35ea044
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 //
3 // OWL fixed factor clock driver
4 //
5 // Copyright (c) 2014 Actions Semi Inc.
6 // Author: David Liu <liuwei@actions-semi.com>
7 //
8 // Copyright (c) 2018 Linaro Ltd.
9 // Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
11 #ifndef _OWL_FIXED_FACTOR_H_
12 #define _OWL_FIXED_FACTOR_H_
14 #include "owl-common.h"
16 #define OWL_FIX_FACT(_struct, _name, _parent, _mul, _div, _flags) \
17 struct clk_fixed_factor _struct = { \
18 .mult = _mul, \
19 .div = _div, \
20 .hw.init = CLK_HW_INIT(_name, \
21 _parent, \
22 &clk_fixed_factor_ops, \
23 _flags), \
26 extern const struct clk_ops clk_fixed_factor_ops;
28 #endif /* _OWL_FIXED_FACTOR_H_ */