]> Git Repo - u-boot.git/commitdiff
video: kconfig: Set default FB size for Bochs
authorBin Meng <[email protected]>
Sun, 23 Jul 2023 04:40:31 +0000 (12:40 +0800)
committerAnatolij Gustschin <[email protected]>
Tue, 1 Aug 2023 11:34:51 +0000 (13:34 +0200)
Set up a default frame buffer size of 8MiB for Bochs for non-x86
architecturs as PCI is normally not enumerated before relocation
on these architectures.

Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
drivers/video/Kconfig

index 3f6b7d71b8e9b601b9165be9e2a48738dab22c23..e32ce13fb6b984af1999cc81dc6ceae02fe22e55 100644 (file)
@@ -65,7 +65,8 @@ config BACKLIGHT
 config VIDEO_PCI_DEFAULT_FB_SIZE
        hex "Default framebuffer size to use if no drivers request it"
        default 0x1000000 if X86
-       default 0 if !X86
+       default 0x800000 if !X86 && VIDEO_BOCHS
+       default 0 if !X86 && !VIDEO_BOCHS
        help
          Generally, video drivers request the amount of memory they need for
          the frame buffer when they are bound, by setting the size field in
@@ -1037,7 +1038,8 @@ config SPL_SYS_WHITE_ON_BLACK
 config SPL_VIDEO_PCI_DEFAULT_FB_SIZE
        hex "Default framebuffer size to use if no drivers request it at SPL"
        default 0x1000000 if X86
-       default 0 if !X86
+       default 0x800000 if !X86 && VIDEO_BOCHS
+       default 0 if !X86 && !VIDEO_BOCHS
        help
          Generally, video drivers request the amount of memory they need for
          the frame buffer when they are bound, by setting the size field in
This page took 0.032307 seconds and 4 git commands to generate.