From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Thu, 28 Apr 2016 16:56:50 +0200 Subject: [U-Boot] [PATCH v3 1/2] drivers/video/am335x-fb: Add support for 16bpp format In-Reply-To: <1461785956-30309-1-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> Message-ID: <20160428165650.59eea04f@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:15 +0200 Martin Pietryka martin.pietryka at chello.at 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 Liunx kernel tilcdc driver: > drivers/gpu/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 deletions(-) appied to u-boot-video/master, thanks! -- Anatolij