dispc.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef _DISPC_H
  2. #define _DISPC_H
  3. #include <linux/interrupt.h>
  4. #define DISPC_PLANE_GFX 0
  5. #define DISPC_PLANE_VID1 1
  6. #define DISPC_PLANE_VID2 2
  7. #define DISPC_RGB_1_BPP 0x00
  8. #define DISPC_RGB_2_BPP 0x01
  9. #define DISPC_RGB_4_BPP 0x02
  10. #define DISPC_RGB_8_BPP 0x03
  11. #define DISPC_RGB_12_BPP 0x04
  12. #define DISPC_RGB_16_BPP 0x06
  13. #define DISPC_RGB_24_BPP 0x08
  14. #define DISPC_RGB_24_BPP_UNPACK_32 0x09
  15. #define DISPC_YUV2_422 0x0a
  16. #define DISPC_UYVY_422 0x0b
  17. #define DISPC_BURST_4x32 0
  18. #define DISPC_BURST_8x32 1
  19. #define DISPC_BURST_16x32 2
  20. #define DISPC_LOAD_CLUT_AND_FRAME 0x00
  21. #define DISPC_LOAD_CLUT_ONLY 0x01
  22. #define DISPC_LOAD_FRAME_ONLY 0x02
  23. #define DISPC_LOAD_CLUT_ONCE_FRAME 0x03
  24. #define DISPC_TFT_DATA_LINES_12 0
  25. #define DISPC_TFT_DATA_LINES_16 1
  26. #define DISPC_TFT_DATA_LINES_18 2
  27. #define DISPC_TFT_DATA_LINES_24 3
  28. extern void omap_dispc_set_lcd_size(int width, int height);
  29. extern void omap_dispc_enable_lcd_out(int enable);
  30. extern void omap_dispc_enable_digit_out(int enable);
  31. extern int omap_dispc_request_irq(unsigned long irq_mask,
  32. void (*callback)(void *data), void *data);
  33. extern void omap_dispc_free_irq(unsigned long irq_mask,
  34. void (*callback)(void *data), void *data);
  35. extern const struct lcd_ctrl omap2_int_ctrl;
  36. #endif