video-ep93xx.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef __VIDEO_EP93XX_H
  2. #define __VIDEO_EP93XX_H
  3. struct platform_device;
  4. struct fb_info;
  5. /* VideoAttributes flags */
  6. #define EP93XXFB_STATE_MACHINE_ENABLE (1 << 0)
  7. #define EP93XXFB_PIXEL_CLOCK_ENABLE (1 << 1)
  8. #define EP93XXFB_VSYNC_ENABLE (1 << 2)
  9. #define EP93XXFB_PIXEL_DATA_ENABLE (1 << 3)
  10. #define EP93XXFB_COMPOSITE_SYNC (1 << 4)
  11. #define EP93XXFB_SYNC_VERT_HIGH (1 << 5)
  12. #define EP93XXFB_SYNC_HORIZ_HIGH (1 << 6)
  13. #define EP93XXFB_SYNC_BLANK_HIGH (1 << 7)
  14. #define EP93XXFB_PCLK_FALLING (1 << 8)
  15. #define EP93XXFB_ENABLE_AC (1 << 9)
  16. #define EP93XXFB_ENABLE_LCD (1 << 10)
  17. #define EP93XXFB_ENABLE_CCIR (1 << 12)
  18. #define EP93XXFB_USE_PARALLEL_INTERFACE (1 << 13)
  19. #define EP93XXFB_ENABLE_INTERRUPT (1 << 14)
  20. #define EP93XXFB_USB_INTERLACE (1 << 16)
  21. #define EP93XXFB_USE_EQUALIZATION (1 << 17)
  22. #define EP93XXFB_USE_DOUBLE_HORZ (1 << 18)
  23. #define EP93XXFB_USE_DOUBLE_VERT (1 << 19)
  24. #define EP93XXFB_USE_BLANK_PIXEL (1 << 20)
  25. #define EP93XXFB_USE_SDCSN0 (0 << 21)
  26. #define EP93XXFB_USE_SDCSN1 (1 << 21)
  27. #define EP93XXFB_USE_SDCSN2 (2 << 21)
  28. #define EP93XXFB_USE_SDCSN3 (3 << 21)
  29. #define EP93XXFB_ENABLE (EP93XXFB_STATE_MACHINE_ENABLE | \
  30. EP93XXFB_PIXEL_CLOCK_ENABLE | \
  31. EP93XXFB_VSYNC_ENABLE | \
  32. EP93XXFB_PIXEL_DATA_ENABLE)
  33. struct ep93xxfb_mach_info {
  34. unsigned int flags;
  35. int (*setup)(struct platform_device *pdev);
  36. void (*teardown)(struct platform_device *pdev);
  37. void (*blank)(int blank_mode, struct fb_info *info);
  38. };
  39. #endif /* __VIDEO_EP93XX_H */