Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 1 | #ifndef DDK750_MODE_H__ |
| 2 | #define DDK750_MODE_H__ |
| 3 | |
| 4 | #include "ddk750_chip.h" |
| 5 | |
Juston Li | 259fef3 | 2015-07-14 21:14:45 -0700 | [diff] [blame] | 6 | typedef enum _spolarity_t { |
Juston Li | 7837653 | 2015-07-14 21:14:30 -0700 | [diff] [blame] | 7 | POS = 0, /* positive */ |
| 8 | NEG, /* negative */ |
Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 9 | } |
| 10 | spolarity_t; |
| 11 | |
| 12 | |
Juston Li | 259fef3 | 2015-07-14 21:14:45 -0700 | [diff] [blame] | 13 | typedef struct _mode_parameter_t { |
Juston Li | 7837653 | 2015-07-14 21:14:30 -0700 | [diff] [blame] | 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; |
Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 20 | |
Juston Li | 7837653 | 2015-07-14 21:14:30 -0700 | [diff] [blame] | 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; |
Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 27 | |
Juston Li | 7837653 | 2015-07-14 21:14:30 -0700 | [diff] [blame] | 28 | /* Refresh timing. */ |
| 29 | unsigned long pixel_clock; |
| 30 | unsigned long horizontal_frequency; |
| 31 | unsigned long vertical_frequency; |
Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 32 | |
Juston Li | 7837653 | 2015-07-14 21:14:30 -0700 | [diff] [blame] | 33 | /* Clock Phase. This clock phase only applies to Panel. */ |
| 34 | spolarity_t clock_phase_polarity; |
Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 35 | } |
| 36 | mode_parameter_t; |
| 37 | |
Isaac Assegai | 5e93581 | 2015-06-02 03:14:23 -0700 | [diff] [blame] | 38 | int ddk750_setModeTiming(mode_parameter_t *, clock_type_t); |
Sudip Mukherjee | 81dee67 | 2015-03-03 16:21:06 +0530 | [diff] [blame] | 39 | |
| 40 | |
| 41 | #endif |