video.h 571 B

123456789101112131415161718192021222324252627282930
  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. int ipu_set_ldb_clock(int rate);
  24. #endif