
Apple M1 machines come up with a framebuffer that in 30bpp mode. This series adds basic support for this mode.
What I call 30bpp mode here is really a 32bpp mode with pixels where each color channel is 10 bits deep. To distinguish this mode from the "regular" 32bpp mode (where each channel is 8 bits deep) we need to keep track of the pixel format. In order to avoid having to update each and every video driver, I've introduced an "unknown" format that is the default, where the code continues to infer the pixel format from the bpp value.
Changelog:
v2: - Encode pixel format in favour of adding VIDEO_30BPP - Recognize more format strings in simplefb driver - Fix EFI block image transfer for 30bpp mode
Mark Kettenis (4): video: Add 30bpp support efi_loader: GOP: Add 30bpp support video: simplefb: Add 30bpp support efi_loader: GOP: Fix 30bpp block transfer support
drivers/video/simplefb.c | 12 +++++- drivers/video/vidconsole-uclass.c | 11 ++++-- include/video.h | 9 +++++ lib/efi_loader/efi_gop.c | 61 +++++++++++++++++++++++++++++-- 4 files changed, 86 insertions(+), 7 deletions(-)