2 * linux/arch/arm/mach-omap2/devices.c
4 * OMAP2 platform device setup/initialization
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.
11 #include <linux/gpio.h>
12 #include <linux/kernel.h>
13 #include <linux/init.h>
14 #include <linux/platform_device.h>
16 #include <linux/clk.h>
17 #include <linux/err.h>
18 #include <linux/slab.h>
20 #include <linux/pinctrl/machine.h>
22 #include <asm/mach-types.h>
23 #include <asm/mach/map.h>
25 #include <linux/omap-dma.h>
28 #include "omap_hwmod.h"
29 #include "omap_device.h"
36 #define L3_MODULES_MAX_LEN 12
39 /*-------------------------------------------------------------------------*/
41 #if IS_ENABLED(CONFIG_VIDEO_OMAP2_VOUT)
42 #if IS_ENABLED(CONFIG_FB_OMAP2)
43 static struct resource omap_vout_resource
[3 - CONFIG_FB_OMAP2_NUM_FBS
] = {
46 static struct resource omap_vout_resource
[2] = {
50 static struct platform_device omap_vout_device
= {
52 .num_resources
= ARRAY_SIZE(omap_vout_resource
),
53 .resource
= &omap_vout_resource
[0],
57 int __init
omap_init_vout(void)
59 return platform_device_register(&omap_vout_device
);
62 int __init
omap_init_vout(void) { return 0; }