blob: f4e4a237ebd2626afffd955768083029eff02d45 [file] [log] [blame]
Rob Clarkcd5351f2011-11-12 12:09:40 -06001/*
Andy Grosse2fb5052012-05-23 15:08:10 -05002 * DRM/KMS platform data for TI OMAP platforms
Rob Clarkcd5351f2011-11-12 12:09:40 -06003 *
Andy Grosse2fb5052012-05-23 15:08:10 -05004 * Copyright (C) 2012 Texas Instruments
5 * Author: Rob Clark <rob.clark@linaro.org>
Rob Clarkcd5351f2011-11-12 12:09:40 -06006 *
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.
10 *
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.
15 *
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/>.
18 */
19
Andy Grosse2fb5052012-05-23 15:08:10 -050020#ifndef __PLATFORM_DATA_OMAP_DRM_H__
21#define __PLATFORM_DATA_OMAP_DRM_H__
Rob Clarkcd5351f2011-11-12 12:09:40 -060022
Andy Grosse2fb5052012-05-23 15:08:10 -050023/*
24 * Optional platform data to configure the default configuration of which
Rob Clarkcd5351f2011-11-12 12:09:40 -060025 * 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
Rob Clarkbb5c2d92012-01-16 12:51:16 -060028 * 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.
Rob Clarkcd5351f2011-11-12 12:09:40 -060031 */
Andy Gross71e88312011-12-05 19:19:21 -060032struct omap_kms_platform_data {
Rob Clarkbb5c2d92012-01-16 12:51:16 -060033 /* overlays to use as CRTCs: */
Rob Clarkcd5351f2011-11-12 12:09:40 -060034 int ovl_cnt;
35 const int *ovl_ids;
Rob Clarkbb5c2d92012-01-16 12:51:16 -060036
37 /* overlays to use as video planes: */
38 int pln_cnt;
39 const int *pln_ids;
40
Rob Clarkcd5351f2011-11-12 12:09:40 -060041 int mgr_cnt;
42 const int *mgr_ids;
Rob Clarkbb5c2d92012-01-16 12:51:16 -060043
Rob Clarkcd5351f2011-11-12 12:09:40 -060044 int dev_cnt;
45 const char **dev_names;
46};
47
Andy Gross71e88312011-12-05 19:19:21 -060048struct omap_drm_platform_data {
Rob Clark5e3b0872012-10-29 09:31:12 +010049 uint32_t omaprev;
Andy Gross71e88312011-12-05 19:19:21 -060050 struct omap_kms_platform_data *kms_pdata;
Andy Gross71e88312011-12-05 19:19:21 -060051};
52
Andy Grosse2fb5052012-05-23 15:08:10 -050053#endif /* __PLATFORM_DATA_OMAP_DRM_H__ */