summaryrefslogtreecommitdiff
path: root/include/lcd.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2015-04-20 13:13:52 (GMT)
committerTom Rini <trini@konsulko.com>2015-04-20 13:13:52 (GMT)
commit1733259d25015c28c47990ec11af99b3f62f811c (patch)
tree654c376440e5b01603e88dc22047d657f635def7 /include/lcd.h
parent791a9f67f4f8db512cf59b40f47544fb335cd8db (diff)
parentfc1a79d95e9038e9cf53f99c1825005b4dfaf7f4 (diff)
downloadu-boot-1733259d25015c28c47990ec11af99b3f62f811c.tar.xz
Merge branch 'master' of git://git.denx.de/u-boot-video
Diffstat (limited to 'include/lcd.h')
-rw-r--r--include/lcd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/lcd.h b/include/lcd.h
index f049fd3..59202b7 100644
--- a/include/lcd.h
+++ b/include/lcd.h
@@ -51,6 +51,7 @@ void lcd_set_flush_dcache(int flush);
typedef struct vidinfo {
ushort vl_col; /* Number of columns (i.e. 160) */
ushort vl_row; /* Number of rows (i.e. 100) */
+ ushort vl_rot; /* Rotation of Display (0, 1, 2, 3) */
u_char vl_bpix; /* Bits per pixel, 0 = 1 */
ushort *cmap; /* Pointer to the colormap */
void *priv; /* Pointer to driver-specific data */
@@ -196,6 +197,14 @@ void lcd_sync(void);
#define CONSOLE_COLOR_WHITE 0xffff /* Must remain last / highest */
#endif /* color definitions */
+#if LCD_BPP == LCD_COLOR16
+#define fbptr_t ushort
+#elif LCD_BPP == LCD_COLOR32
+#define fbptr_t u32
+#else
+#define fbptr_t uchar
+#endif
+
#ifndef PAGE_SIZE
#define PAGE_SIZE 4096
#endif