drivers/video/am335x-fb: Fix bits for LCD_PALMODE_RAWDATA definition
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.
Signed-off-by Martin Pietryka <[email protected]>
--- drivers/video/am335x-fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/am335x-fb.c +1 -1
@@ -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
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.Signed-off-by Martin Pietryka <[email protected]>--- drivers/video/am335x-fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to u-boot-video/master. Thanks!
--
Anatolij
[U-Boot] Antwort: [PATCH] drivers/video/am335x-fb: Fix bits for LCD_PALMODE_RAWDATA definition
In reply to Martin PietrykaQuoted 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.Signed-off-by Martin Pietryka <[email protected]>--- drivers/video/am335x-fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/video/am335x-fb.c +1
-1@@ -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
Reviewed-by Hannes Schmelzer <[email protected]>