clk-icst.c 16 KB

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