Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0+ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) //
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) // OWL fixed factor clock driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) //
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) // Copyright (c) 2014 Actions Semi Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) // Author: David Liu <liuwei@actions-semi.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) //
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) // Copyright (c) 2018 Linaro Ltd.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) // Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #ifndef _OWL_FIXED_FACTOR_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define _OWL_FIXED_FACTOR_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include "owl-common.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #define OWL_FIX_FACT(_struct, _name, _parent, _mul, _div, _flags)	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	struct clk_fixed_factor _struct = {				\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 		.mult		= _mul,					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 		.div		= _div,					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 		.hw.init	= CLK_HW_INIT(_name,			\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 					      _parent,			\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 					      &clk_fixed_factor_ops,	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 					      _flags),			\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) extern const struct clk_ops clk_fixed_factor_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #endif /* _OWL_FIXED_FACTOR_H_ */