Adding support for MOXA ART SoC. Testing port of linux-2.6.32.60-moxart.
[linux-3.6.7-moxart.git] / include / linux / platform_data / omap_drm.h
blob3da73bdc2031afcc32553bacb5d39cca22288008
1 /*
2 * DRM/KMS platform data for TI OMAP platforms
4 * Copyright (C) 2012 Texas Instruments
5 * Author: Rob Clark <rob.clark@linaro.org>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published by
9 * the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
16 * You should have received a copy of the GNU General Public License along with
17 * this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef __PLATFORM_DATA_OMAP_DRM_H__
21 #define __PLATFORM_DATA_OMAP_DRM_H__
24 * Optional platform data to configure the default configuration of which
25 * pipes/overlays/CRTCs are used.. if this is not provided, then instead the
26 * first CONFIG_DRM_OMAP_NUM_CRTCS are used, and they are each connected to
27 * one manager, with priority given to managers that are connected to
28 * detected devices. Remaining overlays are used as video planes. This
29 * should be a good default behavior for most cases, but yet there still
30 * might be times when you wish to do something different.
32 struct omap_kms_platform_data {
33 /* overlays to use as CRTCs: */
34 int ovl_cnt;
35 const int *ovl_ids;
37 /* overlays to use as video planes: */
38 int pln_cnt;
39 const int *pln_ids;
41 int mgr_cnt;
42 const int *mgr_ids;
44 int dev_cnt;
45 const char **dev_names;
48 struct omap_drm_platform_data {
49 struct omap_kms_platform_data *kms_pdata;
52 #endif /* __PLATFORM_DATA_OMAP_DRM_H__ */