Skip to contentSkip to conversation

drivers/video/am335x-fb: Fix bits for LCD_PALMODE_RAWDATA definition

PATCH In review Martin Pietryka 3 participants 3 messages Apr 25, 2016 – Apr 26, 2016 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/video/am335x-fb: Fix bits for LCD_PALMODE_RAWDATA definition

According to the TRM you have to set bits [21:20] to 0b10 for RAW mode, so (0x10 << 20) is obviously wrong here.

---
 drivers/video/am335x-fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/am335x-fb.c +1 -1
index e23d172..0ec843f 100644
@@ -55,7 +55,7 @@
 /* LCD Raster Ctrl Register */
 #define LCD_TFT_24BPP_MODE			(1 << 25)
 #define LCD_TFT_24BPP_UNPACK			(1 << 26)
-#define LCD_PALMODE_RAWDATA			(0x10 << 20)
+#define LCD_PALMODE_RAWDATA			(0x02 << 20)
 #define LCD_TFT_MODE				(0x01 << 7)
 #define LCD_RASTER_ENABLE			(0x01 << 0)
 
Signature · 1 line
2.8.0
#1 lore raw

PATCH 1/1 drivers/video/am335x-fb: Fix bits for LCD_PALMODE_RAWDATA definition

Quoted 7 lines · On Mon, 25 Apr 2016 21:25:07 +0200 Martin Pietryka martin.pietryka at…

According to the TRM you have to set bits [21:20] to 0b10 for RAW mode, so (0x10 << 20) is obviously wrong here.

---
 drivers/video/am335x-fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-video/master. Thanks!

--
Anatolij

Reviewed-by on v1 1/1
#2 lore raw

[U-Boot] Antwort: [PATCH] drivers/video/am335x-fb: Fix bits for LCD_PALMODE_RAWDATA definition

In reply to Martin Pietryka
Quoted 2 lines

According to the TRM you have to set bits [21:20] to 0b10 for RAW mode,

so

Quoted 22 lines

(0x10 << 20) is obviously wrong here.

---
 drivers/video/am335x-fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/am335x-fb.c +1 -1
index e23d172..0ec843f 100644
@@ -55,7 +55,7 @@
 /* LCD Raster Ctrl Register */
 #define LCD_TFT_24BPP_MODE         (1 << 25)
 #define LCD_TFT_24BPP_UNPACK         (1 << 26)
-#define LCD_PALMODE_RAWDATA         (0x10 << 20)
+#define LCD_PALMODE_RAWDATA         (0x02 << 20)
 #define LCD_TFT_MODE            (0x01 << 7)
 #define LCD_RASTER_ENABLE         (0x01 << 0)
 
Signature · 1 line
2.8.0