aboutsummaryrefslogtreecommitdiff
path: root/board/raspberrypi
diff options
context:
space:
mode:
authorMeng Li <Meng.Li@windriver.com>2023-07-26 10:42:35 +0800
committerAnatolij Gustschin <agust@denx.de>2023-08-13 23:57:46 +0200
commit04cc66c047d959dc1b22a625b7949a26793ac52b (patch)
tree21ba558146bbe58c06c96aee747d96f35cc9e987 /board/raspberrypi
parent28cd244e847c9a3becc954b5d911a7e67f34b14a (diff)
downloadu-boot-04cc66c047d959dc1b22a625b7949a26793ac52b.zip
u-boot-04cc66c047d959dc1b22a625b7949a26793ac52b.tar.gz
u-boot-04cc66c047d959dc1b22a625b7949a26793ac52b.tar.bz2
rpi: set the correct parameter for simple framebuffer node
When raspberrpi-4b platform boots up, there are 2 sets of same bootup log displayed on HDMI monitor screen, it looks like the screen is split into 2 parts. The root cause is that video format of u-boot is different from kernel. The fixing "a8r8g8b8" video format is used in u-boot, but "r5g6b5" video format from framebuffer node is used in kernel image. In order to avoid weird display status on screen, it needs to set the correct parameter for simple framebuffer node even if it has existed. Signed-off-by: Meng Li <Meng.Li@windriver.com>
Diffstat (limited to 'board/raspberrypi')
-rw-r--r--board/raspberrypi/rpi/rpi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index 1057ebb..38bcab1 100644
--- a/board/raspberrypi/rpi/rpi.c
+++ b/board/raspberrypi/rpi/rpi.c
@@ -561,6 +561,8 @@ int ft_board_setup(void *blob, struct bd_info *bd)
node = fdt_node_offset_by_compatible(blob, -1, "simple-framebuffer");
if (node < 0)
fdt_simplefb_add_node(blob);
+ else
+ fdt_simplefb_enable_and_mem_rsv(blob);
#ifdef CONFIG_EFI_LOADER
/* Reserve the spin table */