soc.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. /*
  2. * OMAP cpu type detection
  3. *
  4. * Copyright (C) 2004, 2008 Nokia Corporation
  5. *
  6. * Copyright (C) 2009-11 Texas Instruments.
  7. *
  8. * Written by Tony Lindgren <tony.lindgren@nokia.com>
  9. *
  10. * Added OMAP4/5 specific defines - Santosh Shilimkar<santosh.shilimkar@ti.com>
  11. *
  12. * This program is free software; you can redistribute it and/or modify
  13. * it under the terms of the GNU General Public License as published by
  14. * the Free Software Foundation; either version 2 of the License, or
  15. * (at your option) any later version.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU General Public License
  23. * along with this program; if not, write to the Free Software
  24. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  25. *
  26. */
  27. #include "omap24xx.h"
  28. #include "omap34xx.h"
  29. #include "omap44xx.h"
  30. #include "ti81xx.h"
  31. #include "am33xx.h"
  32. #include "omap54xx.h"
  33. #ifndef __ASSEMBLY__
  34. #include <linux/bitops.h>
  35. /*
  36. * Test if multicore OMAP support is needed
  37. */
  38. #undef MULTI_OMAP2
  39. #undef OMAP_NAME
  40. #ifdef CONFIG_ARCH_MULTIPLATFORM
  41. #define MULTI_OMAP2
  42. #endif
  43. #ifdef CONFIG_SOC_OMAP2420
  44. # ifdef OMAP_NAME
  45. # undef MULTI_OMAP2
  46. # define MULTI_OMAP2
  47. # else
  48. # define OMAP_NAME omap2420
  49. # endif
  50. #endif
  51. #ifdef CONFIG_SOC_OMAP2430
  52. # ifdef OMAP_NAME
  53. # undef MULTI_OMAP2
  54. # define MULTI_OMAP2
  55. # else
  56. # define OMAP_NAME omap2430
  57. # endif
  58. #endif
  59. #ifdef CONFIG_ARCH_OMAP3
  60. # ifdef OMAP_NAME
  61. # undef MULTI_OMAP2
  62. # define MULTI_OMAP2
  63. # else
  64. # define OMAP_NAME omap3
  65. # endif
  66. #endif
  67. #ifdef CONFIG_ARCH_OMAP4
  68. # ifdef OMAP_NAME
  69. # undef MULTI_OMAP2
  70. # define MULTI_OMAP2
  71. # else
  72. # define OMAP_NAME omap4
  73. # endif
  74. #endif
  75. #ifdef CONFIG_SOC_OMAP5
  76. # ifdef OMAP_NAME
  77. # undef MULTI_OMAP2
  78. # define MULTI_OMAP2
  79. # else
  80. # define OMAP_NAME omap5
  81. # endif
  82. #endif
  83. #ifdef CONFIG_SOC_AM33XX
  84. # ifdef OMAP_NAME
  85. # undef MULTI_OMAP2
  86. # define MULTI_OMAP2
  87. # else
  88. # define OMAP_NAME am33xx
  89. # endif
  90. #endif
  91. #ifdef CONFIG_SOC_AM43XX
  92. # ifdef OMAP_NAME
  93. # undef MULTI_OMAP2
  94. # define MULTI_OMAP2
  95. # else
  96. # define OMAP_NAME am43xx
  97. # endif
  98. #endif
  99. /*
  100. * Omap device type i.e. EMU/HS/TST/GP/BAD
  101. */
  102. #define OMAP2_DEVICE_TYPE_TEST 0
  103. #define OMAP2_DEVICE_TYPE_EMU 1
  104. #define OMAP2_DEVICE_TYPE_SEC 2
  105. #define OMAP2_DEVICE_TYPE_GP 3
  106. #define OMAP2_DEVICE_TYPE_BAD 4
  107. int omap_type(void);
  108. /*
  109. * omap_rev bits:
  110. * CPU id bits (0730, 1510, 1710, 2422...) [31:16]
  111. * CPU revision (See _REV_ defined in cpu.h) [15:08]
  112. * CPU class bits (15xx, 16xx, 24xx, 34xx...) [07:00]
  113. */
  114. unsigned int omap_rev(void);
  115. static inline int soc_is_omap(void)
  116. {
  117. return omap_rev() != 0;
  118. }
  119. /*
  120. * Get the CPU revision for OMAP devices
  121. */
  122. #define GET_OMAP_REVISION() ((omap_rev() >> 8) & 0xff)
  123. /*
  124. * Macros to group OMAP into cpu classes.
  125. * These can be used in most places.
  126. * cpu_is_omap24xx(): True for OMAP2420, OMAP2422, OMAP2423, OMAP2430
  127. * cpu_is_omap242x(): True for OMAP2420, OMAP2422, OMAP2423
  128. * cpu_is_omap243x(): True for OMAP2430
  129. * cpu_is_omap343x(): True for OMAP3430
  130. * cpu_is_omap443x(): True for OMAP4430
  131. * cpu_is_omap446x(): True for OMAP4460
  132. * cpu_is_omap447x(): True for OMAP4470
  133. * soc_is_omap543x(): True for OMAP5430, OMAP5432
  134. */
  135. #define GET_OMAP_CLASS (omap_rev() & 0xff)
  136. #define IS_OMAP_CLASS(class, id) \
  137. static inline int is_omap ##class (void) \
  138. { \
  139. return (GET_OMAP_CLASS == (id)) ? 1 : 0; \
  140. }
  141. #define GET_AM_CLASS ((omap_rev() >> 24) & 0xff)
  142. #define IS_AM_CLASS(class, id) \
  143. static inline int is_am ##class (void) \
  144. { \
  145. return (GET_AM_CLASS == (id)) ? 1 : 0; \
  146. }
  147. #define GET_TI_CLASS ((omap_rev() >> 24) & 0xff)
  148. #define IS_TI_CLASS(class, id) \
  149. static inline int is_ti ##class (void) \
  150. { \
  151. return (GET_TI_CLASS == (id)) ? 1 : 0; \
  152. }
  153. #define GET_OMAP_SUBCLASS ((omap_rev() >> 20) & 0x0fff)
  154. #define IS_OMAP_SUBCLASS(subclass, id) \
  155. static inline int is_omap ##subclass (void) \
  156. { \
  157. return (GET_OMAP_SUBCLASS == (id)) ? 1 : 0; \
  158. }
  159. #define IS_TI_SUBCLASS(subclass, id) \
  160. static inline int is_ti ##subclass (void) \
  161. { \
  162. return (GET_OMAP_SUBCLASS == (id)) ? 1 : 0; \
  163. }
  164. #define IS_AM_SUBCLASS(subclass, id) \
  165. static inline int is_am ##subclass (void) \
  166. { \
  167. return (GET_OMAP_SUBCLASS == (id)) ? 1 : 0; \
  168. }
  169. IS_OMAP_CLASS(24xx, 0x24)
  170. IS_OMAP_CLASS(34xx, 0x34)
  171. IS_OMAP_CLASS(44xx, 0x44)
  172. IS_AM_CLASS(35xx, 0x35)
  173. IS_OMAP_CLASS(54xx, 0x54)
  174. IS_AM_CLASS(33xx, 0x33)
  175. IS_AM_CLASS(43xx, 0x43)
  176. IS_TI_CLASS(81xx, 0x81)
  177. IS_OMAP_SUBCLASS(242x, 0x242)
  178. IS_OMAP_SUBCLASS(243x, 0x243)
  179. IS_OMAP_SUBCLASS(343x, 0x343)
  180. IS_OMAP_SUBCLASS(363x, 0x363)
  181. IS_OMAP_SUBCLASS(443x, 0x443)
  182. IS_OMAP_SUBCLASS(446x, 0x446)
  183. IS_OMAP_SUBCLASS(447x, 0x447)
  184. IS_OMAP_SUBCLASS(543x, 0x543)
  185. IS_TI_SUBCLASS(816x, 0x816)
  186. IS_TI_SUBCLASS(814x, 0x814)
  187. IS_AM_SUBCLASS(335x, 0x335)
  188. IS_AM_SUBCLASS(437x, 0x437)
  189. #define cpu_is_omap24xx() 0
  190. #define cpu_is_omap242x() 0
  191. #define cpu_is_omap243x() 0
  192. #define cpu_is_omap34xx() 0
  193. #define cpu_is_omap343x() 0
  194. #define cpu_is_ti81xx() 0
  195. #define cpu_is_ti816x() 0
  196. #define cpu_is_ti814x() 0
  197. #define soc_is_am35xx() 0
  198. #define soc_is_am33xx() 0
  199. #define soc_is_am335x() 0
  200. #define soc_is_am43xx() 0
  201. #define soc_is_am437x() 0
  202. #define cpu_is_omap44xx() 0
  203. #define cpu_is_omap443x() 0
  204. #define cpu_is_omap446x() 0
  205. #define cpu_is_omap447x() 0
  206. #define soc_is_omap54xx() 0
  207. #define soc_is_omap543x() 0
  208. #if defined(MULTI_OMAP2)
  209. # if defined(CONFIG_ARCH_OMAP2)
  210. # undef cpu_is_omap24xx
  211. # define cpu_is_omap24xx() is_omap24xx()
  212. # endif
  213. # if defined (CONFIG_SOC_OMAP2420)
  214. # undef cpu_is_omap242x
  215. # define cpu_is_omap242x() is_omap242x()
  216. # endif
  217. # if defined (CONFIG_SOC_OMAP2430)
  218. # undef cpu_is_omap243x
  219. # define cpu_is_omap243x() is_omap243x()
  220. # endif
  221. # if defined(CONFIG_ARCH_OMAP3)
  222. # undef cpu_is_omap34xx
  223. # undef cpu_is_omap343x
  224. # define cpu_is_omap34xx() is_omap34xx()
  225. # define cpu_is_omap343x() is_omap343x()
  226. # endif
  227. #else
  228. # if defined(CONFIG_ARCH_OMAP2)
  229. # undef cpu_is_omap24xx
  230. # define cpu_is_omap24xx() 1
  231. # endif
  232. # if defined(CONFIG_SOC_OMAP2420)
  233. # undef cpu_is_omap242x
  234. # define cpu_is_omap242x() 1
  235. # endif
  236. # if defined(CONFIG_SOC_OMAP2430)
  237. # undef cpu_is_omap243x
  238. # define cpu_is_omap243x() 1
  239. # endif
  240. # if defined(CONFIG_ARCH_OMAP3)
  241. # undef cpu_is_omap34xx
  242. # define cpu_is_omap34xx() 1
  243. # endif
  244. # if defined(CONFIG_SOC_OMAP3430)
  245. # undef cpu_is_omap343x
  246. # define cpu_is_omap343x() 1
  247. # endif
  248. #endif
  249. /*
  250. * Macros to detect individual cpu types.
  251. * These are only rarely needed.
  252. * cpu_is_omap2420(): True for OMAP2420
  253. * cpu_is_omap2422(): True for OMAP2422
  254. * cpu_is_omap2423(): True for OMAP2423
  255. * cpu_is_omap2430(): True for OMAP2430
  256. * cpu_is_omap3430(): True for OMAP3430
  257. */
  258. #define GET_OMAP_TYPE ((omap_rev() >> 16) & 0xffff)
  259. #define IS_OMAP_TYPE(type, id) \
  260. static inline int is_omap ##type (void) \
  261. { \
  262. return (GET_OMAP_TYPE == (id)) ? 1 : 0; \
  263. }
  264. IS_OMAP_TYPE(2420, 0x2420)
  265. IS_OMAP_TYPE(2422, 0x2422)
  266. IS_OMAP_TYPE(2423, 0x2423)
  267. IS_OMAP_TYPE(2430, 0x2430)
  268. IS_OMAP_TYPE(3430, 0x3430)
  269. #define cpu_is_omap2420() 0
  270. #define cpu_is_omap2422() 0
  271. #define cpu_is_omap2423() 0
  272. #define cpu_is_omap2430() 0
  273. #define cpu_is_omap3430() 0
  274. #define cpu_is_omap3630() 0
  275. #define soc_is_omap5430() 0
  276. /* These are needed for the common code */
  277. #ifdef CONFIG_ARCH_OMAP2PLUS
  278. #define cpu_is_omap7xx() 0
  279. #define cpu_is_omap15xx() 0
  280. #define cpu_is_omap16xx() 0
  281. #define cpu_is_omap1510() 0
  282. #define cpu_is_omap1610() 0
  283. #define cpu_is_omap1611() 0
  284. #define cpu_is_omap1621() 0
  285. #define cpu_is_omap1710() 0
  286. #define cpu_class_is_omap1() 0
  287. #define cpu_class_is_omap2() 1
  288. #endif
  289. #if defined(CONFIG_ARCH_OMAP2)
  290. # undef cpu_is_omap2420
  291. # undef cpu_is_omap2422
  292. # undef cpu_is_omap2423
  293. # undef cpu_is_omap2430
  294. # define cpu_is_omap2420() is_omap2420()
  295. # define cpu_is_omap2422() is_omap2422()
  296. # define cpu_is_omap2423() is_omap2423()
  297. # define cpu_is_omap2430() is_omap2430()
  298. #endif
  299. #if defined(CONFIG_ARCH_OMAP3)
  300. # undef cpu_is_omap3430
  301. # undef cpu_is_ti81xx
  302. # undef cpu_is_ti816x
  303. # undef cpu_is_ti814x
  304. # undef soc_is_am35xx
  305. # define cpu_is_omap3430() is_omap3430()
  306. # undef cpu_is_omap3630
  307. # define cpu_is_omap3630() is_omap363x()
  308. # define cpu_is_ti81xx() is_ti81xx()
  309. # define cpu_is_ti816x() is_ti816x()
  310. # define cpu_is_ti814x() is_ti814x()
  311. # define soc_is_am35xx() is_am35xx()
  312. #endif
  313. # if defined(CONFIG_SOC_AM33XX)
  314. # undef soc_is_am33xx
  315. # undef soc_is_am335x
  316. # define soc_is_am33xx() is_am33xx()
  317. # define soc_is_am335x() is_am335x()
  318. #endif
  319. #ifdef CONFIG_SOC_AM43XX
  320. # undef soc_is_am43xx
  321. # undef soc_is_am437x
  322. # define soc_is_am43xx() is_am43xx()
  323. # define soc_is_am437x() is_am437x()
  324. #endif
  325. # if defined(CONFIG_ARCH_OMAP4)
  326. # undef cpu_is_omap44xx
  327. # undef cpu_is_omap443x
  328. # undef cpu_is_omap446x
  329. # undef cpu_is_omap447x
  330. # define cpu_is_omap44xx() is_omap44xx()
  331. # define cpu_is_omap443x() is_omap443x()
  332. # define cpu_is_omap446x() is_omap446x()
  333. # define cpu_is_omap447x() is_omap447x()
  334. # endif
  335. # if defined(CONFIG_SOC_OMAP5)
  336. # undef soc_is_omap54xx
  337. # undef soc_is_omap543x
  338. # define soc_is_omap54xx() is_omap54xx()
  339. # define soc_is_omap543x() is_omap543x()
  340. #endif
  341. /* Various silicon revisions for omap2 */
  342. #define OMAP242X_CLASS 0x24200024
  343. #define OMAP2420_REV_ES1_0 OMAP242X_CLASS
  344. #define OMAP2420_REV_ES2_0 (OMAP242X_CLASS | (0x1 << 8))
  345. #define OMAP243X_CLASS 0x24300024
  346. #define OMAP2430_REV_ES1_0 OMAP243X_CLASS
  347. #define OMAP343X_CLASS 0x34300034
  348. #define OMAP3430_REV_ES1_0 OMAP343X_CLASS
  349. #define OMAP3430_REV_ES2_0 (OMAP343X_CLASS | (0x1 << 8))
  350. #define OMAP3430_REV_ES2_1 (OMAP343X_CLASS | (0x2 << 8))
  351. #define OMAP3430_REV_ES3_0 (OMAP343X_CLASS | (0x3 << 8))
  352. #define OMAP3430_REV_ES3_1 (OMAP343X_CLASS | (0x4 << 8))
  353. #define OMAP3430_REV_ES3_1_2 (OMAP343X_CLASS | (0x5 << 8))
  354. #define OMAP363X_CLASS 0x36300034
  355. #define OMAP3630_REV_ES1_0 OMAP363X_CLASS
  356. #define OMAP3630_REV_ES1_1 (OMAP363X_CLASS | (0x1 << 8))
  357. #define OMAP3630_REV_ES1_2 (OMAP363X_CLASS | (0x2 << 8))
  358. #define TI816X_CLASS 0x81600034
  359. #define TI8168_REV_ES1_0 TI816X_CLASS
  360. #define TI8168_REV_ES1_1 (TI816X_CLASS | (0x1 << 8))
  361. #define TI8168_REV_ES2_0 (TI816X_CLASS | (0x2 << 8))
  362. #define TI8168_REV_ES2_1 (TI816X_CLASS | (0x3 << 8))
  363. #define TI814X_CLASS 0x81400034
  364. #define TI8148_REV_ES1_0 TI814X_CLASS
  365. #define TI8148_REV_ES2_0 (TI814X_CLASS | (0x1 << 8))
  366. #define TI8148_REV_ES2_1 (TI814X_CLASS | (0x2 << 8))
  367. #define AM35XX_CLASS 0x35170034
  368. #define AM35XX_REV_ES1_0 AM35XX_CLASS
  369. #define AM35XX_REV_ES1_1 (AM35XX_CLASS | (0x1 << 8))
  370. #define AM335X_CLASS 0x33500033
  371. #define AM335X_REV_ES1_0 AM335X_CLASS
  372. #define AM335X_REV_ES2_0 (AM335X_CLASS | (0x1 << 8))
  373. #define AM335X_REV_ES2_1 (AM335X_CLASS | (0x2 << 8))
  374. #define AM437X_CLASS 0x43700000
  375. #define AM437X_REV_ES1_0 AM437X_CLASS
  376. #define OMAP443X_CLASS 0x44300044
  377. #define OMAP4430_REV_ES1_0 (OMAP443X_CLASS | (0x10 << 8))
  378. #define OMAP4430_REV_ES2_0 (OMAP443X_CLASS | (0x20 << 8))
  379. #define OMAP4430_REV_ES2_1 (OMAP443X_CLASS | (0x21 << 8))
  380. #define OMAP4430_REV_ES2_2 (OMAP443X_CLASS | (0x22 << 8))
  381. #define OMAP4430_REV_ES2_3 (OMAP443X_CLASS | (0x23 << 8))
  382. #define OMAP446X_CLASS 0x44600044
  383. #define OMAP4460_REV_ES1_0 (OMAP446X_CLASS | (0x10 << 8))
  384. #define OMAP4460_REV_ES1_1 (OMAP446X_CLASS | (0x11 << 8))
  385. #define OMAP447X_CLASS 0x44700044
  386. #define OMAP4470_REV_ES1_0 (OMAP447X_CLASS | (0x10 << 8))
  387. #define OMAP54XX_CLASS 0x54000054
  388. #define OMAP5430_REV_ES1_0 (OMAP54XX_CLASS | (0x30 << 16) | (0x10 << 8))
  389. #define OMAP5430_REV_ES2_0 (OMAP54XX_CLASS | (0x30 << 16) | (0x20 << 8))
  390. #define OMAP5432_REV_ES1_0 (OMAP54XX_CLASS | (0x32 << 16) | (0x10 << 8))
  391. #define OMAP5432_REV_ES2_0 (OMAP54XX_CLASS | (0x32 << 16) | (0x20 << 8))
  392. void omap2xxx_check_revision(void);
  393. void omap3xxx_check_revision(void);
  394. void omap4xxx_check_revision(void);
  395. void omap5xxx_check_revision(void);
  396. void omap3xxx_check_features(void);
  397. void ti81xx_check_features(void);
  398. void am33xx_check_features(void);
  399. void omap4xxx_check_features(void);
  400. /*
  401. * Runtime detection of OMAP3 features
  402. *
  403. * OMAP3_HAS_IO_CHAIN_CTRL: Some later members of the OMAP3 chip
  404. * family have OS-level control over the I/O chain clock. This is
  405. * to avoid a window during which wakeups could potentially be lost
  406. * during powerdomain transitions. If this bit is set, it
  407. * indicates that the chip does support OS-level control of this
  408. * feature.
  409. */
  410. extern u32 omap_features;
  411. #define OMAP3_HAS_L2CACHE BIT(0)
  412. #define OMAP3_HAS_IVA BIT(1)
  413. #define OMAP3_HAS_SGX BIT(2)
  414. #define OMAP3_HAS_NEON BIT(3)
  415. #define OMAP3_HAS_ISP BIT(4)
  416. #define OMAP3_HAS_192MHZ_CLK BIT(5)
  417. #define OMAP3_HAS_IO_WAKEUP BIT(6)
  418. #define OMAP3_HAS_SDRC BIT(7)
  419. #define OMAP3_HAS_IO_CHAIN_CTRL BIT(8)
  420. #define OMAP4_HAS_PERF_SILICON BIT(9)
  421. #define OMAP3_HAS_FEATURE(feat,flag) \
  422. static inline unsigned int omap3_has_ ##feat(void) \
  423. { \
  424. return omap_features & OMAP3_HAS_ ##flag; \
  425. } \
  426. OMAP3_HAS_FEATURE(l2cache, L2CACHE)
  427. OMAP3_HAS_FEATURE(sgx, SGX)
  428. OMAP3_HAS_FEATURE(iva, IVA)
  429. OMAP3_HAS_FEATURE(neon, NEON)
  430. OMAP3_HAS_FEATURE(isp, ISP)
  431. OMAP3_HAS_FEATURE(192mhz_clk, 192MHZ_CLK)
  432. OMAP3_HAS_FEATURE(io_wakeup, IO_WAKEUP)
  433. OMAP3_HAS_FEATURE(sdrc, SDRC)
  434. OMAP3_HAS_FEATURE(io_chain_ctrl, IO_CHAIN_CTRL)
  435. /*
  436. * Runtime detection of OMAP4 features
  437. */
  438. #define OMAP4_HAS_FEATURE(feat, flag) \
  439. static inline unsigned int omap4_has_ ##feat(void) \
  440. { \
  441. return omap_features & OMAP4_HAS_ ##flag; \
  442. } \
  443. OMAP4_HAS_FEATURE(perf_silicon, PERF_SILICON)
  444. /*
  445. * We need to make sure omap initcalls don't run when
  446. * multiplatform kernels are booted on other SoCs.
  447. */
  448. #define omap_initcall(level, fn) \
  449. static int __init __used __##fn(void) \
  450. { \
  451. if (!soc_is_omap()) \
  452. return 0; \
  453. return fn(); \
  454. } \
  455. level(__##fn);
  456. #define omap_early_initcall(fn) omap_initcall(early_initcall, fn)
  457. #define omap_core_initcall(fn) omap_initcall(core_initcall, fn)
  458. #define omap_postcore_initcall(fn) omap_initcall(postcore_initcall, fn)
  459. #define omap_arch_initcall(fn) omap_initcall(arch_initcall, fn)
  460. #define omap_subsys_initcall(fn) omap_initcall(subsys_initcall, fn)
  461. #define omap_device_initcall(fn) omap_initcall(device_initcall, fn)
  462. #define omap_late_initcall(fn) omap_initcall(late_initcall, fn)
  463. #define omap_late_initcall_sync(fn) omap_initcall(late_initcall_sync, fn)
  464. #endif /* __ASSEMBLY__ */