0001
0002
0003
0004
0005
0006
0007
0008 #include <linux/kernel.h>
0009 #include <linux/init.h>
0010 #include <linux/platform_device.h>
0011 #include <linux/io.h>
0012 #include <linux/clk.h>
0013 #include <linux/dma-mapping.h>
0014 #include <linux/err.h>
0015 #include <linux/slab.h>
0016 #include <linux/of.h>
0017 #include <linux/pinctrl/machine.h>
0018
0019 #include <asm/mach-types.h>
0020 #include <asm/mach/map.h>
0021
0022 #include <linux/omap-dma.h>
0023
0024 #include "iomap.h"
0025 #include "omap_hwmod.h"
0026 #include "omap_device.h"
0027
0028 #include "soc.h"
0029 #include "common.h"
0030 #include "control.h"
0031 #include "display.h"
0032
0033 #define L3_MODULES_MAX_LEN 12
0034 #define L3_MODULES 3
0035
0036
0037
0038 #if IS_ENABLED(CONFIG_VIDEO_OMAP2_VOUT)
0039 #if IS_ENABLED(CONFIG_FB_OMAP2)
0040 static struct resource omap_vout_resource[3 - CONFIG_FB_OMAP2_NUM_FBS] = {
0041 };
0042 #else
0043 static struct resource omap_vout_resource[2] = {
0044 };
0045 #endif
0046
0047 static u64 omap_vout_dma_mask = DMA_BIT_MASK(32);
0048
0049 static struct platform_device omap_vout_device = {
0050 .name = "omap_vout",
0051 .num_resources = ARRAY_SIZE(omap_vout_resource),
0052 .resource = &omap_vout_resource[0],
0053 .id = -1,
0054 .dev = {
0055 .dma_mask = &omap_vout_dma_mask,
0056 .coherent_dma_mask = DMA_BIT_MASK(32),
0057 },
0058 };
0059
0060 int __init omap_init_vout(void)
0061 {
0062 return platform_device_register(&omap_vout_device);
0063 }
0064 #else
0065 int __init omap_init_vout(void) { return 0; }
0066 #endif