[U-Boot] [PATCH 02/11] zipitz2: enable LCD rotation
Vasily Khoruzhick
anarsoul at gmail.com
Mon Mar 21 02:37:01 CET 2016
z2's screen is rotated by 270 degrees
Signed-off-by: Vasily Khoruzhick <anarsoul at gmail.com>
---
drivers/video/pxa_lcd.c | 1 +
include/configs/zipitz2.h | 1 +
2 files changed, 2 insertions(+)
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 = {
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
--
2.7.2
More information about the U-Boot
mailing list