Skip to contentSkip to conversation

video: atmel: implement lcd_setcolreg funtion

PATCH Superseded Bo Shen 2 participants 3 messages Oct 29, 2012 – Nov 6, 2012

Subsystems (2)

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Bo Shen

author
#0 lore raw

PATCH 1/1 video: atmel: implement lcd_setcolreg funtion

---
 drivers/video/atmel_hlcdfb.c |    6 ++++++
 1 file changed, 6 insertions(+)
drivers/video/atmel_hlcdfb.c +6 -0
index beb7fa3..4110d4d 100644
@@ -51,6 +51,12 @@ short console_row;
 #define lcdc_readl(reg)		__raw_readl((reg))
 #define lcdc_writel(reg, val)	__raw_writel((val), (reg))
 
+void lcd_setcolreg(ushort regno, ushort red, ushort green, ushort blue)
+{
+	lcdc_writel((red << 16) | (green << 8) | blue,
+			panel_info.mmio + ATMEL_LCDC_LUT(regno));
+}
+
 void lcd_ctrl_init(void *lcdbase)
 {
 	unsigned long value;
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 video: atmel: implement lcd_setcolreg funtion

Dear Bo Shen,

Quoted 4 lines · Bo Shen
---
 drivers/video/atmel_hlcdfb.c |    6 ++++++
 1 file changed, 6 insertions(+)

Applied to u-boot-atmel/master, thanks!

Best regards

Andreas Bie?mann

#2 lore raw

PATCH 1/1 video: atmel: implement lcd_setcolreg funtion

Dear Bo Shen,

Quoted 10 lines · Andreas Bie?mann

Dear Bo Shen,

Quoted 4 lines · Bo Shen
---
 drivers/video/atmel_hlcdfb.c |    6 ++++++
 1 file changed, 6 insertions(+)

Applied to u-boot-atmel/master, thanks!

Patch was removed from u-boot-atmel/master due to NAK from ARM custodian. Please read
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/146403
I will take your patch and send a series with the common/lcd.c changes to the list.

Best regards

Andreas Bie?mann