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