Nikita Kiryanov | baaa7dd | 2015-02-03 13:32:20 +0200 | [diff] [blame] | 1 | /* |
| 2 | * mpc823_lcd.h - MPC823 LCD Controller structures |
| 3 | * |
| 4 | * (C) Copyright 2001 |
| 5 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 6 | * |
| 7 | * SPDX-License-Identifier: GPL-2.0+ |
| 8 | */ |
| 9 | |
| 10 | #ifndef _MPC823_LCD_H_ |
| 11 | #define _MPC823_LCD_H_ |
| 12 | |
| 13 | /* |
| 14 | * LCD controller stucture for MPC823 CPU |
| 15 | */ |
| 16 | typedef struct vidinfo { |
| 17 | ushort vl_col; /* Number of columns (i.e. 640) */ |
| 18 | ushort vl_row; /* Number of rows (i.e. 480) */ |
Hannes Petermaier | 604c7d4 | 2015-03-27 08:01:38 +0100 | [diff] [blame] | 19 | ushort vl_rot; /* Rotation of Display (0, 1, 2, 3) */ |
Nikita Kiryanov | baaa7dd | 2015-02-03 13:32:20 +0200 | [diff] [blame] | 20 | ushort vl_width; /* Width of display area in millimeters */ |
| 21 | ushort vl_height; /* Height of display area in millimeters */ |
| 22 | |
| 23 | /* LCD configuration register */ |
| 24 | u_char vl_clkp; /* Clock polarity */ |
| 25 | u_char vl_oep; /* Output Enable polarity */ |
| 26 | u_char vl_hsp; /* Horizontal Sync polarity */ |
| 27 | u_char vl_vsp; /* Vertical Sync polarity */ |
| 28 | u_char vl_dp; /* Data polarity */ |
| 29 | u_char vl_bpix; /* Bits per pixel, 0 = 1, 1 = 2, 2 = 4, 3 = 8 */ |
| 30 | u_char vl_lbw; /* LCD Bus width, 0 = 4, 1 = 8 */ |
| 31 | u_char vl_splt; /* Split display, 0 = single-scan, 1 = dual-scan */ |
| 32 | u_char vl_clor; /* Color, 0 = mono, 1 = color */ |
| 33 | u_char vl_tft; /* 0 = passive, 1 = TFT */ |
| 34 | |
| 35 | /* Horizontal control register. Timing from data sheet */ |
| 36 | ushort vl_wbl; /* Wait between lines */ |
| 37 | |
| 38 | /* Vertical control register */ |
| 39 | u_char vl_vpw; /* Vertical sync pulse width */ |
| 40 | u_char vl_lcdac; /* LCD AC timing */ |
| 41 | u_char vl_wbf; /* Wait between frames */ |
| 42 | } vidinfo_t; |
| 43 | |
| 44 | #endif |