video.h 576 B

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