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