xref: /kernel/linux/linux-5.10/drivers/clk/ti/clock.h (revision 8c2ecf20)
18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * TI Clock driver internal definitions
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright (C) 2014 Texas Instruments, Inc
58c2ecf20Sopenharmony_ci *     Tero Kristo (t-kristo@ti.com)
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or
88c2ecf20Sopenharmony_ci * modify it under the terms of the GNU General Public License as
98c2ecf20Sopenharmony_ci * published by the Free Software Foundation version 2.
108c2ecf20Sopenharmony_ci *
118c2ecf20Sopenharmony_ci * This program is distributed "as is" WITHOUT ANY WARRANTY of any
128c2ecf20Sopenharmony_ci * kind, whether express or implied; without even the implied warranty
138c2ecf20Sopenharmony_ci * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
148c2ecf20Sopenharmony_ci * GNU General Public License for more details.
158c2ecf20Sopenharmony_ci */
168c2ecf20Sopenharmony_ci#ifndef __DRIVERS_CLK_TI_CLOCK__
178c2ecf20Sopenharmony_ci#define __DRIVERS_CLK_TI_CLOCK__
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_cistruct clk_omap_divider {
208c2ecf20Sopenharmony_ci	struct clk_hw		hw;
218c2ecf20Sopenharmony_ci	struct clk_omap_reg	reg;
228c2ecf20Sopenharmony_ci	u8			shift;
238c2ecf20Sopenharmony_ci	u8			flags;
248c2ecf20Sopenharmony_ci	s8			latch;
258c2ecf20Sopenharmony_ci	u16			min;
268c2ecf20Sopenharmony_ci	u16			max;
278c2ecf20Sopenharmony_ci	u16			mask;
288c2ecf20Sopenharmony_ci	const struct clk_div_table	*table;
298c2ecf20Sopenharmony_ci	u32		context;
308c2ecf20Sopenharmony_ci};
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#define to_clk_omap_divider(_hw) container_of(_hw, struct clk_omap_divider, hw)
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_cistruct clk_omap_mux {
358c2ecf20Sopenharmony_ci	struct clk_hw		hw;
368c2ecf20Sopenharmony_ci	struct clk_omap_reg	reg;
378c2ecf20Sopenharmony_ci	u32			*table;
388c2ecf20Sopenharmony_ci	u32			mask;
398c2ecf20Sopenharmony_ci	u8			shift;
408c2ecf20Sopenharmony_ci	s8			latch;
418c2ecf20Sopenharmony_ci	u8			flags;
428c2ecf20Sopenharmony_ci	u8			saved_parent;
438c2ecf20Sopenharmony_ci};
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci#define to_clk_omap_mux(_hw) container_of(_hw, struct clk_omap_mux, hw)
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_cienum {
488c2ecf20Sopenharmony_ci	TI_CLK_FIXED,
498c2ecf20Sopenharmony_ci	TI_CLK_MUX,
508c2ecf20Sopenharmony_ci	TI_CLK_DIVIDER,
518c2ecf20Sopenharmony_ci	TI_CLK_COMPOSITE,
528c2ecf20Sopenharmony_ci	TI_CLK_FIXED_FACTOR,
538c2ecf20Sopenharmony_ci	TI_CLK_GATE,
548c2ecf20Sopenharmony_ci	TI_CLK_DPLL,
558c2ecf20Sopenharmony_ci};
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci/* Global flags */
588c2ecf20Sopenharmony_ci#define CLKF_INDEX_POWER_OF_TWO		(1 << 0)
598c2ecf20Sopenharmony_ci#define CLKF_INDEX_STARTS_AT_ONE	(1 << 1)
608c2ecf20Sopenharmony_ci#define CLKF_SET_RATE_PARENT		(1 << 2)
618c2ecf20Sopenharmony_ci#define CLKF_OMAP3			(1 << 3)
628c2ecf20Sopenharmony_ci#define CLKF_AM35XX			(1 << 4)
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci/* Gate flags */
658c2ecf20Sopenharmony_ci#define CLKF_SET_BIT_TO_DISABLE		(1 << 5)
668c2ecf20Sopenharmony_ci#define CLKF_INTERFACE			(1 << 6)
678c2ecf20Sopenharmony_ci#define CLKF_SSI			(1 << 7)
688c2ecf20Sopenharmony_ci#define CLKF_DSS			(1 << 8)
698c2ecf20Sopenharmony_ci#define CLKF_HSOTGUSB			(1 << 9)
708c2ecf20Sopenharmony_ci#define CLKF_WAIT			(1 << 10)
718c2ecf20Sopenharmony_ci#define CLKF_NO_WAIT			(1 << 11)
728c2ecf20Sopenharmony_ci#define CLKF_HSDIV			(1 << 12)
738c2ecf20Sopenharmony_ci#define CLKF_CLKDM			(1 << 13)
748c2ecf20Sopenharmony_ci
758c2ecf20Sopenharmony_ci/* DPLL flags */
768c2ecf20Sopenharmony_ci#define CLKF_LOW_POWER_STOP		(1 << 5)
778c2ecf20Sopenharmony_ci#define CLKF_LOCK			(1 << 6)
788c2ecf20Sopenharmony_ci#define CLKF_LOW_POWER_BYPASS		(1 << 7)
798c2ecf20Sopenharmony_ci#define CLKF_PER			(1 << 8)
808c2ecf20Sopenharmony_ci#define CLKF_CORE			(1 << 9)
818c2ecf20Sopenharmony_ci#define CLKF_J_TYPE			(1 << 10)
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_ci/* CLKCTRL flags */
848c2ecf20Sopenharmony_ci#define CLKF_SW_SUP			BIT(5)
858c2ecf20Sopenharmony_ci#define CLKF_HW_SUP			BIT(6)
868c2ecf20Sopenharmony_ci#define CLKF_NO_IDLEST			BIT(7)
878c2ecf20Sopenharmony_ci
888c2ecf20Sopenharmony_ci#define CLKF_SOC_MASK			GENMASK(11, 8)
898c2ecf20Sopenharmony_ci
908c2ecf20Sopenharmony_ci#define CLKF_SOC_NONSEC			BIT(8)
918c2ecf20Sopenharmony_ci#define CLKF_SOC_DRA72			BIT(9)
928c2ecf20Sopenharmony_ci#define CLKF_SOC_DRA74			BIT(10)
938c2ecf20Sopenharmony_ci#define CLKF_SOC_DRA76			BIT(11)
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci#define CLK(dev, con, ck)		\
968c2ecf20Sopenharmony_ci	{				\
978c2ecf20Sopenharmony_ci		.lk = {			\
988c2ecf20Sopenharmony_ci			.dev_id = dev,	\
998c2ecf20Sopenharmony_ci			.con_id = con,	\
1008c2ecf20Sopenharmony_ci		},			\
1018c2ecf20Sopenharmony_ci		.clk = ck,		\
1028c2ecf20Sopenharmony_ci	}
1038c2ecf20Sopenharmony_ci
1048c2ecf20Sopenharmony_cistruct ti_clk {
1058c2ecf20Sopenharmony_ci	const char *name;
1068c2ecf20Sopenharmony_ci	const char *clkdm_name;
1078c2ecf20Sopenharmony_ci	int type;
1088c2ecf20Sopenharmony_ci	void *data;
1098c2ecf20Sopenharmony_ci	struct ti_clk *patch;
1108c2ecf20Sopenharmony_ci	struct clk *clk;
1118c2ecf20Sopenharmony_ci};
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_cistruct ti_clk_mux {
1148c2ecf20Sopenharmony_ci	u8 bit_shift;
1158c2ecf20Sopenharmony_ci	int num_parents;
1168c2ecf20Sopenharmony_ci	u16 reg;
1178c2ecf20Sopenharmony_ci	u8 module;
1188c2ecf20Sopenharmony_ci	const char * const *parents;
1198c2ecf20Sopenharmony_ci	u16 flags;
1208c2ecf20Sopenharmony_ci};
1218c2ecf20Sopenharmony_ci
1228c2ecf20Sopenharmony_cistruct ti_clk_divider {
1238c2ecf20Sopenharmony_ci	const char *parent;
1248c2ecf20Sopenharmony_ci	u8 bit_shift;
1258c2ecf20Sopenharmony_ci	u16 max_div;
1268c2ecf20Sopenharmony_ci	u16 reg;
1278c2ecf20Sopenharmony_ci	u8 module;
1288c2ecf20Sopenharmony_ci	int *dividers;
1298c2ecf20Sopenharmony_ci	int num_dividers;
1308c2ecf20Sopenharmony_ci	u16 flags;
1318c2ecf20Sopenharmony_ci};
1328c2ecf20Sopenharmony_ci
1338c2ecf20Sopenharmony_cistruct ti_clk_gate {
1348c2ecf20Sopenharmony_ci	const char *parent;
1358c2ecf20Sopenharmony_ci	u8 bit_shift;
1368c2ecf20Sopenharmony_ci	u16 reg;
1378c2ecf20Sopenharmony_ci	u8 module;
1388c2ecf20Sopenharmony_ci	u16 flags;
1398c2ecf20Sopenharmony_ci};
1408c2ecf20Sopenharmony_ci
1418c2ecf20Sopenharmony_ci/* Composite clock component types */
1428c2ecf20Sopenharmony_cienum {
1438c2ecf20Sopenharmony_ci	CLK_COMPONENT_TYPE_GATE = 0,
1448c2ecf20Sopenharmony_ci	CLK_COMPONENT_TYPE_DIVIDER,
1458c2ecf20Sopenharmony_ci	CLK_COMPONENT_TYPE_MUX,
1468c2ecf20Sopenharmony_ci	CLK_COMPONENT_TYPE_MAX,
1478c2ecf20Sopenharmony_ci};
1488c2ecf20Sopenharmony_ci
1498c2ecf20Sopenharmony_ci/**
1508c2ecf20Sopenharmony_ci * struct ti_dt_clk - OMAP DT clock alias declarations
1518c2ecf20Sopenharmony_ci * @lk: clock lookup definition
1528c2ecf20Sopenharmony_ci * @node_name: clock DT node to map to
1538c2ecf20Sopenharmony_ci */
1548c2ecf20Sopenharmony_cistruct ti_dt_clk {
1558c2ecf20Sopenharmony_ci	struct clk_lookup		lk;
1568c2ecf20Sopenharmony_ci	char				*node_name;
1578c2ecf20Sopenharmony_ci};
1588c2ecf20Sopenharmony_ci
1598c2ecf20Sopenharmony_ci#define DT_CLK(dev, con, name)		\
1608c2ecf20Sopenharmony_ci	{				\
1618c2ecf20Sopenharmony_ci		.lk = {			\
1628c2ecf20Sopenharmony_ci			.dev_id = dev,	\
1638c2ecf20Sopenharmony_ci			.con_id = con,	\
1648c2ecf20Sopenharmony_ci		},			\
1658c2ecf20Sopenharmony_ci		.node_name = name,	\
1668c2ecf20Sopenharmony_ci	}
1678c2ecf20Sopenharmony_ci
1688c2ecf20Sopenharmony_ci/* CLKCTRL type definitions */
1698c2ecf20Sopenharmony_cistruct omap_clkctrl_div_data {
1708c2ecf20Sopenharmony_ci	const int *dividers;
1718c2ecf20Sopenharmony_ci	int max_div;
1728c2ecf20Sopenharmony_ci	u32 flags;
1738c2ecf20Sopenharmony_ci};
1748c2ecf20Sopenharmony_ci
1758c2ecf20Sopenharmony_cistruct omap_clkctrl_bit_data {
1768c2ecf20Sopenharmony_ci	u8 bit;
1778c2ecf20Sopenharmony_ci	u8 type;
1788c2ecf20Sopenharmony_ci	const char * const *parents;
1798c2ecf20Sopenharmony_ci	const void *data;
1808c2ecf20Sopenharmony_ci};
1818c2ecf20Sopenharmony_ci
1828c2ecf20Sopenharmony_cistruct omap_clkctrl_reg_data {
1838c2ecf20Sopenharmony_ci	u16 offset;
1848c2ecf20Sopenharmony_ci	const struct omap_clkctrl_bit_data *bit_data;
1858c2ecf20Sopenharmony_ci	u16 flags;
1868c2ecf20Sopenharmony_ci	const char *parent;
1878c2ecf20Sopenharmony_ci	const char *clkdm_name;
1888c2ecf20Sopenharmony_ci};
1898c2ecf20Sopenharmony_ci
1908c2ecf20Sopenharmony_cistruct omap_clkctrl_data {
1918c2ecf20Sopenharmony_ci	u32 addr;
1928c2ecf20Sopenharmony_ci	const struct omap_clkctrl_reg_data *regs;
1938c2ecf20Sopenharmony_ci};
1948c2ecf20Sopenharmony_ci
1958c2ecf20Sopenharmony_ciextern const struct omap_clkctrl_data omap4_clkctrl_data[];
1968c2ecf20Sopenharmony_ciextern const struct omap_clkctrl_data omap5_clkctrl_data[];
1978c2ecf20Sopenharmony_ciextern const struct omap_clkctrl_data dra7_clkctrl_data[];
1988c2ecf20Sopenharmony_ciextern const struct omap_clkctrl_data dra7_clkctrl_compat_data[];
1998c2ecf20Sopenharmony_ciextern struct ti_dt_clk dra7xx_compat_clks[];
2008c2ecf20Sopenharmony_ciextern const struct omap_clkctrl_data am3_clkctrl_data[];
2018c2ecf20Sopenharmony_ciextern const struct omap_clkctrl_data am3_clkctrl_compat_data[];
2028c2ecf20Sopenharmony_ciextern struct ti_dt_clk am33xx_compat_clks[];
2038c2ecf20Sopenharmony_ciextern const struct omap_clkctrl_data am4_clkctrl_data[];
2048c2ecf20Sopenharmony_ciextern const struct omap_clkctrl_data am4_clkctrl_compat_data[];
2058c2ecf20Sopenharmony_ciextern struct ti_dt_clk am43xx_compat_clks[];
2068c2ecf20Sopenharmony_ciextern const struct omap_clkctrl_data am438x_clkctrl_data[];
2078c2ecf20Sopenharmony_ciextern const struct omap_clkctrl_data am438x_clkctrl_compat_data[];
2088c2ecf20Sopenharmony_ciextern const struct omap_clkctrl_data dm814_clkctrl_data[];
2098c2ecf20Sopenharmony_ciextern const struct omap_clkctrl_data dm816_clkctrl_data[];
2108c2ecf20Sopenharmony_ci
2118c2ecf20Sopenharmony_citypedef void (*ti_of_clk_init_cb_t)(void *, struct device_node *);
2128c2ecf20Sopenharmony_ci
2138c2ecf20Sopenharmony_cistruct clk *of_ti_clk_register(struct device_node *node, struct clk_hw *hw,
2148c2ecf20Sopenharmony_ci			       const char *con);
2158c2ecf20Sopenharmony_cistruct clk *of_ti_clk_register_omap_hw(struct device_node *node,
2168c2ecf20Sopenharmony_ci				       struct clk_hw *hw, const char *con);
2178c2ecf20Sopenharmony_ciconst char *ti_dt_clk_name(struct device_node *np);
2188c2ecf20Sopenharmony_ciint ti_clk_add_alias(struct clk *clk, const char *con);
2198c2ecf20Sopenharmony_civoid ti_clk_add_aliases(void);
2208c2ecf20Sopenharmony_ci
2218c2ecf20Sopenharmony_civoid ti_clk_latch(struct clk_omap_reg *reg, s8 shift);
2228c2ecf20Sopenharmony_ci
2238c2ecf20Sopenharmony_cistruct clk_hw *ti_clk_build_component_mux(struct ti_clk_mux *setup);
2248c2ecf20Sopenharmony_ci
2258c2ecf20Sopenharmony_ciint ti_clk_parse_divider_data(int *div_table, int num_dividers, int max_div,
2268c2ecf20Sopenharmony_ci			      u8 flags, struct clk_omap_divider *div);
2278c2ecf20Sopenharmony_ci
2288c2ecf20Sopenharmony_ciint ti_clk_get_reg_addr(struct device_node *node, int index,
2298c2ecf20Sopenharmony_ci			struct clk_omap_reg *reg);
2308c2ecf20Sopenharmony_civoid ti_dt_clocks_register(struct ti_dt_clk *oclks);
2318c2ecf20Sopenharmony_ciint ti_clk_retry_init(struct device_node *node, void *user,
2328c2ecf20Sopenharmony_ci		      ti_of_clk_init_cb_t func);
2338c2ecf20Sopenharmony_ciint ti_clk_add_component(struct device_node *node, struct clk_hw *hw, int type);
2348c2ecf20Sopenharmony_ci
2358c2ecf20Sopenharmony_ciint of_ti_clk_autoidle_setup(struct device_node *node);
2368c2ecf20Sopenharmony_civoid omap2_clk_enable_init_clocks(const char **clk_names, u8 num_clocks);
2378c2ecf20Sopenharmony_ci
2388c2ecf20Sopenharmony_ciextern const struct clk_hw_omap_ops clkhwops_omap3_dpll;
2398c2ecf20Sopenharmony_ciextern const struct clk_hw_omap_ops clkhwops_omap4_dpllmx;
2408c2ecf20Sopenharmony_ciextern const struct clk_hw_omap_ops clkhwops_wait;
2418c2ecf20Sopenharmony_ciextern const struct clk_hw_omap_ops clkhwops_iclk;
2428c2ecf20Sopenharmony_ciextern const struct clk_hw_omap_ops clkhwops_iclk_wait;
2438c2ecf20Sopenharmony_ciextern const struct clk_hw_omap_ops clkhwops_omap2430_i2chs_wait;
2448c2ecf20Sopenharmony_ciextern const struct clk_hw_omap_ops clkhwops_omap3430es2_dss_usbhost_wait;
2458c2ecf20Sopenharmony_ciextern const struct clk_hw_omap_ops clkhwops_omap3430es2_iclk_hsotgusb_wait;
2468c2ecf20Sopenharmony_ciextern const struct clk_hw_omap_ops clkhwops_omap3430es2_iclk_dss_usbhost_wait;
2478c2ecf20Sopenharmony_ciextern const struct clk_hw_omap_ops clkhwops_omap3430es2_iclk_ssi_wait;
2488c2ecf20Sopenharmony_ciextern const struct clk_hw_omap_ops clkhwops_am35xx_ipss_module_wait;
2498c2ecf20Sopenharmony_ciextern const struct clk_hw_omap_ops clkhwops_am35xx_ipss_wait;
2508c2ecf20Sopenharmony_ci
2518c2ecf20Sopenharmony_ciextern const struct clk_ops ti_clk_divider_ops;
2528c2ecf20Sopenharmony_ciextern const struct clk_ops ti_clk_mux_ops;
2538c2ecf20Sopenharmony_ciextern const struct clk_ops omap_gate_clk_ops;
2548c2ecf20Sopenharmony_ci
2558c2ecf20Sopenharmony_ciextern struct ti_clk_features ti_clk_features;
2568c2ecf20Sopenharmony_ci
2578c2ecf20Sopenharmony_ciint omap2_init_clk_clkdm(struct clk_hw *hw);
2588c2ecf20Sopenharmony_ciint omap2_clkops_enable_clkdm(struct clk_hw *hw);
2598c2ecf20Sopenharmony_civoid omap2_clkops_disable_clkdm(struct clk_hw *hw);
2608c2ecf20Sopenharmony_ci
2618c2ecf20Sopenharmony_ciint omap2_dflt_clk_enable(struct clk_hw *hw);
2628c2ecf20Sopenharmony_civoid omap2_dflt_clk_disable(struct clk_hw *hw);
2638c2ecf20Sopenharmony_ciint omap2_dflt_clk_is_enabled(struct clk_hw *hw);
2648c2ecf20Sopenharmony_civoid omap2_clk_dflt_find_companion(struct clk_hw_omap *clk,
2658c2ecf20Sopenharmony_ci				   struct clk_omap_reg *other_reg,
2668c2ecf20Sopenharmony_ci				   u8 *other_bit);
2678c2ecf20Sopenharmony_civoid omap2_clk_dflt_find_idlest(struct clk_hw_omap *clk,
2688c2ecf20Sopenharmony_ci				struct clk_omap_reg *idlest_reg,
2698c2ecf20Sopenharmony_ci				u8 *idlest_bit, u8 *idlest_val);
2708c2ecf20Sopenharmony_ci
2718c2ecf20Sopenharmony_civoid omap2_clkt_iclk_allow_idle(struct clk_hw_omap *clk);
2728c2ecf20Sopenharmony_civoid omap2_clkt_iclk_deny_idle(struct clk_hw_omap *clk);
2738c2ecf20Sopenharmony_ci
2748c2ecf20Sopenharmony_ciu8 omap2_init_dpll_parent(struct clk_hw *hw);
2758c2ecf20Sopenharmony_ciint omap3_noncore_dpll_enable(struct clk_hw *hw);
2768c2ecf20Sopenharmony_civoid omap3_noncore_dpll_disable(struct clk_hw *hw);
2778c2ecf20Sopenharmony_ciint omap3_noncore_dpll_set_parent(struct clk_hw *hw, u8 index);
2788c2ecf20Sopenharmony_ciint omap3_noncore_dpll_set_rate(struct clk_hw *hw, unsigned long rate,
2798c2ecf20Sopenharmony_ci				unsigned long parent_rate);
2808c2ecf20Sopenharmony_ciint omap3_noncore_dpll_set_rate_and_parent(struct clk_hw *hw,
2818c2ecf20Sopenharmony_ci					   unsigned long rate,
2828c2ecf20Sopenharmony_ci					   unsigned long parent_rate,
2838c2ecf20Sopenharmony_ci					   u8 index);
2848c2ecf20Sopenharmony_ciint omap3_noncore_dpll_determine_rate(struct clk_hw *hw,
2858c2ecf20Sopenharmony_ci				      struct clk_rate_request *req);
2868c2ecf20Sopenharmony_cilong omap2_dpll_round_rate(struct clk_hw *hw, unsigned long target_rate,
2878c2ecf20Sopenharmony_ci			   unsigned long *parent_rate);
2888c2ecf20Sopenharmony_ciunsigned long omap3_clkoutx2_recalc(struct clk_hw *hw,
2898c2ecf20Sopenharmony_ci				    unsigned long parent_rate);
2908c2ecf20Sopenharmony_ci
2918c2ecf20Sopenharmony_ci/*
2928c2ecf20Sopenharmony_ci * OMAP3_DPLL5_FREQ_FOR_USBHOST: USBHOST and USBTLL are the only clocks
2938c2ecf20Sopenharmony_ci * that are sourced by DPLL5, and both of these require this clock
2948c2ecf20Sopenharmony_ci * to be at 120 MHz for proper operation.
2958c2ecf20Sopenharmony_ci */
2968c2ecf20Sopenharmony_ci#define OMAP3_DPLL5_FREQ_FOR_USBHOST	120000000
2978c2ecf20Sopenharmony_ci
2988c2ecf20Sopenharmony_ciunsigned long omap3_dpll_recalc(struct clk_hw *hw, unsigned long parent_rate);
2998c2ecf20Sopenharmony_ciint omap3_dpll4_set_rate(struct clk_hw *clk, unsigned long rate,
3008c2ecf20Sopenharmony_ci			 unsigned long parent_rate);
3018c2ecf20Sopenharmony_ciint omap3_dpll4_set_rate_and_parent(struct clk_hw *hw, unsigned long rate,
3028c2ecf20Sopenharmony_ci				    unsigned long parent_rate, u8 index);
3038c2ecf20Sopenharmony_ciint omap3_dpll5_set_rate(struct clk_hw *hw, unsigned long rate,
3048c2ecf20Sopenharmony_ci			 unsigned long parent_rate);
3058c2ecf20Sopenharmony_civoid omap3_clk_lock_dpll5(void);
3068c2ecf20Sopenharmony_ci
3078c2ecf20Sopenharmony_ciunsigned long omap4_dpll_regm4xen_recalc(struct clk_hw *hw,
3088c2ecf20Sopenharmony_ci					 unsigned long parent_rate);
3098c2ecf20Sopenharmony_cilong omap4_dpll_regm4xen_round_rate(struct clk_hw *hw,
3108c2ecf20Sopenharmony_ci				    unsigned long target_rate,
3118c2ecf20Sopenharmony_ci				    unsigned long *parent_rate);
3128c2ecf20Sopenharmony_ciint omap4_dpll_regm4xen_determine_rate(struct clk_hw *hw,
3138c2ecf20Sopenharmony_ci				       struct clk_rate_request *req);
3148c2ecf20Sopenharmony_ciint omap2_clk_for_each(int (*fn)(struct clk_hw_omap *hw));
3158c2ecf20Sopenharmony_ci
3168c2ecf20Sopenharmony_ciextern struct ti_clk_ll_ops *ti_clk_ll_ops;
3178c2ecf20Sopenharmony_ci
3188c2ecf20Sopenharmony_ci#endif
319