ddk750_mode.h 927 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef DDK750_MODE_H__
  2. #define DDK750_MODE_H__
  3. #include "ddk750_chip.h"
  4. typedef enum _spolarity_t {
  5. POS = 0, /* positive */
  6. NEG, /* negative */
  7. }
  8. spolarity_t;
  9. typedef struct _mode_parameter_t {
  10. /* Horizontal timing. */
  11. unsigned long horizontal_total;
  12. unsigned long horizontal_display_end;
  13. unsigned long horizontal_sync_start;
  14. unsigned long horizontal_sync_width;
  15. spolarity_t horizontal_sync_polarity;
  16. /* Vertical timing. */
  17. unsigned long vertical_total;
  18. unsigned long vertical_display_end;
  19. unsigned long vertical_sync_start;
  20. unsigned long vertical_sync_height;
  21. spolarity_t vertical_sync_polarity;
  22. /* Refresh timing. */
  23. unsigned long pixel_clock;
  24. unsigned long horizontal_frequency;
  25. unsigned long vertical_frequency;
  26. /* Clock Phase. This clock phase only applies to Panel. */
  27. spolarity_t clock_phase_polarity;
  28. }
  29. mode_parameter_t;
  30. int ddk750_setModeTiming(mode_parameter_t *, clock_type_t);
  31. #endif