video.h 580 B

12345678910111213141516171819202122232425262728293031
  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 di;
  13. int (*detect)(struct display_info_t const *dev);
  14. void (*enable)(struct display_info_t const *dev);
  15. struct fb_videomode mode;
  16. };
  17. #ifdef CONFIG_IMX_HDMI
  18. extern int detect_hdmi(struct display_info_t const *dev);
  19. #endif
  20. #ifdef CONFIG_IMX_VIDEO_SKIP
  21. extern struct display_info_t const displays[];
  22. extern size_t display_count;
  23. #endif
  24. int ipu_set_ldb_clock(int rate);
  25. #endif