owl-fixed-factor.h 720 B

12345678910111213141516171819202122232425262728
  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>
  10. #ifndef _OWL_FIXED_FACTOR_H_
  11. #define _OWL_FIXED_FACTOR_H_
  12. #include "owl-common.h"
  13. #define OWL_FIX_FACT(_struct, _name, _parent, _mul, _div, _flags) \
  14. struct clk_fixed_factor _struct = { \
  15. .mult = _mul, \
  16. .div = _div, \
  17. .hw.init = CLK_HW_INIT(_name, \
  18. _parent, \
  19. &clk_fixed_factor_ops, \
  20. _flags), \
  21. }
  22. extern const struct clk_ops clk_fixed_factor_ops;
  23. #endif /* _OWL_FIXED_FACTOR_H_ */