mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
video: stm32: stm32_ltdc: align framebuffer on 2MB
Align the framebuffer size on MMU_SECTION_SIZE in kernel, = max 2MB for LPAE for armV7, to avoid issue with the simple frame buffer activation, when U-Boot add a reserved memory in the kernel device tree to preserve the splash screen until Linux driver initialization. See Linux documentation for details: Documentation/devicetree/bindings/display/simple-framebuffer.yaml Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
This commit is contained in:
parent
77debf61ef
commit
6cdeb323b8
1 changed files with 4 additions and 1 deletions
|
@ -459,7 +459,10 @@ static int stm32_ltdc_bind(struct udevice *dev)
|
|||
uc_plat->size = CONFIG_VIDEO_STM32_MAX_XRES *
|
||||
CONFIG_VIDEO_STM32_MAX_YRES *
|
||||
(CONFIG_VIDEO_STM32_MAX_BPP >> 3);
|
||||
dev_dbg(dev, "frame buffer max size %d bytes\n", uc_plat->size);
|
||||
/* align framebuffer on kernel MMU_SECTION_SIZE = max 2MB for LPAE */
|
||||
uc_plat->align = SZ_2M;
|
||||
dev_dbg(dev, "frame buffer max size %d bytes align %x\n",
|
||||
uc_plat->size, uc_plat->align);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue