zipitz2: enable LCD rotation
authorVasily Khoruzhick <anarsoul@gmail.com>
Mon, 21 Mar 2016 01:37:01 +0000 (18:37 -0700)
committerTom Rini <trini@konsulko.com>
Sun, 27 Mar 2016 13:12:56 +0000 (09:12 -0400)
z2's screen is rotated by 270 degrees

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Acked-by: Marek Vasut <marex@denx.de>
drivers/video/pxa_lcd.c
include/configs/zipitz2.h

index 2799425a633181981bd3717e203f80be2f118762..1809fc6f1e2f09039c8e296f5b315c8eaf6ecf05 100644 (file)
@@ -175,6 +175,7 @@ vidinfo_t panel_info = {
 vidinfo_t panel_info = {
        .vl_col         = 240,
        .vl_row         = 320,
+       .vl_rot         = 3,
        .vl_width       = 240,
        .vl_height      = 320,
        .vl_clkp        = CONFIG_SYS_HIGH,
index 586a445f3ecc3ea97fd98074500e157c9dfd8745..169eaf3d88098f6e944dac835db9ba8f9da6d46d 100644 (file)
@@ -83,6 +83,7 @@
 #ifdef CONFIG_CMD_SPI
 #define        CONFIG_SOFT_SPI
 #define        CONFIG_LCD
+#define        CONFIG_LCD_ROTATION
 #define        CONFIG_PXA_LCD
 #define        CONFIG_LMS283GF05