]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - drivers/staging/sm750fb/ddk750_mode.h
Merge tag 'sunxi-fixes-for-4.13' of https://git.kernel.org/pub/scm/linux/kernel/git...
[karo-tx-linux.git] / drivers / staging / sm750fb / ddk750_mode.h
1 #ifndef DDK750_MODE_H__
2 #define DDK750_MODE_H__
3
4 #include "ddk750_chip.h"
5
6 enum spolarity {
7         POS = 0, /* positive */
8         NEG, /* negative */
9 };
10
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;
18
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;
25
26         /* Refresh timing. */
27         unsigned long pixel_clock;
28         unsigned long horizontal_frequency;
29         unsigned long vertical_frequency;
30
31         /* Clock Phase. This clock phase only applies to Panel. */
32         enum spolarity clock_phase_polarity;
33 };
34
35 int ddk750_setModeTiming(struct mode_parameter *parm, clock_type_t clock);
36 #endif