clk-s3c2410.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. /*
  2. * Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * Common Clock Framework support for S3C2410 and following SoCs.
  9. */
  10. #include <linux/clk-provider.h>
  11. #include <linux/of.h>
  12. #include <linux/of_address.h>
  13. #include <linux/syscore_ops.h>
  14. #include <dt-bindings/clock/s3c2410.h>
  15. #include "clk.h"
  16. #include "clk-pll.h"
  17. #define LOCKTIME 0x00
  18. #define MPLLCON 0x04
  19. #define UPLLCON 0x08
  20. #define CLKCON 0x0c
  21. #define CLKSLOW 0x10
  22. #define CLKDIVN 0x14
  23. #define CAMDIVN 0x18
  24. /* the soc types */
  25. enum supported_socs {
  26. S3C2410,
  27. S3C2440,
  28. S3C2442,
  29. };
  30. /* list of PLLs to be registered */
  31. enum s3c2410_plls {
  32. mpll, upll,
  33. };
  34. static void __iomem *reg_base;
  35. #ifdef CONFIG_PM_SLEEP
  36. static struct samsung_clk_reg_dump *s3c2410_save;
  37. /*
  38. * list of controller registers to be saved and restored during a
  39. * suspend/resume cycle.
  40. */
  41. static unsigned long s3c2410_clk_regs[] __initdata = {
  42. LOCKTIME,
  43. MPLLCON,
  44. UPLLCON,
  45. CLKCON,
  46. CLKSLOW,
  47. CLKDIVN,
  48. CAMDIVN,
  49. };
  50. static int s3c2410_clk_suspend(void)
  51. {
  52. samsung_clk_save(reg_base, s3c2410_save,
  53. ARRAY_SIZE(s3c2410_clk_regs));
  54. return 0;
  55. }
  56. static void s3c2410_clk_resume(void)
  57. {
  58. samsung_clk_restore(reg_base, s3c2410_save,
  59. ARRAY_SIZE(s3c2410_clk_regs));
  60. }
  61. static struct syscore_ops s3c2410_clk_syscore_ops = {
  62. .suspend = s3c2410_clk_suspend,
  63. .resume = s3c2410_clk_resume,
  64. };
  65. static void s3c2410_clk_sleep_init(void)
  66. {
  67. s3c2410_save = samsung_clk_alloc_reg_dump(s3c2410_clk_regs,
  68. ARRAY_SIZE(s3c2410_clk_regs));
  69. if (!s3c2410_save) {
  70. pr_warn("%s: failed to allocate sleep save data, no sleep support!\n",
  71. __func__);
  72. return;
  73. }
  74. register_syscore_ops(&s3c2410_clk_syscore_ops);
  75. return;
  76. }
  77. #else
  78. static void s3c2410_clk_sleep_init(void) {}
  79. #endif
  80. PNAME(fclk_p) = { "mpll", "div_slow" };
  81. struct samsung_mux_clock s3c2410_common_muxes[] __initdata = {
  82. MUX(FCLK, "fclk", fclk_p, CLKSLOW, 4, 1),
  83. };
  84. static struct clk_div_table divslow_d[] = {
  85. { .val = 0, .div = 1 },
  86. { .val = 1, .div = 2 },
  87. { .val = 2, .div = 4 },
  88. { .val = 3, .div = 6 },
  89. { .val = 4, .div = 8 },
  90. { .val = 5, .div = 10 },
  91. { .val = 6, .div = 12 },
  92. { .val = 7, .div = 14 },
  93. { /* sentinel */ },
  94. };
  95. struct samsung_div_clock s3c2410_common_dividers[] __initdata = {
  96. DIV_T(0, "div_slow", "xti", CLKSLOW, 0, 3, divslow_d),
  97. DIV(PCLK, "pclk", "hclk", CLKDIVN, 0, 1),
  98. };
  99. struct samsung_gate_clock s3c2410_common_gates[] __initdata = {
  100. GATE(PCLK_SPI, "spi", "pclk", CLKCON, 18, 0, 0),
  101. GATE(PCLK_I2S, "i2s", "pclk", CLKCON, 17, 0, 0),
  102. GATE(PCLK_I2C, "i2c", "pclk", CLKCON, 16, 0, 0),
  103. GATE(PCLK_ADC, "adc", "pclk", CLKCON, 15, 0, 0),
  104. GATE(PCLK_RTC, "rtc", "pclk", CLKCON, 14, 0, 0),
  105. GATE(PCLK_GPIO, "gpio", "pclk", CLKCON, 13, CLK_IGNORE_UNUSED, 0),
  106. GATE(PCLK_UART2, "uart2", "pclk", CLKCON, 12, 0, 0),
  107. GATE(PCLK_UART1, "uart1", "pclk", CLKCON, 11, 0, 0),
  108. GATE(PCLK_UART0, "uart0", "pclk", CLKCON, 10, 0, 0),
  109. GATE(PCLK_SDI, "sdi", "pclk", CLKCON, 9, 0, 0),
  110. GATE(PCLK_PWM, "pwm", "pclk", CLKCON, 8, 0, 0),
  111. GATE(HCLK_USBD, "usb-device", "hclk", CLKCON, 7, 0, 0),
  112. GATE(HCLK_USBH, "usb-host", "hclk", CLKCON, 6, 0, 0),
  113. GATE(HCLK_LCD, "lcd", "hclk", CLKCON, 5, 0, 0),
  114. GATE(HCLK_NAND, "nand", "hclk", CLKCON, 4, 0, 0),
  115. };
  116. /* should be added _after_ the soc-specific clocks are created */
  117. struct samsung_clock_alias s3c2410_common_aliases[] __initdata = {
  118. ALIAS(PCLK_I2C, "s3c2410-i2c.0", "i2c"),
  119. ALIAS(PCLK_ADC, NULL, "adc"),
  120. ALIAS(PCLK_RTC, NULL, "rtc"),
  121. ALIAS(PCLK_PWM, NULL, "timers"),
  122. ALIAS(HCLK_LCD, NULL, "lcd"),
  123. ALIAS(HCLK_USBD, NULL, "usb-device"),
  124. ALIAS(HCLK_USBH, NULL, "usb-host"),
  125. ALIAS(UCLK, NULL, "usb-bus-host"),
  126. ALIAS(UCLK, NULL, "usb-bus-gadget"),
  127. ALIAS(ARMCLK, NULL, "armclk"),
  128. ALIAS(UCLK, NULL, "uclk"),
  129. ALIAS(HCLK, NULL, "hclk"),
  130. ALIAS(MPLL, NULL, "mpll"),
  131. ALIAS(FCLK, NULL, "fclk"),
  132. ALIAS(PCLK, NULL, "watchdog"),
  133. ALIAS(PCLK_SDI, NULL, "sdi"),
  134. ALIAS(HCLK_NAND, NULL, "nand"),
  135. ALIAS(PCLK_I2S, NULL, "iis"),
  136. ALIAS(PCLK_I2C, NULL, "i2c"),
  137. };
  138. /* S3C2410 specific clocks */
  139. static struct samsung_pll_rate_table pll_s3c2410_12mhz_tbl[] __initdata = {
  140. /* sorted in descending order */
  141. /* 2410A extras */
  142. PLL_35XX_RATE(270000000, 127, 1, 1),
  143. PLL_35XX_RATE(268000000, 126, 1, 1),
  144. PLL_35XX_RATE(266000000, 125, 1, 1),
  145. PLL_35XX_RATE(226000000, 105, 1, 1),
  146. PLL_35XX_RATE(210000000, 132, 2, 1),
  147. /* 2410 common */
  148. PLL_35XX_RATE(202800000, 161, 3, 1),
  149. PLL_35XX_RATE(192000000, 88, 1, 1),
  150. PLL_35XX_RATE(186000000, 85, 1, 1),
  151. PLL_35XX_RATE(180000000, 82, 1, 1),
  152. PLL_35XX_RATE(170000000, 77, 1, 1),
  153. PLL_35XX_RATE(158000000, 71, 1, 1),
  154. PLL_35XX_RATE(152000000, 68, 1, 1),
  155. PLL_35XX_RATE(147000000, 90, 2, 1),
  156. PLL_35XX_RATE(135000000, 82, 2, 1),
  157. PLL_35XX_RATE(124000000, 116, 1, 2),
  158. PLL_35XX_RATE(118500000, 150, 2, 2),
  159. PLL_35XX_RATE(113000000, 105, 1, 2),
  160. PLL_35XX_RATE(101250000, 127, 2, 2),
  161. PLL_35XX_RATE(90000000, 112, 2, 2),
  162. PLL_35XX_RATE(84750000, 105, 2, 2),
  163. PLL_35XX_RATE(79000000, 71, 1, 2),
  164. PLL_35XX_RATE(67500000, 82, 2, 2),
  165. PLL_35XX_RATE(56250000, 142, 2, 3),
  166. PLL_35XX_RATE(48000000, 120, 2, 3),
  167. PLL_35XX_RATE(50700000, 161, 3, 3),
  168. PLL_35XX_RATE(45000000, 82, 1, 3),
  169. PLL_35XX_RATE(33750000, 82, 2, 3),
  170. { /* sentinel */ },
  171. };
  172. static struct samsung_pll_clock s3c2410_plls[] __initdata = {
  173. [mpll] = PLL(pll_s3c2410_mpll, MPLL, "mpll", "xti",
  174. LOCKTIME, MPLLCON, NULL),
  175. [upll] = PLL(pll_s3c2410_upll, UPLL, "upll", "xti",
  176. LOCKTIME, UPLLCON, NULL),
  177. };
  178. struct samsung_div_clock s3c2410_dividers[] __initdata = {
  179. DIV(HCLK, "hclk", "mpll", CLKDIVN, 1, 1),
  180. };
  181. struct samsung_fixed_factor_clock s3c2410_ffactor[] __initdata = {
  182. /*
  183. * armclk is directly supplied by the fclk, without
  184. * switching possibility like on the s3c244x below.
  185. */
  186. FFACTOR(ARMCLK, "armclk", "fclk", 1, 1, 0),
  187. /* uclk is fed from the unmodified upll */
  188. FFACTOR(UCLK, "uclk", "upll", 1, 1, 0),
  189. };
  190. struct samsung_clock_alias s3c2410_aliases[] __initdata = {
  191. ALIAS(PCLK_UART0, "s3c2410-uart.0", "uart"),
  192. ALIAS(PCLK_UART1, "s3c2410-uart.1", "uart"),
  193. ALIAS(PCLK_UART2, "s3c2410-uart.2", "uart"),
  194. ALIAS(PCLK_UART0, "s3c2410-uart.0", "clk_uart_baud0"),
  195. ALIAS(PCLK_UART1, "s3c2410-uart.1", "clk_uart_baud0"),
  196. ALIAS(PCLK_UART2, "s3c2410-uart.2", "clk_uart_baud0"),
  197. ALIAS(UCLK, NULL, "clk_uart_baud1"),
  198. };
  199. /* S3C244x specific clocks */
  200. static struct samsung_pll_rate_table pll_s3c244x_12mhz_tbl[] __initdata = {
  201. /* sorted in descending order */
  202. PLL_35XX_RATE(400000000, 0x5c, 1, 1),
  203. PLL_35XX_RATE(390000000, 0x7a, 2, 1),
  204. PLL_35XX_RATE(380000000, 0x57, 1, 1),
  205. PLL_35XX_RATE(370000000, 0xb1, 4, 1),
  206. PLL_35XX_RATE(360000000, 0x70, 2, 1),
  207. PLL_35XX_RATE(350000000, 0xa7, 4, 1),
  208. PLL_35XX_RATE(340000000, 0x4d, 1, 1),
  209. PLL_35XX_RATE(330000000, 0x66, 2, 1),
  210. PLL_35XX_RATE(320000000, 0x98, 4, 1),
  211. PLL_35XX_RATE(310000000, 0x93, 4, 1),
  212. PLL_35XX_RATE(300000000, 0x75, 3, 1),
  213. PLL_35XX_RATE(240000000, 0x70, 1, 2),
  214. PLL_35XX_RATE(230000000, 0x6b, 1, 2),
  215. PLL_35XX_RATE(220000000, 0x66, 1, 2),
  216. PLL_35XX_RATE(210000000, 0x84, 2, 2),
  217. PLL_35XX_RATE(200000000, 0x5c, 1, 2),
  218. PLL_35XX_RATE(190000000, 0x57, 1, 2),
  219. PLL_35XX_RATE(180000000, 0x70, 2, 2),
  220. PLL_35XX_RATE(170000000, 0x4d, 1, 2),
  221. PLL_35XX_RATE(160000000, 0x98, 4, 2),
  222. PLL_35XX_RATE(150000000, 0x75, 3, 2),
  223. PLL_35XX_RATE(120000000, 0x70, 1, 3),
  224. PLL_35XX_RATE(110000000, 0x66, 1, 3),
  225. PLL_35XX_RATE(100000000, 0x5c, 1, 3),
  226. PLL_35XX_RATE(90000000, 0x70, 2, 3),
  227. PLL_35XX_RATE(80000000, 0x98, 4, 3),
  228. PLL_35XX_RATE(75000000, 0x75, 3, 3),
  229. { /* sentinel */ },
  230. };
  231. static struct samsung_pll_clock s3c244x_common_plls[] __initdata = {
  232. [mpll] = PLL(pll_s3c2440_mpll, MPLL, "mpll", "xti",
  233. LOCKTIME, MPLLCON, NULL),
  234. [upll] = PLL(pll_s3c2410_upll, UPLL, "upll", "xti",
  235. LOCKTIME, UPLLCON, NULL),
  236. };
  237. PNAME(hclk_p) = { "fclk", "div_hclk_2", "div_hclk_4", "div_hclk_3" };
  238. PNAME(armclk_p) = { "fclk", "hclk" };
  239. struct samsung_mux_clock s3c244x_common_muxes[] __initdata = {
  240. MUX(HCLK, "hclk", hclk_p, CLKDIVN, 1, 2),
  241. MUX(ARMCLK, "armclk", armclk_p, CAMDIVN, 12, 1),
  242. };
  243. struct samsung_fixed_factor_clock s3c244x_common_ffactor[] __initdata = {
  244. FFACTOR(0, "div_hclk_2", "fclk", 1, 2, 0),
  245. FFACTOR(0, "ff_cam", "div_cam", 2, 1, CLK_SET_RATE_PARENT),
  246. };
  247. static struct clk_div_table div_hclk_4_d[] = {
  248. { .val = 0, .div = 4 },
  249. { .val = 1, .div = 8 },
  250. { /* sentinel */ },
  251. };
  252. static struct clk_div_table div_hclk_3_d[] = {
  253. { .val = 0, .div = 3 },
  254. { .val = 1, .div = 6 },
  255. { /* sentinel */ },
  256. };
  257. struct samsung_div_clock s3c244x_common_dividers[] __initdata = {
  258. DIV(UCLK, "uclk", "upll", CLKDIVN, 3, 1),
  259. DIV(0, "div_hclk", "fclk", CLKDIVN, 1, 1),
  260. DIV_T(0, "div_hclk_4", "fclk", CAMDIVN, 9, 1, div_hclk_4_d),
  261. DIV_T(0, "div_hclk_3", "fclk", CAMDIVN, 8, 1, div_hclk_3_d),
  262. DIV(0, "div_cam", "upll", CAMDIVN, 0, 3),
  263. };
  264. struct samsung_gate_clock s3c244x_common_gates[] __initdata = {
  265. GATE(HCLK_CAM, "cam", "hclk", CLKCON, 19, 0, 0),
  266. };
  267. struct samsung_clock_alias s3c244x_common_aliases[] __initdata = {
  268. ALIAS(PCLK_UART0, "s3c2440-uart.0", "uart"),
  269. ALIAS(PCLK_UART1, "s3c2440-uart.1", "uart"),
  270. ALIAS(PCLK_UART2, "s3c2440-uart.2", "uart"),
  271. ALIAS(PCLK_UART0, "s3c2440-uart.0", "clk_uart_baud2"),
  272. ALIAS(PCLK_UART1, "s3c2440-uart.1", "clk_uart_baud2"),
  273. ALIAS(PCLK_UART2, "s3c2440-uart.2", "clk_uart_baud2"),
  274. ALIAS(HCLK_CAM, NULL, "camif"),
  275. ALIAS(CAMIF, NULL, "camif-upll"),
  276. };
  277. /* S3C2440 specific clocks */
  278. PNAME(s3c2440_camif_p) = { "upll", "ff_cam" };
  279. struct samsung_mux_clock s3c2440_muxes[] __initdata = {
  280. MUX(CAMIF, "camif", s3c2440_camif_p, CAMDIVN, 4, 1),
  281. };
  282. struct samsung_gate_clock s3c2440_gates[] __initdata = {
  283. GATE(PCLK_AC97, "ac97", "pclk", CLKCON, 20, 0, 0),
  284. };
  285. /* S3C2442 specific clocks */
  286. struct samsung_fixed_factor_clock s3c2442_ffactor[] __initdata = {
  287. FFACTOR(0, "upll_3", "upll", 1, 3, 0),
  288. };
  289. PNAME(s3c2442_camif_p) = { "upll", "ff_cam", "upll", "upll_3" };
  290. struct samsung_mux_clock s3c2442_muxes[] __initdata = {
  291. MUX(CAMIF, "camif", s3c2442_camif_p, CAMDIVN, 4, 2),
  292. };
  293. /*
  294. * fixed rate clocks generated outside the soc
  295. * Only necessary until the devicetree-move is complete
  296. */
  297. #define XTI 1
  298. struct samsung_fixed_rate_clock s3c2410_common_frate_clks[] __initdata = {
  299. FRATE(XTI, "xti", NULL, 0, 0),
  300. };
  301. static void __init s3c2410_common_clk_register_fixed_ext(
  302. struct samsung_clk_provider *ctx,
  303. unsigned long xti_f)
  304. {
  305. struct samsung_clock_alias xti_alias = ALIAS(XTI, NULL, "xtal");
  306. s3c2410_common_frate_clks[0].fixed_rate = xti_f;
  307. samsung_clk_register_fixed_rate(ctx, s3c2410_common_frate_clks,
  308. ARRAY_SIZE(s3c2410_common_frate_clks));
  309. samsung_clk_register_alias(ctx, &xti_alias, 1);
  310. }
  311. void __init s3c2410_common_clk_init(struct device_node *np, unsigned long xti_f,
  312. int current_soc,
  313. void __iomem *base)
  314. {
  315. struct samsung_clk_provider *ctx;
  316. reg_base = base;
  317. if (np) {
  318. reg_base = of_iomap(np, 0);
  319. if (!reg_base)
  320. panic("%s: failed to map registers\n", __func__);
  321. }
  322. ctx = samsung_clk_init(np, reg_base, NR_CLKS);
  323. /* Register external clocks only in non-dt cases */
  324. if (!np)
  325. s3c2410_common_clk_register_fixed_ext(ctx, xti_f);
  326. if (current_soc == S3C2410) {
  327. if (_get_rate("xti") == 12 * MHZ) {
  328. s3c2410_plls[mpll].rate_table = pll_s3c2410_12mhz_tbl;
  329. s3c2410_plls[upll].rate_table = pll_s3c2410_12mhz_tbl;
  330. }
  331. /* Register PLLs. */
  332. samsung_clk_register_pll(ctx, s3c2410_plls,
  333. ARRAY_SIZE(s3c2410_plls), reg_base);
  334. } else { /* S3C2440, S3C2442 */
  335. if (_get_rate("xti") == 12 * MHZ) {
  336. /*
  337. * plls follow different calculation schemes, with the
  338. * upll following the same scheme as the s3c2410 plls
  339. */
  340. s3c244x_common_plls[mpll].rate_table =
  341. pll_s3c244x_12mhz_tbl;
  342. s3c244x_common_plls[upll].rate_table =
  343. pll_s3c2410_12mhz_tbl;
  344. }
  345. /* Register PLLs. */
  346. samsung_clk_register_pll(ctx, s3c244x_common_plls,
  347. ARRAY_SIZE(s3c244x_common_plls), reg_base);
  348. }
  349. /* Register common internal clocks. */
  350. samsung_clk_register_mux(ctx, s3c2410_common_muxes,
  351. ARRAY_SIZE(s3c2410_common_muxes));
  352. samsung_clk_register_div(ctx, s3c2410_common_dividers,
  353. ARRAY_SIZE(s3c2410_common_dividers));
  354. samsung_clk_register_gate(ctx, s3c2410_common_gates,
  355. ARRAY_SIZE(s3c2410_common_gates));
  356. if (current_soc == S3C2440 || current_soc == S3C2442) {
  357. samsung_clk_register_div(ctx, s3c244x_common_dividers,
  358. ARRAY_SIZE(s3c244x_common_dividers));
  359. samsung_clk_register_gate(ctx, s3c244x_common_gates,
  360. ARRAY_SIZE(s3c244x_common_gates));
  361. samsung_clk_register_mux(ctx, s3c244x_common_muxes,
  362. ARRAY_SIZE(s3c244x_common_muxes));
  363. samsung_clk_register_fixed_factor(ctx, s3c244x_common_ffactor,
  364. ARRAY_SIZE(s3c244x_common_ffactor));
  365. }
  366. /* Register SoC-specific clocks. */
  367. switch (current_soc) {
  368. case S3C2410:
  369. samsung_clk_register_div(ctx, s3c2410_dividers,
  370. ARRAY_SIZE(s3c2410_dividers));
  371. samsung_clk_register_fixed_factor(ctx, s3c2410_ffactor,
  372. ARRAY_SIZE(s3c2410_ffactor));
  373. samsung_clk_register_alias(ctx, s3c2410_aliases,
  374. ARRAY_SIZE(s3c2410_aliases));
  375. break;
  376. case S3C2440:
  377. samsung_clk_register_mux(ctx, s3c2440_muxes,
  378. ARRAY_SIZE(s3c2440_muxes));
  379. samsung_clk_register_gate(ctx, s3c2440_gates,
  380. ARRAY_SIZE(s3c2440_gates));
  381. break;
  382. case S3C2442:
  383. samsung_clk_register_mux(ctx, s3c2442_muxes,
  384. ARRAY_SIZE(s3c2442_muxes));
  385. samsung_clk_register_fixed_factor(ctx, s3c2442_ffactor,
  386. ARRAY_SIZE(s3c2442_ffactor));
  387. break;
  388. }
  389. /*
  390. * Register common aliases at the end, as some of the aliased clocks
  391. * are SoC specific.
  392. */
  393. samsung_clk_register_alias(ctx, s3c2410_common_aliases,
  394. ARRAY_SIZE(s3c2410_common_aliases));
  395. if (current_soc == S3C2440 || current_soc == S3C2442) {
  396. samsung_clk_register_alias(ctx, s3c244x_common_aliases,
  397. ARRAY_SIZE(s3c244x_common_aliases));
  398. }
  399. s3c2410_clk_sleep_init();
  400. samsung_clk_of_add_provider(np, ctx);
  401. }
  402. static void __init s3c2410_clk_init(struct device_node *np)
  403. {
  404. s3c2410_common_clk_init(np, 0, S3C2410, 0);
  405. }
  406. CLK_OF_DECLARE(s3c2410_clk, "samsung,s3c2410-clock", s3c2410_clk_init);
  407. static void __init s3c2440_clk_init(struct device_node *np)
  408. {
  409. s3c2410_common_clk_init(np, 0, S3C2440, 0);
  410. }
  411. CLK_OF_DECLARE(s3c2440_clk, "samsung,s3c2440-clock", s3c2440_clk_init);
  412. static void __init s3c2442_clk_init(struct device_node *np)
  413. {
  414. s3c2410_common_clk_init(np, 0, S3C2442, 0);
  415. }
  416. CLK_OF_DECLARE(s3c2442_clk, "samsung,s3c2442-clock", s3c2442_clk_init);