Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Ports
u-boot-paz00
0007-bcm2835-video-Map-frame-buffer-as-3.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0007-bcm2835-video-Map-frame-buffer-as-3.patch of Package u-boot-paz00
From 1e867e1e0075b17bd8e2d6fb76ff8201863dd350 Mon Sep 17 00:00:00 2001 From: Alexander Graf <agraf@suse.de> Date: Mon, 6 Jun 2016 18:23:37 +0200 Subject: [PATCH] bcm2835 video: Map frame buffer as 32bpp To enable working efifb support, let's map the frame buffer as 32bpp instead of 16bpp. Signed-off-by: Alexander Graf <agraf@suse.de> --- drivers/video/bcm2835.c | 6 +++--- include/configs/rpi.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/video/bcm2835.c b/drivers/video/bcm2835.c index cd605e6..cc6454f 100644 --- a/drivers/video/bcm2835.c +++ b/drivers/video/bcm2835.c @@ -71,9 +71,9 @@ void lcd_ctrl_init(void *lcdbase) msg_setup->virtual_w_h.body.req.width = w; msg_setup->virtual_w_h.body.req.height = h; BCM2835_MBOX_INIT_TAG(&msg_setup->depth, SET_DEPTH); - msg_setup->depth.body.req.bpp = 16; + msg_setup->depth.body.req.bpp = 32; BCM2835_MBOX_INIT_TAG(&msg_setup->pixel_order, SET_PIXEL_ORDER); - msg_setup->pixel_order.body.req.order = BCM2835_MBOX_PIXEL_ORDER_BGR; + msg_setup->pixel_order.body.req.order = BCM2835_MBOX_PIXEL_ORDER_RGB; BCM2835_MBOX_INIT_TAG(&msg_setup->alpha_mode, SET_ALPHA_MODE); msg_setup->alpha_mode.body.req.alpha = BCM2835_MBOX_ALPHA_MODE_IGNORED; BCM2835_MBOX_INIT_TAG(&msg_setup->virtual_offset, SET_VIRTUAL_OFFSET); @@ -103,7 +103,7 @@ void lcd_ctrl_init(void *lcdbase) panel_info.vl_col = w; panel_info.vl_row = h; - panel_info.vl_bpix = LCD_COLOR16; + panel_info.vl_bpix = LCD_COLOR32; gd->fb_base = bus_to_phys( msg_setup->allocate_buffer.body.resp.fb_address); diff --git a/include/configs/rpi.h b/include/configs/rpi.h index 8d4ad5d..2bda9a7 100644 --- a/include/configs/rpi.h +++ b/include/configs/rpi.h @@ -73,7 +73,7 @@ /* LCD */ #define CONFIG_LCD #define CONFIG_LCD_DT_SIMPLEFB -#define LCD_BPP LCD_COLOR16 +#define LCD_BPP LCD_COLOR32 /* * Prevent allocation of RAM for FB; the real FB address is queried * dynamically from the VideoCore co-processor, and comes from RAM
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor