zipitz2: enable LCD rotation
z2's screen is rotated by 270 degrees
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Acked-by: Marek Vasut <marex@denx.de>
diff --git a/drivers/video/pxa_lcd.c b/drivers/video/pxa_lcd.c
index 2799425..1809fc6 100644
--- a/drivers/video/pxa_lcd.c
+++ b/drivers/video/pxa_lcd.c
@@ -175,6 +175,7 @@
vidinfo_t panel_info = {
.vl_col = 240,
.vl_row = 320,
+ .vl_rot = 3,
.vl_width = 240,
.vl_height = 320,
.vl_clkp = CONFIG_SYS_HIGH,
diff --git a/include/configs/zipitz2.h b/include/configs/zipitz2.h
index 586a445..169eaf3 100644
--- a/include/configs/zipitz2.h
+++ b/include/configs/zipitz2.h
@@ -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