]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/mach-omap2/devices.c
d428b95bd137fc38d264934215dc541a7d21e151
[karo-tx-linux.git] / arch / arm / mach-omap2 / devices.c
1 /*
2  * linux/arch/arm/mach-omap2/devices.c
3  *
4  * OMAP2 platform device setup/initialization
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  */
11 #include <linux/gpio.h>
12 #include <linux/kernel.h>
13 #include <linux/init.h>
14 #include <linux/platform_device.h>
15 #include <linux/io.h>
16 #include <linux/clk.h>
17 #include <linux/err.h>
18 #include <linux/gpio.h>
19 #include <linux/slab.h>
20 #include <linux/of.h>
21 #include <linux/pinctrl/machine.h>
22 #include <linux/platform_data/omap4-keypad.h>
23 #include <linux/platform_data/omap_ocp2scp.h>
24 #include <linux/usb/omap_control_usb.h>
25 #include <linux/wl12xx.h>
26
27 #include <asm/mach-types.h>
28 #include <asm/mach/map.h>
29
30 #include <linux/omap-dma.h>
31
32 #include "iomap.h"
33 #include "omap_hwmod.h"
34 #include "omap_device.h"
35 #include "omap4-keypad.h"
36
37 #include "soc.h"
38 #include "common.h"
39 #include "mux.h"
40 #include "control.h"
41 #include "devices.h"
42 #include "dma.h"
43
44 #define L3_MODULES_MAX_LEN 12
45 #define L3_MODULES 3
46
47 static int __init omap3_l3_init(void)
48 {
49         struct omap_hwmod *oh;
50         struct platform_device *pdev;
51         char oh_name[L3_MODULES_MAX_LEN];
52
53         /*
54          * To avoid code running on other OMAPs in
55          * multi-omap builds
56          */
57         if (!(cpu_is_omap34xx()))
58                 return -ENODEV;
59
60         snprintf(oh_name, L3_MODULES_MAX_LEN, "l3_main");
61
62         oh = omap_hwmod_lookup(oh_name);
63
64         if (!oh)
65                 pr_err("could not look up %s\n", oh_name);
66
67         pdev = omap_device_build("omap_l3_smx", 0, oh, NULL, 0);
68
69         WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name);
70
71         return IS_ERR(pdev) ? PTR_ERR(pdev) : 0;
72 }
73 omap_postcore_initcall(omap3_l3_init);
74
75 static int __init omap4_l3_init(void)
76 {
77         int i;
78         struct omap_hwmod *oh[3];
79         struct platform_device *pdev;
80         char oh_name[L3_MODULES_MAX_LEN];
81
82         /* If dtb is there, the devices will be created dynamically */
83         if (of_have_populated_dt())
84                 return -ENODEV;
85
86         /*
87          * To avoid code running on other OMAPs in
88          * multi-omap builds
89          */
90         if (!cpu_is_omap44xx() && !soc_is_omap54xx())
91                 return -ENODEV;
92
93         for (i = 0; i < L3_MODULES; i++) {
94                 snprintf(oh_name, L3_MODULES_MAX_LEN, "l3_main_%d", i+1);
95
96                 oh[i] = omap_hwmod_lookup(oh_name);
97                 if (!(oh[i]))
98                         pr_err("could not look up %s\n", oh_name);
99         }
100
101         pdev = omap_device_build_ss("omap_l3_noc", 0, oh, 3, NULL, 0);
102
103         WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name);
104
105         return IS_ERR(pdev) ? PTR_ERR(pdev) : 0;
106 }
107 omap_postcore_initcall(omap4_l3_init);
108
109 #if defined(CONFIG_VIDEO_OMAP2) || defined(CONFIG_VIDEO_OMAP2_MODULE)
110
111 static struct resource omap2cam_resources[] = {
112         {
113                 .start          = OMAP24XX_CAMERA_BASE,
114                 .end            = OMAP24XX_CAMERA_BASE + 0xfff,
115                 .flags          = IORESOURCE_MEM,
116         },
117         {
118                 .start          = 24 + OMAP_INTC_START,
119                 .flags          = IORESOURCE_IRQ,
120         }
121 };
122
123 static struct platform_device omap2cam_device = {
124         .name           = "omap24xxcam",
125         .id             = -1,
126         .num_resources  = ARRAY_SIZE(omap2cam_resources),
127         .resource       = omap2cam_resources,
128 };
129 #endif
130
131 #if defined(CONFIG_IOMMU_API)
132
133 #include <linux/platform_data/iommu-omap.h>
134
135 static struct resource omap3isp_resources[] = {
136         {
137                 .start          = OMAP3430_ISP_BASE,
138                 .end            = OMAP3430_ISP_END,
139                 .flags          = IORESOURCE_MEM,
140         },
141         {
142                 .start          = OMAP3430_ISP_CCP2_BASE,
143                 .end            = OMAP3430_ISP_CCP2_END,
144                 .flags          = IORESOURCE_MEM,
145         },
146         {
147                 .start          = OMAP3430_ISP_CCDC_BASE,
148                 .end            = OMAP3430_ISP_CCDC_END,
149                 .flags          = IORESOURCE_MEM,
150         },
151         {
152                 .start          = OMAP3430_ISP_HIST_BASE,
153                 .end            = OMAP3430_ISP_HIST_END,
154                 .flags          = IORESOURCE_MEM,
155         },
156         {
157                 .start          = OMAP3430_ISP_H3A_BASE,
158                 .end            = OMAP3430_ISP_H3A_END,
159                 .flags          = IORESOURCE_MEM,
160         },
161         {
162                 .start          = OMAP3430_ISP_PREV_BASE,
163                 .end            = OMAP3430_ISP_PREV_END,
164                 .flags          = IORESOURCE_MEM,
165         },
166         {
167                 .start          = OMAP3430_ISP_RESZ_BASE,
168                 .end            = OMAP3430_ISP_RESZ_END,
169                 .flags          = IORESOURCE_MEM,
170         },
171         {
172                 .start          = OMAP3430_ISP_SBL_BASE,
173                 .end            = OMAP3430_ISP_SBL_END,
174                 .flags          = IORESOURCE_MEM,
175         },
176         {
177                 .start          = OMAP3430_ISP_CSI2A_REGS1_BASE,
178                 .end            = OMAP3430_ISP_CSI2A_REGS1_END,
179                 .flags          = IORESOURCE_MEM,
180         },
181         {
182                 .start          = OMAP3430_ISP_CSIPHY2_BASE,
183                 .end            = OMAP3430_ISP_CSIPHY2_END,
184                 .flags          = IORESOURCE_MEM,
185         },
186         {
187                 .start          = OMAP3630_ISP_CSI2A_REGS2_BASE,
188                 .end            = OMAP3630_ISP_CSI2A_REGS2_END,
189                 .flags          = IORESOURCE_MEM,
190         },
191         {
192                 .start          = OMAP3630_ISP_CSI2C_REGS1_BASE,
193                 .end            = OMAP3630_ISP_CSI2C_REGS1_END,
194                 .flags          = IORESOURCE_MEM,
195         },
196         {
197                 .start          = OMAP3630_ISP_CSIPHY1_BASE,
198                 .end            = OMAP3630_ISP_CSIPHY1_END,
199                 .flags          = IORESOURCE_MEM,
200         },
201         {
202                 .start          = OMAP3630_ISP_CSI2C_REGS2_BASE,
203                 .end            = OMAP3630_ISP_CSI2C_REGS2_END,
204                 .flags          = IORESOURCE_MEM,
205         },
206         {
207                 .start          = OMAP343X_CTRL_BASE + OMAP343X_CONTROL_CSIRXFE,
208                 .end            = OMAP343X_CTRL_BASE + OMAP343X_CONTROL_CSIRXFE + 3,
209                 .flags          = IORESOURCE_MEM,
210         },
211         {
212                 .start          = OMAP343X_CTRL_BASE + OMAP3630_CONTROL_CAMERA_PHY_CTRL,
213                 .end            = OMAP343X_CTRL_BASE + OMAP3630_CONTROL_CAMERA_PHY_CTRL + 3,
214                 .flags          = IORESOURCE_MEM,
215         },
216         {
217                 .start          = 24 + OMAP_INTC_START,
218                 .flags          = IORESOURCE_IRQ,
219         }
220 };
221
222 static struct platform_device omap3isp_device = {
223         .name           = "omap3isp",
224         .id             = -1,
225         .num_resources  = ARRAY_SIZE(omap3isp_resources),
226         .resource       = omap3isp_resources,
227 };
228
229 static struct omap_iommu_arch_data omap3_isp_iommu = {
230         .name = "mmu_isp",
231 };
232
233 int omap3_init_camera(struct isp_platform_data *pdata)
234 {
235         omap3isp_device.dev.platform_data = pdata;
236         omap3isp_device.dev.archdata.iommu = &omap3_isp_iommu;
237
238         return platform_device_register(&omap3isp_device);
239 }
240
241 #else /* !CONFIG_IOMMU_API */
242
243 int omap3_init_camera(struct isp_platform_data *pdata)
244 {
245         return 0;
246 }
247
248 #endif
249
250 static inline void omap_init_camera(void)
251 {
252 #if defined(CONFIG_VIDEO_OMAP2) || defined(CONFIG_VIDEO_OMAP2_MODULE)
253         if (cpu_is_omap24xx())
254                 platform_device_register(&omap2cam_device);
255 #endif
256 }
257
258 #if IS_ENABLED(CONFIG_OMAP_CONTROL_USB)
259 static struct omap_control_usb_platform_data omap4_control_usb_pdata = {
260         .type = 1,
261 };
262
263 struct resource omap4_control_usb_res[] = {
264         {
265                 .name   = "control_dev_conf",
266                 .start  = 0x4a002300,
267                 .end    = 0x4a002303,
268                 .flags  = IORESOURCE_MEM,
269         },
270         {
271                 .name   = "otghs_control",
272                 .start  = 0x4a00233c,
273                 .end    = 0x4a00233f,
274                 .flags  = IORESOURCE_MEM,
275         },
276 };
277
278 static struct platform_device omap4_control_usb = {
279         .name = "omap-control-usb",
280         .id = -1,
281         .dev = {
282                 .platform_data = &omap4_control_usb_pdata,
283         },
284         .num_resources = 2,
285         .resource = omap4_control_usb_res,
286 };
287
288 static inline void __init omap_init_control_usb(void)
289 {
290         if (!cpu_is_omap44xx())
291                 return;
292
293         if (platform_device_register(&omap4_control_usb))
294                 pr_err("Error registering omap_control_usb device\n");
295 }
296
297 #else
298 static inline void omap_init_control_usb(void) { }
299 #endif /* CONFIG_OMAP_CONTROL_USB */
300
301 int __init omap4_keyboard_init(struct omap4_keypad_platform_data
302                         *sdp4430_keypad_data, struct omap_board_data *bdata)
303 {
304         struct platform_device *pdev;
305         struct omap_hwmod *oh;
306         struct omap4_keypad_platform_data *keypad_data;
307         unsigned int id = -1;
308         char *oh_name = "kbd";
309         char *name = "omap4-keypad";
310
311         oh = omap_hwmod_lookup(oh_name);
312         if (!oh) {
313                 pr_err("Could not look up %s\n", oh_name);
314                 return -ENODEV;
315         }
316
317         keypad_data = sdp4430_keypad_data;
318
319         pdev = omap_device_build(name, id, oh, keypad_data,
320                                  sizeof(struct omap4_keypad_platform_data));
321
322         if (IS_ERR(pdev)) {
323                 WARN(1, "Can't build omap_device for %s:%s.\n",
324                                                 name, oh->name);
325                 return PTR_ERR(pdev);
326         }
327         oh->mux = omap_hwmod_mux_init(bdata->pads, bdata->pads_cnt);
328
329         return 0;
330 }
331
332 #if defined(CONFIG_OMAP_MBOX_FWK) || defined(CONFIG_OMAP_MBOX_FWK_MODULE)
333 static inline void __init omap_init_mbox(void)
334 {
335         struct omap_hwmod *oh;
336         struct platform_device *pdev;
337
338         oh = omap_hwmod_lookup("mailbox");
339         if (!oh) {
340                 pr_err("%s: unable to find hwmod\n", __func__);
341                 return;
342         }
343
344         pdev = omap_device_build("omap-mailbox", -1, oh, NULL, 0);
345         WARN(IS_ERR(pdev), "%s: could not build device, err %ld\n",
346                                                 __func__, PTR_ERR(pdev));
347 }
348 #else
349 static inline void omap_init_mbox(void) { }
350 #endif /* CONFIG_OMAP_MBOX_FWK */
351
352 static inline void omap_init_sti(void) {}
353
354 #if defined(CONFIG_SND_SOC) || defined(CONFIG_SND_SOC_MODULE)
355
356 static struct platform_device omap_pcm = {
357         .name   = "omap-pcm-audio",
358         .id     = -1,
359 };
360
361 static void omap_init_audio(void)
362 {
363         platform_device_register(&omap_pcm);
364 }
365
366 #else
367 static inline void omap_init_audio(void) {}
368 #endif
369
370 #if defined(CONFIG_SND_OMAP_SOC_MCPDM) || \
371                 defined(CONFIG_SND_OMAP_SOC_MCPDM_MODULE)
372
373 static void __init omap_init_mcpdm(void)
374 {
375         struct omap_hwmod *oh;
376         struct platform_device *pdev;
377
378         oh = omap_hwmod_lookup("mcpdm");
379         if (!oh) {
380                 printk(KERN_ERR "Could not look up mcpdm hw_mod\n");
381                 return;
382         }
383
384         pdev = omap_device_build("omap-mcpdm", -1, oh, NULL, 0);
385         WARN(IS_ERR(pdev), "Can't build omap_device for omap-mcpdm.\n");
386 }
387 #else
388 static inline void omap_init_mcpdm(void) {}
389 #endif
390
391 #if defined(CONFIG_SND_OMAP_SOC_DMIC) || \
392                 defined(CONFIG_SND_OMAP_SOC_DMIC_MODULE)
393
394 static void __init omap_init_dmic(void)
395 {
396         struct omap_hwmod *oh;
397         struct platform_device *pdev;
398
399         oh = omap_hwmod_lookup("dmic");
400         if (!oh) {
401                 pr_err("Could not look up dmic hw_mod\n");
402                 return;
403         }
404
405         pdev = omap_device_build("omap-dmic", -1, oh, NULL, 0);
406         WARN(IS_ERR(pdev), "Can't build omap_device for omap-dmic.\n");
407 }
408 #else
409 static inline void omap_init_dmic(void) {}
410 #endif
411
412 #if defined(CONFIG_SND_OMAP_SOC_OMAP_HDMI) || \
413                 defined(CONFIG_SND_OMAP_SOC_OMAP_HDMI_MODULE)
414
415 static struct platform_device omap_hdmi_audio = {
416         .name   = "omap-hdmi-audio",
417         .id     = -1,
418 };
419
420 static void __init omap_init_hdmi_audio(void)
421 {
422         struct omap_hwmod *oh;
423         struct platform_device *pdev;
424
425         oh = omap_hwmod_lookup("dss_hdmi");
426         if (!oh) {
427                 printk(KERN_ERR "Could not look up dss_hdmi hw_mod\n");
428                 return;
429         }
430
431         pdev = omap_device_build("omap-hdmi-audio-dai", -1, oh, NULL, 0);
432         WARN(IS_ERR(pdev),
433              "Can't build omap_device for omap-hdmi-audio-dai.\n");
434
435         platform_device_register(&omap_hdmi_audio);
436 }
437 #else
438 static inline void omap_init_hdmi_audio(void) {}
439 #endif
440
441 #if defined(CONFIG_SPI_OMAP24XX) || defined(CONFIG_SPI_OMAP24XX_MODULE)
442
443 #include <linux/platform_data/spi-omap2-mcspi.h>
444
445 static int __init omap_mcspi_init(struct omap_hwmod *oh, void *unused)
446 {
447         struct platform_device *pdev;
448         char *name = "omap2_mcspi";
449         struct omap2_mcspi_platform_config *pdata;
450         static int spi_num;
451         struct omap2_mcspi_dev_attr *mcspi_attrib = oh->dev_attr;
452
453         pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);
454         if (!pdata) {
455                 pr_err("Memory allocation for McSPI device failed\n");
456                 return -ENOMEM;
457         }
458
459         pdata->num_cs = mcspi_attrib->num_chipselect;
460         switch (oh->class->rev) {
461         case OMAP2_MCSPI_REV:
462         case OMAP3_MCSPI_REV:
463                         pdata->regs_offset = 0;
464                         break;
465         case OMAP4_MCSPI_REV:
466                         pdata->regs_offset = OMAP4_MCSPI_REG_OFFSET;
467                         break;
468         default:
469                         pr_err("Invalid McSPI Revision value\n");
470                         kfree(pdata);
471                         return -EINVAL;
472         }
473
474         spi_num++;
475         pdev = omap_device_build(name, spi_num, oh, pdata, sizeof(*pdata));
476         WARN(IS_ERR(pdev), "Can't build omap_device for %s:%s\n",
477                                 name, oh->name);
478         kfree(pdata);
479         return 0;
480 }
481
482 static void omap_init_mcspi(void)
483 {
484         omap_hwmod_for_each_by_class("mcspi", omap_mcspi_init, NULL);
485 }
486
487 #else
488 static inline void omap_init_mcspi(void) {}
489 #endif
490
491 /**
492  * omap_init_rng - bind the RNG hwmod to the RNG omap_device
493  *
494  * Bind the RNG hwmod to the RNG omap_device.  No return value.
495  */
496 static void omap_init_rng(void)
497 {
498         struct omap_hwmod *oh;
499         struct platform_device *pdev;
500
501         oh = omap_hwmod_lookup("rng");
502         if (!oh)
503                 return;
504
505         pdev = omap_device_build("omap_rng", -1, oh, NULL, 0);
506         WARN(IS_ERR(pdev), "Can't build omap_device for omap_rng\n");
507 }
508
509 static void __init omap_init_sham(void)
510 {
511         struct omap_hwmod *oh;
512         struct platform_device *pdev;
513
514         oh = omap_hwmod_lookup("sham");
515         if (!oh)
516                 return;
517
518         pdev = omap_device_build("omap-sham", -1, oh, NULL, 0);
519         WARN(IS_ERR(pdev), "Can't build omap_device for omap-sham\n");
520 }
521
522 static void __init omap_init_aes(void)
523 {
524         struct omap_hwmod *oh;
525         struct platform_device *pdev;
526
527         oh = omap_hwmod_lookup("aes");
528         if (!oh)
529                 return;
530
531         pdev = omap_device_build("omap-aes", -1, oh, NULL, 0);
532         WARN(IS_ERR(pdev), "Can't build omap_device for omap-aes\n");
533 }
534
535 /*-------------------------------------------------------------------------*/
536
537 #if defined(CONFIG_VIDEO_OMAP2_VOUT) || \
538         defined(CONFIG_VIDEO_OMAP2_VOUT_MODULE)
539 #if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE)
540 static struct resource omap_vout_resource[3 - CONFIG_FB_OMAP2_NUM_FBS] = {
541 };
542 #else
543 static struct resource omap_vout_resource[2] = {
544 };
545 #endif
546
547 static struct platform_device omap_vout_device = {
548         .name           = "omap_vout",
549         .num_resources  = ARRAY_SIZE(omap_vout_resource),
550         .resource       = &omap_vout_resource[0],
551         .id             = -1,
552 };
553 static void omap_init_vout(void)
554 {
555         if (platform_device_register(&omap_vout_device) < 0)
556                 printk(KERN_ERR "Unable to register OMAP-VOUT device\n");
557 }
558 #else
559 static inline void omap_init_vout(void) {}
560 #endif
561
562 #if defined(CONFIG_OMAP_OCP2SCP) || defined(CONFIG_OMAP_OCP2SCP_MODULE)
563 static int count_ocp2scp_devices(struct omap_ocp2scp_dev *ocp2scp_dev)
564 {
565         int cnt = 0;
566
567         while (ocp2scp_dev->drv_name != NULL) {
568                 cnt++;
569                 ocp2scp_dev++;
570         }
571
572         return cnt;
573 }
574
575 static void __init omap_init_ocp2scp(void)
576 {
577         struct omap_hwmod       *oh;
578         struct platform_device  *pdev;
579         int                     bus_id = -1, dev_cnt = 0, i;
580         struct omap_ocp2scp_dev *ocp2scp_dev;
581         const char              *oh_name, *name;
582         struct omap_ocp2scp_platform_data *pdata;
583
584         if (!cpu_is_omap44xx())
585                 return;
586
587         oh_name = "ocp2scp_usb_phy";
588         name    = "omap-ocp2scp";
589
590         oh = omap_hwmod_lookup(oh_name);
591         if (!oh) {
592                 pr_err("%s: could not find omap_hwmod for %s\n", __func__,
593                                                                 oh_name);
594                 return;
595         }
596
597         pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);
598         if (!pdata) {
599                 pr_err("%s: No memory for ocp2scp pdata\n", __func__);
600                 return;
601         }
602
603         ocp2scp_dev = oh->dev_attr;
604         dev_cnt = count_ocp2scp_devices(ocp2scp_dev);
605
606         if (!dev_cnt) {
607                 pr_err("%s: No devices connected to ocp2scp\n", __func__);
608                 kfree(pdata);
609                 return;
610         }
611
612         pdata->devices = kzalloc(sizeof(struct omap_ocp2scp_dev *)
613                                         * dev_cnt, GFP_KERNEL);
614         if (!pdata->devices) {
615                 pr_err("%s: No memory for ocp2scp pdata devices\n", __func__);
616                 kfree(pdata);
617                 return;
618         }
619
620         for (i = 0; i < dev_cnt; i++, ocp2scp_dev++)
621                 pdata->devices[i] = ocp2scp_dev;
622
623         pdata->dev_cnt  = dev_cnt;
624
625         pdev = omap_device_build(name, bus_id, oh, pdata, sizeof(*pdata));
626         if (IS_ERR(pdev)) {
627                 pr_err("Could not build omap_device for %s %s\n",
628                                                 name, oh_name);
629                 kfree(pdata->devices);
630                 kfree(pdata);
631                 return;
632         }
633 }
634 #else
635 static inline void omap_init_ocp2scp(void) { }
636 #endif
637
638 #if IS_ENABLED(CONFIG_WL12XX)
639
640 static struct wl12xx_platform_data wl12xx __initdata;
641
642 void __init omap_init_wl12xx_of(void)
643 {
644         int ret;
645
646         if (!of_have_populated_dt())
647                 return;
648
649         if (of_machine_is_compatible("ti,omap4-sdp")) {
650                 wl12xx.board_ref_clock = WL12XX_REFCLOCK_26;
651                 wl12xx.board_tcxo_clock = WL12XX_TCXOCLOCK_26;
652                 wl12xx.irq = gpio_to_irq(53);
653         } else if (of_machine_is_compatible("ti,omap4-panda")) {
654                 wl12xx.board_ref_clock = WL12XX_REFCLOCK_38;
655                 wl12xx.irq = gpio_to_irq(53);
656         } else {
657                 return;
658         }
659
660         ret = wl12xx_set_platform_data(&wl12xx);
661         if (ret) {
662                 pr_err("error setting wl12xx data: %d\n", ret);
663                 return;
664         }
665 }
666 #else
667 static inline void omap_init_wl12xx_of(void)
668 {
669 }
670 #endif
671
672 /*-------------------------------------------------------------------------*/
673
674 static int __init omap2_init_devices(void)
675 {
676         /* Enable dummy states for those platforms without pinctrl support */
677         if (!of_have_populated_dt())
678                 pinctrl_provide_dummies();
679
680         /*
681          * please keep these calls, and their implementations above,
682          * in alphabetical order so they're easier to sort through.
683          */
684         omap_init_audio();
685         omap_init_camera();
686         omap_init_hdmi_audio();
687         omap_init_mbox();
688         /* If dtb is there, the devices will be created dynamically */
689         if (!of_have_populated_dt()) {
690                 omap_init_control_usb();
691                 omap_init_dmic();
692                 omap_init_mcpdm();
693                 omap_init_mcspi();
694                 omap_init_sham();
695                 omap_init_aes();
696         } else {
697                 /* These can be removed when bindings are done */
698                 omap_init_wl12xx_of();
699         }
700         omap_init_sti();
701         omap_init_rng();
702         omap_init_vout();
703         omap_init_ocp2scp();
704
705         return 0;
706 }
707 omap_arch_initcall(omap2_init_devices);