Rob Clark | cd5351f | 2011-11-12 12:09:40 -0600 | [diff] [blame] | 1 | /* |
Andy Gross | e2fb505 | 2012-05-23 15:08:10 -0500 | [diff] [blame] | 2 | * DRM/KMS platform data for TI OMAP platforms |
Rob Clark | cd5351f | 2011-11-12 12:09:40 -0600 | [diff] [blame] | 3 | * |
Andy Gross | e2fb505 | 2012-05-23 15:08:10 -0500 | [diff] [blame] | 4 | * Copyright (C) 2012 Texas Instruments |
| 5 | * Author: Rob Clark <rob.clark@linaro.org> |
Rob Clark | cd5351f | 2011-11-12 12:09:40 -0600 | [diff] [blame] | 6 | * |
| 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 Gross | e2fb505 | 2012-05-23 15:08:10 -0500 | [diff] [blame] | 20 | #ifndef __PLATFORM_DATA_OMAP_DRM_H__ |
| 21 | #define __PLATFORM_DATA_OMAP_DRM_H__ |
Rob Clark | cd5351f | 2011-11-12 12:09:40 -0600 | [diff] [blame] | 22 | |
Andy Gross | e2fb505 | 2012-05-23 15:08:10 -0500 | [diff] [blame] | 23 | /* |
| 24 | * Optional platform data to configure the default configuration of which |
Rob Clark | cd5351f | 2011-11-12 12:09:40 -0600 | [diff] [blame] | 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 |
Rob Clark | bb5c2d9 | 2012-01-16 12:51:16 -0600 | [diff] [blame] | 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. |
Rob Clark | cd5351f | 2011-11-12 12:09:40 -0600 | [diff] [blame] | 31 | */ |
Andy Gross | 71e8831 | 2011-12-05 19:19:21 -0600 | [diff] [blame] | 32 | struct omap_kms_platform_data { |
Rob Clark | bb5c2d9 | 2012-01-16 12:51:16 -0600 | [diff] [blame] | 33 | /* overlays to use as CRTCs: */ |
Rob Clark | cd5351f | 2011-11-12 12:09:40 -0600 | [diff] [blame] | 34 | int ovl_cnt; |
| 35 | const int *ovl_ids; |
Rob Clark | bb5c2d9 | 2012-01-16 12:51:16 -0600 | [diff] [blame] | 36 | |
| 37 | /* overlays to use as video planes: */ |
| 38 | int pln_cnt; |
| 39 | const int *pln_ids; |
| 40 | |
Rob Clark | cd5351f | 2011-11-12 12:09:40 -0600 | [diff] [blame] | 41 | int mgr_cnt; |
| 42 | const int *mgr_ids; |
Rob Clark | bb5c2d9 | 2012-01-16 12:51:16 -0600 | [diff] [blame] | 43 | |
Rob Clark | cd5351f | 2011-11-12 12:09:40 -0600 | [diff] [blame] | 44 | int dev_cnt; |
| 45 | const char **dev_names; |
| 46 | }; |
| 47 | |
Andy Gross | 71e8831 | 2011-12-05 19:19:21 -0600 | [diff] [blame] | 48 | struct omap_drm_platform_data { |
Rob Clark | 5e3b087 | 2012-10-29 09:31:12 +0100 | [diff] [blame] | 49 | uint32_t omaprev; |
Andy Gross | 71e8831 | 2011-12-05 19:19:21 -0600 | [diff] [blame] | 50 | struct omap_kms_platform_data *kms_pdata; |
Andy Gross | 71e8831 | 2011-12-05 19:19:21 -0600 | [diff] [blame] | 51 | }; |
| 52 | |
Andy Gross | e2fb505 | 2012-05-23 15:08:10 -0500 | [diff] [blame] | 53 | #endif /* __PLATFORM_DATA_OMAP_DRM_H__ */ |