Path: blob/master/drivers/clk/actions/owl-fixed-factor.h
26282 views
/* SPDX-License-Identifier: GPL-2.0+ */1//2// OWL fixed factor clock driver3//4// Copyright (c) 2014 Actions Semi Inc.5// Author: David Liu <[email protected]>6//7// Copyright (c) 2018 Linaro Ltd.8// Author: Manivannan Sadhasivam <[email protected]>910#ifndef _OWL_FIXED_FACTOR_H_11#define _OWL_FIXED_FACTOR_H_1213#include "owl-common.h"1415#define OWL_FIX_FACT(_struct, _name, _parent, _mul, _div, _flags) \16struct clk_fixed_factor _struct = { \17.mult = _mul, \18.div = _div, \19.hw.init = CLK_HW_INIT(_name, \20_parent, \21&clk_fixed_factor_ops, \22_flags), \23}2425extern const struct clk_ops clk_fixed_factor_ops;2627#endif /* _OWL_FIXED_FACTOR_H_ */282930