#ifndef _COMMON_H_
#define _COMMON_H_
#include <linux/compiler.h>
#include <linux/clk-provider.h>
#define CCU_FEATURE_FRACTIONAL …
#define CCU_FEATURE_VARIABLE_PREDIV …
#define CCU_FEATURE_FIXED_PREDIV …
#define CCU_FEATURE_FIXED_POSTDIV …
#define CCU_FEATURE_ALL_PREDIV …
#define CCU_FEATURE_LOCK_REG …
#define CCU_FEATURE_MMC_TIMING_SWITCH …
#define CCU_FEATURE_SIGMA_DELTA_MOD …
#define CCU_FEATURE_KEY_FIELD …
#define CCU_FEATURE_CLOSEST_RATE …
#define CCU_MMC_NEW_TIMING_MODE …
struct device_node;
struct ccu_common { … };
static inline struct ccu_common *hw_to_ccu_common(struct clk_hw *hw)
{ … }
struct sunxi_ccu_desc { … };
void ccu_helper_wait_for_lock(struct ccu_common *common, u32 lock);
bool ccu_is_better_rate(struct ccu_common *common,
unsigned long target_rate,
unsigned long current_rate,
unsigned long best_rate);
struct ccu_pll_nb { … };
#define to_ccu_pll_nb(_nb) …
int ccu_pll_notifier_register(struct ccu_pll_nb *pll_nb);
int devm_sunxi_ccu_probe(struct device *dev, void __iomem *reg,
const struct sunxi_ccu_desc *desc);
void of_sunxi_ccu_probe(struct device_node *node, void __iomem *reg,
const struct sunxi_ccu_desc *desc);
#endif