Skip to contentSkip to conversation

ARM STM/i.MX: Add possibility to select the data mode for stm video driver ( DCn signal is high )

PATCH In review Gregory CLEMENT 1 participant 1 message Jan 4, 2011

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 3/4 ARM STM/i.MX: Add possibility to select the data mode for stm video driver ( DCn signal is high )

At reset command mode of STM video controller is in command mode (DCn signal is Low). This commit allow to use the data mode (DCn signal is High). See explanations about bit 16 in HW_LCDIF_CTRL B in datasheet.

---
 arch/arm/mach-stm/include/mach/fb.h |    1 +
 drivers/video/stm.c                 |    4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)
arch/arm/mach-stm/include/mach/fb.h +1 -0
index da71f10..f899433 100644
@@ -37,6 +37,7 @@ struct imx_fb_videomode {
 
 	unsigned dotclk_delay;	/**< refer manual HW_LCDIF_VDCTRL4 register */
 	unsigned ld_intf_width;	/**< refer STMLCDIF_* macros */
+	unsigned data_mode;
 	u32 bits_per_pixel;
 };
 
drivers/video/stm.c +4 -0
index 5035cd0..3dc2abe 100644
@@ -399,6 +399,10 @@ static int stmfb_activate_var(struct fb_info *fb_info)
 			fb_info->bits_per_pixel);
 		return -EINVAL;
 	}
+
+	if (pdata->data_mode)
+		reg |= CTRL_DATA_SELECT;
+
 	writel(reg, fbi->base + HW_LCDIF_CTRL);
 	pr_debug("Setting up CTRL to %08X\n", reg);
 
Signature · 9 lines
1.7.0.4




_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox