summaryrefslogtreecommitdiff
path: root/include/lcd.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-06-03 00:24:36 +0200
committerWolfgang Denk <wd@denx.de>2008-06-03 00:24:36 +0200
commit912810eeca90eedd1503f5e883f3a8da39d7ff89 (patch)
tree56d7a80b4d10e12e088eb51ad4aeb0fa22d0ed7a /include/lcd.h
parent7a68389a231ac061ba2ffd628f86e15ed0545a7b (diff)
parent602cac1389b755b223272f2328a47e6f8c240848 (diff)
downloadu-boot-imx-912810eeca90eedd1503f5e883f3a8da39d7ff89.zip
u-boot-imx-912810eeca90eedd1503f5e883f3a8da39d7ff89.tar.gz
u-boot-imx-912810eeca90eedd1503f5e883f3a8da39d7ff89.tar.bz2
Merge remote branch 'u-boot-at91/for-1.3.4'
Diffstat (limited to 'include/lcd.h')
-rw-r--r--include/lcd.h30
1 files changed, 29 insertions, 1 deletions
diff --git a/include/lcd.h b/include/lcd.h
index 8a4273c..44ac8ef 100644
--- a/include/lcd.h
+++ b/include/lcd.h
@@ -155,7 +155,35 @@ typedef struct vidinfo {
u_char vl_bpix; /* Bits per pixel, 0 = 1 */
} vidinfo_t;
-#endif /* CONFIG_MPC823, CONFIG_PXA250 or CONFIG_MCC200 */
+
+#elif defined(CONFIG_ATMEL_LCD)
+
+typedef struct vidinfo {
+ u_long vl_col; /* Number of columns (i.e. 640) */
+ u_long vl_row; /* Number of rows (i.e. 480) */
+ u_long vl_clk; /* pixel clock in ps */
+
+ /* LCD configuration register */
+ u_long vl_sync; /* Horizontal / vertical sync */
+ u_long vl_bpix; /* Bits per pixel, 0 = 1, 1 = 2, 2 = 4, 3 = 8, 4 = 16 */
+ u_long vl_tft; /* 0 = passive, 1 = TFT */
+
+ /* Horizontal control register. */
+ u_long vl_hsync_len; /* Length of horizontal sync */
+ u_long vl_left_margin; /* Time from sync to picture */
+ u_long vl_right_margin; /* Time from picture to sync */
+
+ /* Vertical control register. */
+ u_long vl_vsync_len; /* Length of vertical sync */
+ u_long vl_upper_margin; /* Time from sync to picture */
+ u_long vl_lower_margin; /* Time from picture to sync */
+
+ u_long mmio; /* Memory mapped registers */
+} vidinfo_t;
+
+extern vidinfo_t panel_info;
+
+#endif /* CONFIG_MPC823, CONFIG_PXA250 or CONFIG_MCC200 or CONFIG_ATMEL_LCD */
/* Video functions */