clk-icst.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  1. /*
  2. * Driver for the ICST307 VCO clock found in the ARM Reference designs.
  3. * We wrap the custom interface from <asm/hardware/icst.h> into the generic
  4. * clock framework.
  5. *
  6. * Copyright (C) 2012-2015 Linus Walleij
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. *
  12. * TODO: when all ARM reference designs are migrated to generic clocks, the
  13. * ICST clock code from the ARM tree should probably be merged into this
  14. * file.
  15. */
  16. #include <linux/kernel.h>
  17. #include <linux/slab.h>
  18. #include <linux/export.h>
  19. #include <linux/err.h>
  20. #include <linux/clk-provider.h>
  21. #include <linux/io.h>
  22. #include <linux/regmap.h>
  23. #include <linux/mfd/syscon.h>
  24. #include "icst.h"
  25. #include "clk-icst.h"
  26. /* Magic unlocking token used on all Versatile boards */
  27. #define VERSATILE_LOCK_VAL 0xA05F
  28. #define VERSATILE_AUX_OSC_BITS 0x7FFFF
  29. #define INTEGRATOR_AP_CM_BITS 0xFF
  30. #define INTEGRATOR_AP_SYS_BITS 0xFF
  31. #define INTEGRATOR_CP_CM_CORE_BITS 0x7FF
  32. #define INTEGRATOR_CP_CM_MEM_BITS 0x7FF000
  33. #define INTEGRATOR_AP_PCI_25_33_MHZ BIT(8)
  34. /**
  35. * enum icst_control_type - the type of ICST control register
  36. */
  37. enum icst_control_type {
  38. ICST_VERSATILE, /* The standard type, all control bits available */
  39. ICST_INTEGRATOR_AP_CM, /* Only 8 bits of VDW available */
  40. ICST_INTEGRATOR_AP_SYS, /* Only 8 bits of VDW available */
  41. ICST_INTEGRATOR_AP_PCI, /* Odd bit pattern storage */
  42. ICST_INTEGRATOR_CP_CM_CORE, /* Only 8 bits of VDW and 3 bits of OD */
  43. ICST_INTEGRATOR_CP_CM_MEM, /* Only 8 bits of VDW and 3 bits of OD */
  44. };
  45. /**
  46. * struct clk_icst - ICST VCO clock wrapper
  47. * @hw: corresponding clock hardware entry
  48. * @vcoreg: VCO register address
  49. * @lockreg: VCO lock register address
  50. * @params: parameters for this ICST instance
  51. * @rate: current rate
  52. * @ctype: the type of control register for the ICST
  53. */
  54. struct clk_icst {
  55. struct clk_hw hw;
  56. struct regmap *map;
  57. u32 vcoreg_off;
  58. u32 lockreg_off;
  59. struct icst_params *params;
  60. unsigned long rate;
  61. enum icst_control_type ctype;
  62. };
  63. #define to_icst(_hw) container_of(_hw, struct clk_icst, hw)
  64. /**
  65. * vco_get() - get ICST VCO settings from a certain ICST
  66. * @icst: the ICST clock to get
  67. * @vco: the VCO struct to return the value in
  68. */
  69. static int vco_get(struct clk_icst *icst, struct icst_vco *vco)
  70. {
  71. u32 val;
  72. int ret;
  73. ret = regmap_read(icst->map, icst->vcoreg_off, &val);
  74. if (ret)
  75. return ret;
  76. /*
  77. * The Integrator/AP core clock can only access the low eight
  78. * bits of the v PLL divider. Bit 8 is tied low and always zero,
  79. * r is hardwired to 22 and output divider s is hardwired to 1
  80. * (divide by 2) according to the document
  81. * "Integrator CM926EJ-S, CM946E-S, CM966E-S, CM1026EJ-S and
  82. * CM1136JF-S User Guide" ARM DUI 0138E, page 3-13 thru 3-14.
  83. */
  84. if (icst->ctype == ICST_INTEGRATOR_AP_CM) {
  85. vco->v = val & INTEGRATOR_AP_CM_BITS;
  86. vco->r = 22;
  87. vco->s = 1;
  88. return 0;
  89. }
  90. /*
  91. * The Integrator/AP system clock on the base board can only
  92. * access the low eight bits of the v PLL divider. Bit 8 is tied low
  93. * and always zero, r is hardwired to 46, and the output divider is
  94. * hardwired to 3 (divide by 4) according to the document
  95. * "Integrator AP ASIC Development Motherboard" ARM DUI 0098B,
  96. * page 3-16.
  97. */
  98. if (icst->ctype == ICST_INTEGRATOR_AP_SYS) {
  99. vco->v = val & INTEGRATOR_AP_SYS_BITS;
  100. vco->r = 46;
  101. vco->s = 3;
  102. return 0;
  103. }
  104. /*
  105. * The Integrator/AP PCI clock is using an odd pattern to create
  106. * the child clock, basically a single bit called DIVX/Y is used
  107. * to select between two different hardwired values: setting the
  108. * bit to 0 yields v = 17, r = 22 and OD = 1, whereas setting the
  109. * bit to 1 yields v = 14, r = 14 and OD = 1 giving the frequencies
  110. * 33 or 25 MHz respectively.
  111. */
  112. if (icst->ctype == ICST_INTEGRATOR_AP_PCI) {
  113. bool divxy = !!(val & INTEGRATOR_AP_PCI_25_33_MHZ);
  114. vco->v = divxy ? 17 : 14;
  115. vco->r = divxy ? 22 : 14;
  116. vco->s = 1;
  117. return 0;
  118. }
  119. /*
  120. * The Integrator/CP core clock can access the low eight bits
  121. * of the v PLL divider. Bit 8 is tied low and always zero,
  122. * r is hardwired to 22 and the output divider s is accessible
  123. * in bits 8 thru 10 according to the document
  124. * "Integrator/CM940T, CM920T, CM740T, and CM720T User Guide"
  125. * ARM DUI 0157A, page 3-20 thru 3-23 and 4-10.
  126. */
  127. if (icst->ctype == ICST_INTEGRATOR_CP_CM_CORE) {
  128. vco->v = val & 0xFF;
  129. vco->r = 22;
  130. vco->s = (val >> 8) & 7;
  131. return 0;
  132. }
  133. if (icst->ctype == ICST_INTEGRATOR_CP_CM_MEM) {
  134. vco->v = (val >> 12) & 0xFF;
  135. vco->r = 22;
  136. vco->s = (val >> 20) & 7;
  137. return 0;
  138. }
  139. vco->v = val & 0x1ff;
  140. vco->r = (val >> 9) & 0x7f;
  141. vco->s = (val >> 16) & 03;
  142. return 0;
  143. }
  144. /**
  145. * vco_set() - commit changes to an ICST VCO
  146. * @icst: the ICST clock to set
  147. * @vco: the VCO struct to set the changes from
  148. */
  149. static int vco_set(struct clk_icst *icst, struct icst_vco vco)
  150. {
  151. u32 mask;
  152. u32 val;
  153. int ret;
  154. /* Mask the bits used by the VCO */
  155. switch (icst->ctype) {
  156. case ICST_INTEGRATOR_AP_CM:
  157. mask = INTEGRATOR_AP_CM_BITS;
  158. val = vco.v & 0xFF;
  159. if (vco.v & 0x100)
  160. pr_err("ICST error: tried to set bit 8 of VDW\n");
  161. if (vco.s != 1)
  162. pr_err("ICST error: tried to use VOD != 1\n");
  163. if (vco.r != 22)
  164. pr_err("ICST error: tried to use RDW != 22\n");
  165. break;
  166. case ICST_INTEGRATOR_AP_SYS:
  167. mask = INTEGRATOR_AP_SYS_BITS;
  168. val = vco.v & 0xFF;
  169. if (vco.v & 0x100)
  170. pr_err("ICST error: tried to set bit 8 of VDW\n");
  171. if (vco.s != 3)
  172. pr_err("ICST error: tried to use VOD != 1\n");
  173. if (vco.r != 46)
  174. pr_err("ICST error: tried to use RDW != 22\n");
  175. break;
  176. case ICST_INTEGRATOR_CP_CM_CORE:
  177. mask = INTEGRATOR_CP_CM_CORE_BITS; /* Uses 12 bits */
  178. val = (vco.v & 0xFF) | vco.s << 8;
  179. if (vco.v & 0x100)
  180. pr_err("ICST error: tried to set bit 8 of VDW\n");
  181. if (vco.r != 22)
  182. pr_err("ICST error: tried to use RDW != 22\n");
  183. break;
  184. case ICST_INTEGRATOR_CP_CM_MEM:
  185. mask = INTEGRATOR_CP_CM_MEM_BITS; /* Uses 12 bits */
  186. val = ((vco.v & 0xFF) << 12) | (vco.s << 20);
  187. if (vco.v & 0x100)
  188. pr_err("ICST error: tried to set bit 8 of VDW\n");
  189. if (vco.r != 22)
  190. pr_err("ICST error: tried to use RDW != 22\n");
  191. break;
  192. default:
  193. /* Regular auxilary oscillator */
  194. mask = VERSATILE_AUX_OSC_BITS;
  195. val = vco.v | (vco.r << 9) | (vco.s << 16);
  196. break;
  197. }
  198. pr_debug("ICST: new val = 0x%08x\n", val);
  199. /* This magic unlocks the VCO so it can be controlled */
  200. ret = regmap_write(icst->map, icst->lockreg_off, VERSATILE_LOCK_VAL);
  201. if (ret)
  202. return ret;
  203. ret = regmap_update_bits(icst->map, icst->vcoreg_off, mask, val);
  204. if (ret)
  205. return ret;
  206. /* This locks the VCO again */
  207. ret = regmap_write(icst->map, icst->lockreg_off, 0);
  208. if (ret)
  209. return ret;
  210. return 0;
  211. }
  212. static unsigned long icst_recalc_rate(struct clk_hw *hw,
  213. unsigned long parent_rate)
  214. {
  215. struct clk_icst *icst = to_icst(hw);
  216. struct icst_vco vco;
  217. int ret;
  218. if (parent_rate)
  219. icst->params->ref = parent_rate;
  220. ret = vco_get(icst, &vco);
  221. if (ret) {
  222. pr_err("ICST: could not get VCO setting\n");
  223. return 0;
  224. }
  225. icst->rate = icst_hz(icst->params, vco);
  226. return icst->rate;
  227. }
  228. static long icst_round_rate(struct clk_hw *hw, unsigned long rate,
  229. unsigned long *prate)
  230. {
  231. struct clk_icst *icst = to_icst(hw);
  232. struct icst_vco vco;
  233. if (icst->ctype == ICST_INTEGRATOR_AP_CM ||
  234. icst->ctype == ICST_INTEGRATOR_CP_CM_CORE) {
  235. if (rate <= 12000000)
  236. return 12000000;
  237. if (rate >= 160000000)
  238. return 160000000;
  239. /* Slam to closest megahertz */
  240. return DIV_ROUND_CLOSEST(rate, 1000000) * 1000000;
  241. }
  242. if (icst->ctype == ICST_INTEGRATOR_CP_CM_MEM) {
  243. if (rate <= 6000000)
  244. return 6000000;
  245. if (rate >= 66000000)
  246. return 66000000;
  247. /* Slam to closest 0.5 megahertz */
  248. return DIV_ROUND_CLOSEST(rate, 500000) * 500000;
  249. }
  250. if (icst->ctype == ICST_INTEGRATOR_AP_SYS) {
  251. /* Divides between 3 and 50 MHz in steps of 0.25 MHz */
  252. if (rate <= 3000000)
  253. return 3000000;
  254. if (rate >= 50000000)
  255. return 5000000;
  256. /* Slam to closest 0.25 MHz */
  257. return DIV_ROUND_CLOSEST(rate, 250000) * 250000;
  258. }
  259. if (icst->ctype == ICST_INTEGRATOR_AP_PCI) {
  260. /*
  261. * If we're below or less than halfway from 25 to 33 MHz
  262. * select 25 MHz
  263. */
  264. if (rate <= 25000000 || rate < 29000000)
  265. return 25000000;
  266. /* Else just return the default frequency */
  267. return 33000000;
  268. }
  269. vco = icst_hz_to_vco(icst->params, rate);
  270. return icst_hz(icst->params, vco);
  271. }
  272. static int icst_set_rate(struct clk_hw *hw, unsigned long rate,
  273. unsigned long parent_rate)
  274. {
  275. struct clk_icst *icst = to_icst(hw);
  276. struct icst_vco vco;
  277. if (icst->ctype == ICST_INTEGRATOR_AP_PCI) {
  278. /* This clock is especially primitive */
  279. unsigned int val;
  280. int ret;
  281. if (rate == 25000000) {
  282. val = 0;
  283. } else if (rate == 33000000) {
  284. val = INTEGRATOR_AP_PCI_25_33_MHZ;
  285. } else {
  286. pr_err("ICST: cannot set PCI frequency %lu\n",
  287. rate);
  288. return -EINVAL;
  289. }
  290. ret = regmap_write(icst->map, icst->lockreg_off,
  291. VERSATILE_LOCK_VAL);
  292. if (ret)
  293. return ret;
  294. ret = regmap_update_bits(icst->map, icst->vcoreg_off,
  295. INTEGRATOR_AP_PCI_25_33_MHZ,
  296. val);
  297. if (ret)
  298. return ret;
  299. /* This locks the VCO again */
  300. ret = regmap_write(icst->map, icst->lockreg_off, 0);
  301. if (ret)
  302. return ret;
  303. return 0;
  304. }
  305. if (parent_rate)
  306. icst->params->ref = parent_rate;
  307. vco = icst_hz_to_vco(icst->params, rate);
  308. icst->rate = icst_hz(icst->params, vco);
  309. return vco_set(icst, vco);
  310. }
  311. static const struct clk_ops icst_ops = {
  312. .recalc_rate = icst_recalc_rate,
  313. .round_rate = icst_round_rate,
  314. .set_rate = icst_set_rate,
  315. };
  316. static struct clk *icst_clk_setup(struct device *dev,
  317. const struct clk_icst_desc *desc,
  318. const char *name,
  319. const char *parent_name,
  320. struct regmap *map,
  321. enum icst_control_type ctype)
  322. {
  323. struct clk *clk;
  324. struct clk_icst *icst;
  325. struct clk_init_data init;
  326. struct icst_params *pclone;
  327. icst = kzalloc(sizeof(struct clk_icst), GFP_KERNEL);
  328. if (!icst) {
  329. pr_err("could not allocate ICST clock!\n");
  330. return ERR_PTR(-ENOMEM);
  331. }
  332. pclone = kmemdup(desc->params, sizeof(*pclone), GFP_KERNEL);
  333. if (!pclone) {
  334. kfree(icst);
  335. pr_err("could not clone ICST params\n");
  336. return ERR_PTR(-ENOMEM);
  337. }
  338. init.name = name;
  339. init.ops = &icst_ops;
  340. init.flags = 0;
  341. init.parent_names = (parent_name ? &parent_name : NULL);
  342. init.num_parents = (parent_name ? 1 : 0);
  343. icst->map = map;
  344. icst->hw.init = &init;
  345. icst->params = pclone;
  346. icst->vcoreg_off = desc->vco_offset;
  347. icst->lockreg_off = desc->lock_offset;
  348. icst->ctype = ctype;
  349. clk = clk_register(dev, &icst->hw);
  350. if (IS_ERR(clk)) {
  351. kfree(pclone);
  352. kfree(icst);
  353. }
  354. return clk;
  355. }
  356. struct clk *icst_clk_register(struct device *dev,
  357. const struct clk_icst_desc *desc,
  358. const char *name,
  359. const char *parent_name,
  360. void __iomem *base)
  361. {
  362. struct regmap_config icst_regmap_conf = {
  363. .reg_bits = 32,
  364. .val_bits = 32,
  365. .reg_stride = 4,
  366. };
  367. struct regmap *map;
  368. map = regmap_init_mmio(dev, base, &icst_regmap_conf);
  369. if (IS_ERR(map)) {
  370. pr_err("could not initialize ICST regmap\n");
  371. return ERR_CAST(map);
  372. }
  373. return icst_clk_setup(dev, desc, name, parent_name, map,
  374. ICST_VERSATILE);
  375. }
  376. EXPORT_SYMBOL_GPL(icst_clk_register);
  377. #ifdef CONFIG_OF
  378. /*
  379. * In a device tree, an memory-mapped ICST clock appear as a child
  380. * of a syscon node. Assume this and probe it only as a child of a
  381. * syscon.
  382. */
  383. static const struct icst_params icst525_params = {
  384. .vco_max = ICST525_VCO_MAX_5V,
  385. .vco_min = ICST525_VCO_MIN,
  386. .vd_min = 8,
  387. .vd_max = 263,
  388. .rd_min = 3,
  389. .rd_max = 65,
  390. .s2div = icst525_s2div,
  391. .idx2s = icst525_idx2s,
  392. };
  393. static const struct icst_params icst307_params = {
  394. .vco_max = ICST307_VCO_MAX,
  395. .vco_min = ICST307_VCO_MIN,
  396. .vd_min = 4 + 8,
  397. .vd_max = 511 + 8,
  398. .rd_min = 1 + 2,
  399. .rd_max = 127 + 2,
  400. .s2div = icst307_s2div,
  401. .idx2s = icst307_idx2s,
  402. };
  403. /**
  404. * The core modules on the Integrator/AP and Integrator/CP have
  405. * especially crippled ICST525 control.
  406. */
  407. static const struct icst_params icst525_apcp_cm_params = {
  408. .vco_max = ICST525_VCO_MAX_5V,
  409. .vco_min = ICST525_VCO_MIN,
  410. /* Minimum 12 MHz, VDW = 4 */
  411. .vd_min = 12,
  412. /*
  413. * Maximum 160 MHz, VDW = 152 for all core modules, but
  414. * CM926EJ-S, CM1026EJ-S and CM1136JF-S can actually
  415. * go to 200 MHz (max VDW = 192).
  416. */
  417. .vd_max = 192,
  418. /* r is hardcoded to 22 and this is the actual divisor, +2 */
  419. .rd_min = 24,
  420. .rd_max = 24,
  421. .s2div = icst525_s2div,
  422. .idx2s = icst525_idx2s,
  423. };
  424. static const struct icst_params icst525_ap_sys_params = {
  425. .vco_max = ICST525_VCO_MAX_5V,
  426. .vco_min = ICST525_VCO_MIN,
  427. /* Minimum 3 MHz, VDW = 4 */
  428. .vd_min = 3,
  429. /* Maximum 50 MHz, VDW = 192 */
  430. .vd_max = 50,
  431. /* r is hardcoded to 46 and this is the actual divisor, +2 */
  432. .rd_min = 48,
  433. .rd_max = 48,
  434. .s2div = icst525_s2div,
  435. .idx2s = icst525_idx2s,
  436. };
  437. static const struct icst_params icst525_ap_pci_params = {
  438. .vco_max = ICST525_VCO_MAX_5V,
  439. .vco_min = ICST525_VCO_MIN,
  440. /* Minimum 25 MHz */
  441. .vd_min = 25,
  442. /* Maximum 33 MHz */
  443. .vd_max = 33,
  444. /* r is hardcoded to 14 or 22 and this is the actual divisors +2 */
  445. .rd_min = 16,
  446. .rd_max = 24,
  447. .s2div = icst525_s2div,
  448. .idx2s = icst525_idx2s,
  449. };
  450. static void __init of_syscon_icst_setup(struct device_node *np)
  451. {
  452. struct device_node *parent;
  453. struct regmap *map;
  454. struct clk_icst_desc icst_desc;
  455. const char *name = np->name;
  456. const char *parent_name;
  457. struct clk *regclk;
  458. enum icst_control_type ctype;
  459. /* We do not release this reference, we are using it perpetually */
  460. parent = of_get_parent(np);
  461. if (!parent) {
  462. pr_err("no parent node for syscon ICST clock\n");
  463. return;
  464. }
  465. map = syscon_node_to_regmap(parent);
  466. if (IS_ERR(map)) {
  467. pr_err("no regmap for syscon ICST clock parent\n");
  468. return;
  469. }
  470. if (of_property_read_u32(np, "vco-offset", &icst_desc.vco_offset)) {
  471. pr_err("no VCO register offset for ICST clock\n");
  472. return;
  473. }
  474. if (of_property_read_u32(np, "lock-offset", &icst_desc.lock_offset)) {
  475. pr_err("no lock register offset for ICST clock\n");
  476. return;
  477. }
  478. if (of_device_is_compatible(np, "arm,syscon-icst525")) {
  479. icst_desc.params = &icst525_params;
  480. ctype = ICST_VERSATILE;
  481. } else if (of_device_is_compatible(np, "arm,syscon-icst307")) {
  482. icst_desc.params = &icst307_params;
  483. ctype = ICST_VERSATILE;
  484. } else if (of_device_is_compatible(np, "arm,syscon-icst525-integratorap-cm")) {
  485. icst_desc.params = &icst525_apcp_cm_params;
  486. ctype = ICST_INTEGRATOR_AP_CM;
  487. } else if (of_device_is_compatible(np, "arm,syscon-icst525-integratorap-sys")) {
  488. icst_desc.params = &icst525_ap_sys_params;
  489. ctype = ICST_INTEGRATOR_AP_SYS;
  490. } else if (of_device_is_compatible(np, "arm,syscon-icst525-integratorap-pci")) {
  491. icst_desc.params = &icst525_ap_pci_params;
  492. ctype = ICST_INTEGRATOR_AP_PCI;
  493. } else if (of_device_is_compatible(np, "arm,syscon-icst525-integratorcp-cm-core")) {
  494. icst_desc.params = &icst525_apcp_cm_params;
  495. ctype = ICST_INTEGRATOR_CP_CM_CORE;
  496. } else if (of_device_is_compatible(np, "arm,syscon-icst525-integratorcp-cm-mem")) {
  497. icst_desc.params = &icst525_apcp_cm_params;
  498. ctype = ICST_INTEGRATOR_CP_CM_MEM;
  499. } else {
  500. pr_err("unknown ICST clock %s\n", name);
  501. return;
  502. }
  503. /* Parent clock name is not the same as node parent */
  504. parent_name = of_clk_get_parent_name(np, 0);
  505. regclk = icst_clk_setup(NULL, &icst_desc, name, parent_name, map, ctype);
  506. if (IS_ERR(regclk)) {
  507. pr_err("error setting up syscon ICST clock %s\n", name);
  508. return;
  509. }
  510. of_clk_add_provider(np, of_clk_src_simple_get, regclk);
  511. pr_debug("registered syscon ICST clock %s\n", name);
  512. }
  513. CLK_OF_DECLARE(arm_syscon_icst525_clk,
  514. "arm,syscon-icst525", of_syscon_icst_setup);
  515. CLK_OF_DECLARE(arm_syscon_icst307_clk,
  516. "arm,syscon-icst307", of_syscon_icst_setup);
  517. CLK_OF_DECLARE(arm_syscon_integratorap_cm_clk,
  518. "arm,syscon-icst525-integratorap-cm", of_syscon_icst_setup);
  519. CLK_OF_DECLARE(arm_syscon_integratorap_sys_clk,
  520. "arm,syscon-icst525-integratorap-sys", of_syscon_icst_setup);
  521. CLK_OF_DECLARE(arm_syscon_integratorap_pci_clk,
  522. "arm,syscon-icst525-integratorap-pci", of_syscon_icst_setup);
  523. CLK_OF_DECLARE(arm_syscon_integratorcp_cm_core_clk,
  524. "arm,syscon-icst525-integratorcp-cm-core", of_syscon_icst_setup);
  525. CLK_OF_DECLARE(arm_syscon_integratorcp_cm_mem_clk,
  526. "arm,syscon-icst525-integratorcp-cm-mem", of_syscon_icst_setup);
  527. #endif