]> git.dujemihanovic.xyz Git - u-boot.git/commit
bcm2835: Dynamically calculate bytes per pixel parameter
authorIvan T. Ivanov <iivanov@suse.de>
Tue, 23 Jan 2024 08:07:56 +0000 (10:07 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Tue, 30 Jan 2024 16:39:51 +0000 (17:39 +0100)
commitcce167eb8df0982b26c6e597065b87cb6fad677f
tree46f37b501923db130d89ba91b0d518db908c784b
parent08a5b4bd6cc14ad999a2d9a389f8b8b9dcea1682
bcm2835: Dynamically calculate bytes per pixel parameter

brcm,bcm2708-fb device provided by firmware on RPi5 uses
16 bits per pixel, so lets calculate framebuffer bytes
per pixel dynamically based on queried information.

Tested to work for RPi2b v1.2, RPi3b v1.3, RPi4b v1.1,
RPi2 Zero W, RPi5b v1.0.

Reviewed-by: Matthias Brugger <mbrugger@suse.com>
Tested-by: Jens Maus <mail@jens-maus.de>
Tested-by: Darko Alavanja <darko.alavanja@konsulko.com>
Signed-off-by: Ivan T. Ivanov <iivanov@suse.de>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
drivers/video/bcm2835.c