]>
git.ipfire.org Git - people/ms/u-boot.git/blob - include/pxa_lcd.h
2 * pxa_lcd.h - PXA LCD Controller structures
5 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
7 * SPDX-License-Identifier: GPL-2.0+
14 * PXA LCD DMA descriptor
16 struct pxafb_dma_descriptor
{
17 u_long fdadr
; /* Frame descriptor address register */
18 u_long fsadr
; /* Frame source address register */
19 u_long fidr
; /* Frame ID register */
20 u_long ldcmd
; /* Command register */
36 struct pxafb_dma_descriptor
*dmadesc_fblow
;
37 struct pxafb_dma_descriptor
*dmadesc_fbhigh
;
38 struct pxafb_dma_descriptor
*dmadesc_palette
;
40 u_long screen
; /* physical address of frame buffer */
41 u_long palette
; /* physical address of palette memory */
46 * LCD controller stucture for PXA CPU
48 typedef struct vidinfo
{
49 ushort vl_col
; /* Number of columns (i.e. 640) */
50 ushort vl_row
; /* Number of rows (i.e. 480) */
51 ushort vl_rot
; /* Rotation of Display (0, 1, 2, 3) */
52 ushort vl_width
; /* Width of display area in millimeters */
53 ushort vl_height
; /* Height of display area in millimeters */
55 /* LCD configuration register */
56 u_char vl_clkp
; /* Clock polarity */
57 u_char vl_oep
; /* Output Enable polarity */
58 u_char vl_hsp
; /* Horizontal Sync polarity */
59 u_char vl_vsp
; /* Vertical Sync polarity */
60 u_char vl_dp
; /* Data polarity */
61 u_char vl_bpix
;/* Bits per pixel, 0 = 1, 1 = 2, 2 = 4, 3 = 8, 4 = 16 */
62 u_char vl_lbw
; /* LCD Bus width, 0 = 4, 1 = 8 */
63 u_char vl_splt
;/* Split display, 0 = single-scan, 1 = dual-scan */
64 u_char vl_clor
; /* Color, 0 = mono, 1 = color */
65 u_char vl_tft
; /* 0 = passive, 1 = TFT */
67 /* Horizontal control register. Timing from data sheet */
68 ushort vl_hpw
; /* Horz sync pulse width */
69 u_char vl_blw
; /* Wait before of line */
70 u_char vl_elw
; /* Wait end of line */
72 /* Vertical control register. */
73 u_char vl_vpw
; /* Vertical sync pulse width */
74 u_char vl_bfw
; /* Wait before of frame */
75 u_char vl_efw
; /* Wait end of frame */
77 /* PXA LCD controller params */
78 struct pxafb_info pxa
;