Re: [U-Boot] [PATCH v2 1/2] drivers/video/am335x-fb: Add support for 16bpp format

2016-04-27 Thread Martin Pietryka
7/2016 11:42 AM, Martin Pietryka wrote: To support 16bpp we just need to change the raster_ctrl register accordingly. Also 32bpp mode should work as well, but was not tested. According to the TRM the uppermost byte will be ignored when LCD_TFT_24BPP_UNPACK is set. The switch logic is based on the Liun

[U-Boot] [PATCH v3 2/2] drivers/video/am335x-fb: Properly point framebuffer behind palette

2016-04-27 Thread Martin Pietryka
s the beginning of the 512 byte palette." Signed-off-by: Martin Pietryka Reviewed-by: Hannes Schmelzer Tested-by: Hannes Schmelzer --- Changes in v3: None drivers/video/am335x-fb.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/video/am335x-fb.c b/dri

[U-Boot] [PATCH v3 1/2] drivers/video/am335x-fb: Add support for 16bpp format

2016-04-27 Thread Martin Pietryka
/drm/tilcdc/tilcdc_crtc.c: lines 407 through 419 (kernel was checked out at commit: bcc981e9ed8) Signed-off-by: Martin Pietryka --- Changes in v3: - Moved switch statement before changing any registers drivers/video/am335x-fb.c | 22 +++--- 1 file changed, 19 insertions(+), 3

[U-Boot] [PATCH v2 1/2] drivers/video/am335x-fb: Add support for 16bpp format

2016-04-27 Thread Martin Pietryka
/drm/tilcdc/tilcdc_crtc.c: lines 407 through 419 (kernel was checked out at commit: bcc981e9ed8) Signed-off-by: Martin Pietryka --- drivers/video/am335x-fb.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/drivers/video/am335x-fb.c b/drivers/video

Re: [U-Boot] [PATCH 2/2] drivers/video/am335x-fb: Properly point framebuffer behind palette

2016-04-27 Thread Martin Pietryka
On 04/27/2016 11:02 AM, Hannes Schmelzer wrote: On 04/27/2016 01:21 AM, Martin Pietryka wrote: The DMA was outputting the palette on the screen because the base for the DMA was not after the palette. In addition to that, the ceiling was also too high, this led that the output on the screen was

Re: [U-Boot] [PATCH 2/2] drivers/video/am335x-fb: Properly point framebuffer behind palette

2016-04-27 Thread Martin Pietryka
Hi Hannes, On 04/27/2016 08:43 AM, Hannes Schmelzer wrote: On 04/27/2016 01:21 AM, Martin Pietryka wrote: The DMA was outputting the palette on the screen because the base for the DMA was not after the palette. In addition to that, the ceiling was also too high, this led that the output on

[U-Boot] [PATCH 1/2] drivers/video/am335x-fb: Add support for 16bpp format

2016-04-26 Thread Martin Pietryka
/drm/tilcdc/tilcdc_crtc.c: lines 407 through 419 (kernel was checked out at commit: bcc981e9ed8) Signed-off-by: Martin Pietryka --- drivers/video/am335x-fb.c | 29 +++-- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/drivers/video/am335x-fb.c b/drivers

[U-Boot] [PATCH 2/2] drivers/video/am335x-fb: Properly point framebuffer behind palette

2016-04-26 Thread Martin Pietryka
s the beginning of the 512 byte palette." Signed-off-by: Martin Pietryka --- drivers/video/am335x-fb.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/video/am335x-fb.c b/drivers/video/am335x-fb.c index f2b4c78..982db98 100644 --- a/drivers/video/am335x-

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

2016-04-25 Thread Martin Pietryka
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 --- drivers/video/am335x-fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/am335x-fb.c b/drivers/video/am335