2005-11-10 14:26:51 +00:00
/*
* linux / arch / arm / mach - omap2 / devices . c
*
* OMAP2 platform device setup / initialization
*
* This program is free software ; you can redistribute it and / or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation ; either version 2 of the License , or
* ( at your option ) any later version .
*/
2011-07-26 10:53:52 +01:00
# include <linux/gpio.h>
2005-11-10 14:26:51 +00:00
# include <linux/kernel.h>
# include <linux/init.h>
# include <linux/platform_device.h>
2008-09-06 12:10:45 +01:00
# include <linux/io.h>
2008-12-10 17:37:17 -08:00
# include <linux/clk.h>
2010-09-23 20:02:42 +05:30
# include <linux/err.h>
2011-02-02 17:52:14 +05:30
# include <linux/slab.h>
2011-08-12 13:48:47 +02:00
# include <linux/of.h>
2012-09-17 16:26:11 -07:00
# include <linux/pinctrl/machine.h>
2005-11-10 14:26:51 +00:00
# include <asm/mach-types.h>
# include <asm/mach/map.h>
2012-11-30 08:41:50 -08:00
# include <linux/omap-dma.h>
2012-10-02 17:41:35 -07:00
2012-02-24 10:34:35 -08:00
# include "iomap.h"
2012-10-02 17:41:35 -07:00
# include "omap_hwmod.h"
2012-10-02 17:25:48 -07:00
# include "omap_device.h"
2005-11-10 14:26:51 +00:00
2012-08-27 17:43:01 -07:00
# include "soc.h"
# include "common.h"
2010-10-08 11:40:20 -06:00
# include "control.h"
2013-09-16 12:48:31 +05:30
# include "display.h"
2009-12-11 16:16:32 -08:00
2011-02-08 14:10:45 +05:30
# define L3_MODULES_MAX_LEN 12
2011-03-09 16:00:29 +05:30
# define L3_MODULES 3
2011-02-08 14:10:45 +05:30
2008-12-10 17:37:16 -08:00
/*-------------------------------------------------------------------------*/
2016-08-11 15:29:45 -04:00
# if IS_ENABLED(CONFIG_VIDEO_OMAP2_VOUT)
# if IS_ENABLED(CONFIG_FB_OMAP2)
2010-05-10 14:29:14 -07:00
static struct resource omap_vout_resource [ 3 - CONFIG_FB_OMAP2_NUM_FBS ] = {
} ;
# else
static struct resource omap_vout_resource [ 2 ] = {
} ;
# endif
static struct platform_device omap_vout_device = {
. name = " omap_vout " ,
. num_resources = ARRAY_SIZE ( omap_vout_resource ) ,
. resource = & omap_vout_resource [ 0 ] ,
. id = - 1 ,
} ;
2013-09-16 12:48:31 +05:30
int __init omap_init_vout ( void )
2010-05-10 14:29:14 -07:00
{
2013-09-16 12:48:31 +05:30
return platform_device_register ( & omap_vout_device ) ;
2010-05-10 14:29:14 -07:00
}
# else
2013-09-16 12:48:31 +05:30
int __init omap_init_vout ( void ) { return 0 ; }
2010-05-10 14:29:14 -07:00
# endif