From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Thu, 28 Apr 2016 16:57:16 +0200 Subject: [U-Boot] [PATCH v3 2/2] drivers/video/am335x-fb: Properly point framebuffer behind palette In-Reply-To: <1461785956-30309-2-git-send-email-martin.pietryka@chello.at> References: <1461712873-6190-1-git-send-email-martin.pietryka@chello.at> <1461785956-30309-1-git-send-email-martin.pietryka@chello.at> <1461785956-30309-2-git-send-email-martin.pietryka@chello.at> Message-ID: <20160428165716.63373476@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 27 Apr 2016 21:39:16 +0200 Martin Pietryka martin.pietryka at chello.at 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 shifted. > > NOTE: According to the TRM, even in 16/24bit mode a palette is required > in the first 32 bytes of the framebuffer. > > See also: > https://e2e.ti.com/support/arm/sitara_arm/f/791/p/234967/834483#834483 > > "In this mode, the LCDC will assume all information is data and thus you > need to ensure that the DMA points to the first pixel of data and not the > first entry in the frame buffer which is 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(-) appied to u-boot-video/master, thanks! -- Anatolij