video.h 538 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * SPDX-License-Identifier: GPL-2.0+
  3. */
  4. #ifndef __IMX_VIDEO_H_
  5. #define __IMX_VIDEO_H_
  6. #include <linux/fb.h>
  7. #include <ipu_pixfmt.h>
  8. struct display_info_t {
  9. int bus;
  10. int addr;
  11. int pixfmt;
  12. int (*detect)(struct display_info_t const *dev);
  13. void (*enable)(struct display_info_t const *dev);
  14. struct fb_videomode mode;
  15. };
  16. #ifdef CONFIG_IMX_HDMI
  17. extern int detect_hdmi(struct display_info_t const *dev);
  18. #endif
  19. #ifdef CONFIG_IMX_VIDEO_SKIP
  20. extern struct display_info_t const displays[];
  21. extern size_t display_count;
  22. #endif
  23. #endif