clock.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. /*
  2. * linux/arch/arm/mach-omap2/clock.h
  3. *
  4. * Copyright (C) 2005-2009 Texas Instruments, Inc.
  5. * Copyright (C) 2004-2011 Nokia Corporation
  6. *
  7. * Contacts:
  8. * Richard Woodruff <r-woodruff2@ti.com>
  9. * Paul Walmsley
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License version 2 as
  13. * published by the Free Software Foundation.
  14. */
  15. #ifndef __ARCH_ARM_MACH_OMAP2_CLOCK_H
  16. #define __ARCH_ARM_MACH_OMAP2_CLOCK_H
  17. #include <linux/kernel.h>
  18. #include <linux/list.h>
  19. #include <linux/clkdev.h>
  20. #include <linux/clk-provider.h>
  21. struct omap_clk {
  22. u16 cpu;
  23. struct clk_lookup lk;
  24. };
  25. #define CLK(dev, con, ck, cp) \
  26. { \
  27. .cpu = cp, \
  28. .lk = { \
  29. .dev_id = dev, \
  30. .con_id = con, \
  31. .clk = ck, \
  32. }, \
  33. }
  34. /* Platform flags for the clkdev-OMAP integration code */
  35. #define CK_242X (1 << 0)
  36. #define CK_243X (1 << 1) /* 243x, 253x */
  37. #define CK_3430ES1 (1 << 2) /* 34xxES1 only */
  38. #define CK_3430ES2PLUS (1 << 3) /* 34xxES2, ES3, non-Sitara 35xx only */
  39. #define CK_AM35XX (1 << 4) /* Sitara AM35xx */
  40. #define CK_36XX (1 << 5) /* 36xx/37xx-specific clocks */
  41. #define CK_443X (1 << 6)
  42. #define CK_TI816X (1 << 7)
  43. #define CK_446X (1 << 8)
  44. #define CK_AM33XX (1 << 9) /* AM33xx specific clocks */
  45. #define CK_34XX (CK_3430ES1 | CK_3430ES2PLUS)
  46. #define CK_3XXX (CK_34XX | CK_AM35XX | CK_36XX)
  47. struct clockdomain;
  48. #define to_clk_hw_omap(_hw) container_of(_hw, struct clk_hw_omap, hw)
  49. #define DEFINE_STRUCT_CLK(_name, _parent_array_name, _clkops_name) \
  50. static struct clk _name = { \
  51. .name = #_name, \
  52. .hw = &_name##_hw.hw, \
  53. .parent_names = _parent_array_name, \
  54. .num_parents = ARRAY_SIZE(_parent_array_name), \
  55. .ops = &_clkops_name, \
  56. };
  57. #define DEFINE_STRUCT_CLK_FLAGS(_name, _parent_array_name, \
  58. _clkops_name, _flags) \
  59. static struct clk _name = { \
  60. .name = #_name, \
  61. .hw = &_name##_hw.hw, \
  62. .parent_names = _parent_array_name, \
  63. .num_parents = ARRAY_SIZE(_parent_array_name), \
  64. .ops = &_clkops_name, \
  65. .flags = _flags, \
  66. };
  67. #define DEFINE_STRUCT_CLK_HW_OMAP(_name, _clkdm_name) \
  68. static struct clk_hw_omap _name##_hw = { \
  69. .hw = { \
  70. .clk = &_name, \
  71. }, \
  72. .clkdm_name = _clkdm_name, \
  73. };
  74. #define DEFINE_CLK_OMAP_MUX(_name, _clkdm_name, _clksel, \
  75. _clksel_reg, _clksel_mask, \
  76. _parent_names, _ops) \
  77. static struct clk _name; \
  78. static struct clk_hw_omap _name##_hw = { \
  79. .hw = { \
  80. .clk = &_name, \
  81. }, \
  82. .clksel = _clksel, \
  83. .clksel_reg = _clksel_reg, \
  84. .clksel_mask = _clksel_mask, \
  85. .clkdm_name = _clkdm_name, \
  86. }; \
  87. DEFINE_STRUCT_CLK(_name, _parent_names, _ops);
  88. #define DEFINE_CLK_OMAP_MUX_GATE(_name, _clkdm_name, _clksel, \
  89. _clksel_reg, _clksel_mask, \
  90. _enable_reg, _enable_bit, \
  91. _hwops, _parent_names, _ops) \
  92. static struct clk _name; \
  93. static struct clk_hw_omap _name##_hw = { \
  94. .hw = { \
  95. .clk = &_name, \
  96. }, \
  97. .ops = _hwops, \
  98. .enable_reg = _enable_reg, \
  99. .enable_bit = _enable_bit, \
  100. .clksel = _clksel, \
  101. .clksel_reg = _clksel_reg, \
  102. .clksel_mask = _clksel_mask, \
  103. .clkdm_name = _clkdm_name, \
  104. }; \
  105. DEFINE_STRUCT_CLK(_name, _parent_names, _ops);
  106. #define DEFINE_CLK_OMAP_HSDIVIDER(_name, _parent_name, \
  107. _parent_ptr, _flags, \
  108. _clksel_reg, _clksel_mask) \
  109. static const struct clksel _name##_div[] = { \
  110. { \
  111. .parent = _parent_ptr, \
  112. .rates = div31_1to31_rates \
  113. }, \
  114. { .parent = NULL }, \
  115. }; \
  116. static struct clk _name; \
  117. static const char *_name##_parent_names[] = { \
  118. _parent_name, \
  119. }; \
  120. static struct clk_hw_omap _name##_hw = { \
  121. .hw = { \
  122. .clk = &_name, \
  123. }, \
  124. .clksel = _name##_div, \
  125. .clksel_reg = _clksel_reg, \
  126. .clksel_mask = _clksel_mask, \
  127. .ops = &clkhwops_omap4_dpllmx, \
  128. }; \
  129. DEFINE_STRUCT_CLK(_name, _name##_parent_names, omap_hsdivider_ops);
  130. /* struct clksel_rate.flags possibilities */
  131. #define RATE_IN_242X (1 << 0)
  132. #define RATE_IN_243X (1 << 1)
  133. #define RATE_IN_3430ES1 (1 << 2) /* 3430ES1 rates only */
  134. #define RATE_IN_3430ES2PLUS (1 << 3) /* 3430 ES >= 2 rates only */
  135. #define RATE_IN_36XX (1 << 4)
  136. #define RATE_IN_4430 (1 << 5)
  137. #define RATE_IN_TI816X (1 << 6)
  138. #define RATE_IN_4460 (1 << 7)
  139. #define RATE_IN_AM33XX (1 << 8)
  140. #define RATE_IN_TI814X (1 << 9)
  141. #define RATE_IN_24XX (RATE_IN_242X | RATE_IN_243X)
  142. #define RATE_IN_34XX (RATE_IN_3430ES1 | RATE_IN_3430ES2PLUS)
  143. #define RATE_IN_3XXX (RATE_IN_34XX | RATE_IN_36XX)
  144. #define RATE_IN_44XX (RATE_IN_4430 | RATE_IN_4460)
  145. /* RATE_IN_3430ES2PLUS_36XX includes 34xx/35xx with ES >=2, and all 36xx/37xx */
  146. #define RATE_IN_3430ES2PLUS_36XX (RATE_IN_3430ES2PLUS | RATE_IN_36XX)
  147. /**
  148. * struct clksel_rate - register bitfield values corresponding to clk divisors
  149. * @val: register bitfield value (shifted to bit 0)
  150. * @div: clock divisor corresponding to @val
  151. * @flags: (see "struct clksel_rate.flags possibilities" above)
  152. *
  153. * @val should match the value of a read from struct clk.clksel_reg
  154. * AND'ed with struct clk.clksel_mask, shifted right to bit 0.
  155. *
  156. * @div is the divisor that should be applied to the parent clock's rate
  157. * to produce the current clock's rate.
  158. */
  159. struct clksel_rate {
  160. u32 val;
  161. u8 div;
  162. u16 flags;
  163. };
  164. /**
  165. * struct clksel - available parent clocks, and a pointer to their divisors
  166. * @parent: struct clk * to a possible parent clock
  167. * @rates: available divisors for this parent clock
  168. *
  169. * A struct clksel is always associated with one or more struct clks
  170. * and one or more struct clksel_rates.
  171. */
  172. struct clksel {
  173. struct clk *parent;
  174. const struct clksel_rate *rates;
  175. };
  176. /**
  177. * struct dpll_data - DPLL registers and integration data
  178. * @mult_div1_reg: register containing the DPLL M and N bitfields
  179. * @mult_mask: mask of the DPLL M bitfield in @mult_div1_reg
  180. * @div1_mask: mask of the DPLL N bitfield in @mult_div1_reg
  181. * @clk_bypass: struct clk pointer to the clock's bypass clock input
  182. * @clk_ref: struct clk pointer to the clock's reference clock input
  183. * @control_reg: register containing the DPLL mode bitfield
  184. * @enable_mask: mask of the DPLL mode bitfield in @control_reg
  185. * @last_rounded_rate: cache of the last rate result of omap2_dpll_round_rate()
  186. * @last_rounded_m: cache of the last M result of omap2_dpll_round_rate()
  187. * @last_rounded_m4xen: cache of the last M4X result of
  188. * omap4_dpll_regm4xen_round_rate()
  189. * @last_rounded_lpmode: cache of the last lpmode result of
  190. * omap4_dpll_lpmode_recalc()
  191. * @max_multiplier: maximum valid non-bypass multiplier value (actual)
  192. * @last_rounded_n: cache of the last N result of omap2_dpll_round_rate()
  193. * @min_divider: minimum valid non-bypass divider value (actual)
  194. * @max_divider: maximum valid non-bypass divider value (actual)
  195. * @modes: possible values of @enable_mask
  196. * @autoidle_reg: register containing the DPLL autoidle mode bitfield
  197. * @idlest_reg: register containing the DPLL idle status bitfield
  198. * @autoidle_mask: mask of the DPLL autoidle mode bitfield in @autoidle_reg
  199. * @freqsel_mask: mask of the DPLL jitter correction bitfield in @control_reg
  200. * @idlest_mask: mask of the DPLL idle status bitfield in @idlest_reg
  201. * @lpmode_mask: mask of the DPLL low-power mode bitfield in @control_reg
  202. * @m4xen_mask: mask of the DPLL M4X multiplier bitfield in @control_reg
  203. * @auto_recal_bit: bitshift of the driftguard enable bit in @control_reg
  204. * @recal_en_bit: bitshift of the PRM_IRQENABLE_* bit for recalibration IRQs
  205. * @recal_st_bit: bitshift of the PRM_IRQSTATUS_* bit for recalibration IRQs
  206. * @flags: DPLL type/features (see below)
  207. *
  208. * Possible values for @flags:
  209. * DPLL_J_TYPE: "J-type DPLL" (only some 36xx, 4xxx DPLLs)
  210. *
  211. * @freqsel_mask is only used on the OMAP34xx family and AM35xx.
  212. *
  213. * XXX Some DPLLs have multiple bypass inputs, so it's not technically
  214. * correct to only have one @clk_bypass pointer.
  215. *
  216. * XXX The runtime-variable fields (@last_rounded_rate, @last_rounded_m,
  217. * @last_rounded_n) should be separated from the runtime-fixed fields
  218. * and placed into a different structure, so that the runtime-fixed data
  219. * can be placed into read-only space.
  220. */
  221. struct dpll_data {
  222. void __iomem *mult_div1_reg;
  223. u32 mult_mask;
  224. u32 div1_mask;
  225. struct clk *clk_bypass;
  226. struct clk *clk_ref;
  227. void __iomem *control_reg;
  228. u32 enable_mask;
  229. unsigned long last_rounded_rate;
  230. u16 last_rounded_m;
  231. u8 last_rounded_m4xen;
  232. u8 last_rounded_lpmode;
  233. u16 max_multiplier;
  234. u8 last_rounded_n;
  235. u8 min_divider;
  236. u16 max_divider;
  237. u8 modes;
  238. void __iomem *autoidle_reg;
  239. void __iomem *idlest_reg;
  240. u32 autoidle_mask;
  241. u32 freqsel_mask;
  242. u32 idlest_mask;
  243. u32 dco_mask;
  244. u32 sddiv_mask;
  245. u32 lpmode_mask;
  246. u32 m4xen_mask;
  247. u8 auto_recal_bit;
  248. u8 recal_en_bit;
  249. u8 recal_st_bit;
  250. u8 flags;
  251. };
  252. /*
  253. * struct clk.flags possibilities
  254. *
  255. * XXX document the rest of the clock flags here
  256. *
  257. * CLOCK_CLKOUTX2: (OMAP4 only) DPLL CLKOUT and CLKOUTX2 GATE_CTRL
  258. * bits share the same register. This flag allows the
  259. * omap4_dpllmx*() code to determine which GATE_CTRL bit field
  260. * should be used. This is a temporary solution - a better approach
  261. * would be to associate clock type-specific data with the clock,
  262. * similar to the struct dpll_data approach.
  263. */
  264. #define ENABLE_REG_32BIT (1 << 0) /* Use 32-bit access */
  265. #define CLOCK_IDLE_CONTROL (1 << 1)
  266. #define CLOCK_NO_IDLE_PARENT (1 << 2)
  267. #define ENABLE_ON_INIT (1 << 3) /* Enable upon framework init */
  268. #define INVERT_ENABLE (1 << 4) /* 0 enables, 1 disables */
  269. #define CLOCK_CLKOUTX2 (1 << 5)
  270. /**
  271. * struct clk_hw_omap - OMAP struct clk
  272. * @node: list_head connecting this clock into the full clock list
  273. * @enable_reg: register to write to enable the clock (see @enable_bit)
  274. * @enable_bit: bitshift to write to enable/disable the clock (see @enable_reg)
  275. * @flags: see "struct clk.flags possibilities" above
  276. * @clksel_reg: for clksel clks, register va containing src/divisor select
  277. * @clksel_mask: bitmask in @clksel_reg for the src/divisor selector
  278. * @clksel: for clksel clks, pointer to struct clksel for this clock
  279. * @dpll_data: for DPLLs, pointer to struct dpll_data for this clock
  280. * @clkdm_name: clockdomain name that this clock is contained in
  281. * @clkdm: pointer to struct clockdomain, resolved from @clkdm_name at runtime
  282. * @rate_offset: bitshift for rate selection bitfield (OMAP1 only)
  283. * @src_offset: bitshift for source selection bitfield (OMAP1 only)
  284. *
  285. * XXX @rate_offset, @src_offset should probably be removed and OMAP1
  286. * clock code converted to use clksel.
  287. *
  288. */
  289. struct clk_hw_omap_ops;
  290. struct clk_hw_omap {
  291. struct clk_hw hw;
  292. struct list_head node;
  293. unsigned long fixed_rate;
  294. u8 fixed_div;
  295. void __iomem *enable_reg;
  296. u8 enable_bit;
  297. u8 flags;
  298. void __iomem *clksel_reg;
  299. u32 clksel_mask;
  300. const struct clksel *clksel;
  301. struct dpll_data *dpll_data;
  302. const char *clkdm_name;
  303. struct clockdomain *clkdm;
  304. const struct clk_hw_omap_ops *ops;
  305. };
  306. struct clk_hw_omap_ops {
  307. void (*find_idlest)(struct clk_hw_omap *oclk,
  308. void __iomem **idlest_reg,
  309. u8 *idlest_bit, u8 *idlest_val);
  310. void (*find_companion)(struct clk_hw_omap *oclk,
  311. void __iomem **other_reg,
  312. u8 *other_bit);
  313. void (*allow_idle)(struct clk_hw_omap *oclk);
  314. void (*deny_idle)(struct clk_hw_omap *oclk);
  315. };
  316. unsigned long omap_fixed_divisor_recalc(struct clk_hw *hw,
  317. unsigned long parent_rate);
  318. /* CM_CLKSEL2_PLL.CORE_CLK_SRC bits (2XXX) */
  319. #define CORE_CLK_SRC_32K 0x0
  320. #define CORE_CLK_SRC_DPLL 0x1
  321. #define CORE_CLK_SRC_DPLL_X2 0x2
  322. /* OMAP2xxx CM_CLKEN_PLL.EN_DPLL bits - for omap2_get_dpll_rate() */
  323. #define OMAP2XXX_EN_DPLL_LPBYPASS 0x1
  324. #define OMAP2XXX_EN_DPLL_FRBYPASS 0x2
  325. #define OMAP2XXX_EN_DPLL_LOCKED 0x3
  326. /* OMAP3xxx CM_CLKEN_PLL*.EN_*_DPLL bits - for omap2_get_dpll_rate() */
  327. #define OMAP3XXX_EN_DPLL_LPBYPASS 0x5
  328. #define OMAP3XXX_EN_DPLL_FRBYPASS 0x6
  329. #define OMAP3XXX_EN_DPLL_LOCKED 0x7
  330. /* OMAP4xxx CM_CLKMODE_DPLL*.EN_*_DPLL bits - for omap2_get_dpll_rate() */
  331. #define OMAP4XXX_EN_DPLL_MNBYPASS 0x4
  332. #define OMAP4XXX_EN_DPLL_LPBYPASS 0x5
  333. #define OMAP4XXX_EN_DPLL_FRBYPASS 0x6
  334. #define OMAP4XXX_EN_DPLL_LOCKED 0x7
  335. /* CM_CLKEN_PLL*.EN* bit values - not all are available for every DPLL */
  336. #define DPLL_LOW_POWER_STOP 0x1
  337. #define DPLL_LOW_POWER_BYPASS 0x5
  338. #define DPLL_LOCKED 0x7
  339. /* DPLL Type and DCO Selection Flags */
  340. #define DPLL_J_TYPE 0x1
  341. long omap2_dpll_round_rate(struct clk_hw *hw, unsigned long target_rate,
  342. unsigned long *parent_rate);
  343. unsigned long omap3_dpll_recalc(struct clk_hw *hw, unsigned long parent_rate);
  344. int omap3_noncore_dpll_enable(struct clk_hw *hw);
  345. void omap3_noncore_dpll_disable(struct clk_hw *hw);
  346. int omap3_noncore_dpll_set_rate(struct clk_hw *hw, unsigned long rate,
  347. unsigned long parent_rate);
  348. u32 omap3_dpll_autoidle_read(struct clk_hw_omap *clk);
  349. void omap3_dpll_allow_idle(struct clk_hw_omap *clk);
  350. void omap3_dpll_deny_idle(struct clk_hw_omap *clk);
  351. unsigned long omap3_clkoutx2_recalc(struct clk_hw *hw,
  352. unsigned long parent_rate);
  353. int omap4_dpllmx_gatectrl_read(struct clk_hw_omap *clk);
  354. void omap4_dpllmx_allow_gatectrl(struct clk_hw_omap *clk);
  355. void omap4_dpllmx_deny_gatectrl(struct clk_hw_omap *clk);
  356. unsigned long omap4_dpll_regm4xen_recalc(struct clk_hw *hw,
  357. unsigned long parent_rate);
  358. long omap4_dpll_regm4xen_round_rate(struct clk_hw *hw,
  359. unsigned long target_rate,
  360. unsigned long *parent_rate);
  361. void omap2_init_clk_clkdm(struct clk_hw *clk);
  362. void __init omap2_clk_disable_clkdm_control(void);
  363. /* clkt_clksel.c public functions */
  364. u32 omap2_clksel_round_rate_div(struct clk_hw_omap *clk,
  365. unsigned long target_rate,
  366. u32 *new_div);
  367. u8 omap2_clksel_find_parent_index(struct clk_hw *hw);
  368. unsigned long omap2_clksel_recalc(struct clk_hw *hw, unsigned long parent_rate);
  369. long omap2_clksel_round_rate(struct clk_hw *hw, unsigned long target_rate,
  370. unsigned long *parent_rate);
  371. int omap2_clksel_set_rate(struct clk_hw *hw, unsigned long rate,
  372. unsigned long parent_rate);
  373. int omap2_clksel_set_parent(struct clk_hw *hw, u8 field_val);
  374. /* clkt_iclk.c public functions */
  375. extern void omap2_clkt_iclk_allow_idle(struct clk_hw_omap *clk);
  376. extern void omap2_clkt_iclk_deny_idle(struct clk_hw_omap *clk);
  377. u8 omap2_init_dpll_parent(struct clk_hw *hw);
  378. unsigned long omap2_get_dpll_rate(struct clk_hw_omap *clk);
  379. int omap2_dflt_clk_enable(struct clk_hw *hw);
  380. void omap2_dflt_clk_disable(struct clk_hw *hw);
  381. int omap2_dflt_clk_is_enabled(struct clk_hw *hw);
  382. void omap2_clk_dflt_find_companion(struct clk_hw_omap *clk,
  383. void __iomem **other_reg,
  384. u8 *other_bit);
  385. void omap2_clk_dflt_find_idlest(struct clk_hw_omap *clk,
  386. void __iomem **idlest_reg,
  387. u8 *idlest_bit, u8 *idlest_val);
  388. void omap2_init_clk_hw_omap_clocks(struct clk *clk);
  389. int omap2_clk_enable_autoidle_all(void);
  390. int omap2_clk_disable_autoidle_all(void);
  391. void omap2_clk_enable_init_clocks(const char **clk_names, u8 num_clocks);
  392. int omap2_clk_switch_mpurate_at_boot(const char *mpurate_ck_name);
  393. void omap2_clk_print_new_rates(const char *hfclkin_ck_name,
  394. const char *core_ck_name,
  395. const char *mpu_ck_name);
  396. extern u16 cpu_mask;
  397. extern const struct clkops clkops_omap2_dflt_wait;
  398. extern const struct clkops clkops_dummy;
  399. extern const struct clkops clkops_omap2_dflt;
  400. extern struct clk_functions omap2_clk_functions;
  401. extern const struct clksel_rate gpt_32k_rates[];
  402. extern const struct clksel_rate gpt_sys_rates[];
  403. extern const struct clksel_rate gfx_l3_rates[];
  404. extern const struct clksel_rate dsp_ick_rates[];
  405. extern struct clk dummy_ck;
  406. extern const struct clk_hw_omap_ops clkhwops_omap3_dpll;
  407. extern const struct clk_hw_omap_ops clkhwops_iclk_wait;
  408. extern const struct clk_hw_omap_ops clkhwops_wait;
  409. extern const struct clk_hw_omap_ops clkhwops_omap4_dpllmx;
  410. extern const struct clk_hw_omap_ops clkhwops_iclk;
  411. extern const struct clk_hw_omap_ops clkhwops_omap3430es2_ssi_wait;
  412. extern const struct clk_hw_omap_ops clkhwops_omap3430es2_iclk_ssi_wait;
  413. extern const struct clk_hw_omap_ops clkhwops_omap3430es2_dss_usbhost_wait;
  414. extern const struct clk_hw_omap_ops clkhwops_omap3430es2_iclk_dss_usbhost_wait;
  415. extern const struct clk_hw_omap_ops clkhwops_omap3430es2_iclk_hsotgusb_wait;
  416. extern const struct clk_hw_omap_ops clkhwops_omap3430es2_hsotgusb_wait;
  417. extern const struct clk_hw_omap_ops clkhwops_am35xx_ipss_module_wait;
  418. extern const struct clk_hw_omap_ops clkhwops_am35xx_ipss_wait;
  419. extern const struct clk_hw_omap_ops clkhwops_apll54;
  420. extern const struct clk_hw_omap_ops clkhwops_apll96;
  421. extern const struct clk_hw_omap_ops clkhwops_omap2xxx_dpll;
  422. extern const struct clk_hw_omap_ops clkhwops_omap2430_i2chs_wait;
  423. /* clksel_rate blocks shared between OMAP44xx and AM33xx */
  424. extern const struct clksel_rate div_1_0_rates[];
  425. extern const struct clksel_rate div3_1to4_rates[];
  426. extern const struct clksel_rate div_1_1_rates[];
  427. extern const struct clksel_rate div_1_2_rates[];
  428. extern const struct clksel_rate div_1_3_rates[];
  429. extern const struct clksel_rate div_1_4_rates[];
  430. extern const struct clksel_rate div31_1to31_rates[];
  431. extern int am33xx_clk_init(void);
  432. extern int omap2_clkops_enable_clkdm(struct clk_hw *hw);
  433. extern void omap2_clkops_disable_clkdm(struct clk_hw *hw);
  434. #endif