From: Alexander Graf <agraf@suse.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 4/5] bcm2835 video: Map frame buffer as 32bpp
Date: Tue, 7 Jun 2016 00:57:06 +0200 [thread overview]
Message-ID: <1465253827-126767-5-git-send-email-agraf@suse.de> (raw)
In-Reply-To: <1465253827-126767-1-git-send-email-agraf@suse.de>
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 9ef5eae..dc8d22a 100644
--- a/include/configs/rpi.h
+++ b/include/configs/rpi.h
@@ -78,7 +78,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
--
1.8.5.6
next prev parent reply other threads:[~2016-06-06 22:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-06 22:57 [U-Boot] [PATCH v2 0/5] Raspberry Pi EFI enablement Alexander Graf
2016-06-06 22:57 ` [U-Boot] [PATCH v2 1/5] efi_loader: Allow boards to implement get_time and reset_system Alexander Graf
2016-06-06 22:57 ` [U-Boot] [PATCH v2 2/5] ARM: bcm283x: Implement EFI RTS reset_system Alexander Graf
2016-11-14 9:23 ` [U-Boot] [U-Boot, v2, " Alexander Graf
2016-06-06 22:57 ` [U-Boot] [PATCH v2 3/5] efi_loader: gop: Expose fb when 32bpp Alexander Graf
2016-10-13 14:34 ` [U-Boot] [U-Boot,v2,3/5] " Alexander Graf
2016-06-06 22:57 ` Alexander Graf [this message]
2016-11-14 9:23 ` [U-Boot] [U-Boot, v2, 4/5] bcm2835 video: Map frame buffer as 32bpp Alexander Graf
2016-11-14 9:25 ` Alexander Graf
2016-06-06 22:57 ` [U-Boot] [PATCH v2 5/5] bcm2835: Reserve the spin table in efi memory map Alexander Graf
2016-11-14 9:23 ` [U-Boot] [U-Boot, v2, " Alexander Graf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1465253827-126767-5-git-send-email-agraf@suse.de \
--to=agraf@suse.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox