1 #ifndef DDK750_MODE_H__
2 #define DDK750_MODE_H__
4 #include "ddk750_chip.h"
7 POS = 0, /* positive */
11 struct mode_parameter {
12 /* Horizontal timing. */
13 unsigned long horizontal_total;
14 unsigned long horizontal_display_end;
15 unsigned long horizontal_sync_start;
16 unsigned long horizontal_sync_width;
17 enum spolarity horizontal_sync_polarity;
19 /* Vertical timing. */
20 unsigned long vertical_total;
21 unsigned long vertical_display_end;
22 unsigned long vertical_sync_start;
23 unsigned long vertical_sync_height;
24 enum spolarity vertical_sync_polarity;
27 unsigned long pixel_clock;
28 unsigned long horizontal_frequency;
29 unsigned long vertical_frequency;
31 /* Clock Phase. This clock phase only applies to Panel. */
32 enum spolarity clock_phase_polarity;
35 int ddk750_setModeTiming(struct mode_parameter *parm, clock_type_t clock);