omap_drm.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * DRM/KMS platform data for TI OMAP platforms
  3. *
  4. * Copyright (C) 2012 Texas Instruments
  5. * Author: Rob Clark <rob.clark@linaro.org>
  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. #ifndef __PLATFORM_DATA_OMAP_DRM_H__
  20. #define __PLATFORM_DATA_OMAP_DRM_H__
  21. /*
  22. * Optional platform data to configure the default configuration of which
  23. * pipes/overlays/CRTCs are used.. if this is not provided, then instead the
  24. * first CONFIG_DRM_OMAP_NUM_CRTCS are used, and they are each connected to
  25. * one manager, with priority given to managers that are connected to
  26. * detected devices. Remaining overlays are used as video planes. This
  27. * should be a good default behavior for most cases, but yet there still
  28. * might be times when you wish to do something different.
  29. */
  30. struct omap_kms_platform_data {
  31. /* overlays to use as CRTCs: */
  32. int ovl_cnt;
  33. const int *ovl_ids;
  34. /* overlays to use as video planes: */
  35. int pln_cnt;
  36. const int *pln_ids;
  37. int mgr_cnt;
  38. const int *mgr_ids;
  39. int dev_cnt;
  40. const char **dev_names;
  41. };
  42. struct omap_drm_platform_data {
  43. uint32_t omaprev;
  44. struct omap_kms_platform_data *kms_pdata;
  45. };
  46. #endif /* __PLATFORM_DATA_OMAP_DRM_H__ */