Skip to content
Snippets Groups Projects
Commit e57baf5d authored by Marek Vasut's avatar Marek Vasut Committed by Anatolij Gustschin
Browse files

video: Allocate the MXSFB framebuffer aligned


Allocate the framebuffer aligned so it can be flushed
and the flush_dcache_range() function won't complain.

Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Stefano Babic <sbabic@denx.de>
Acked-by: default avatarStefano Babic <sbabic@denx.de>
parent 69f7345c
No related branches found
No related tags found
No related merge requests found
...@@ -161,7 +161,8 @@ void *video_hw_init(void) ...@@ -161,7 +161,8 @@ void *video_hw_init(void)
panel.memSize = mode.xres * mode.yres * panel.gdfBytesPP; panel.memSize = mode.xres * mode.yres * panel.gdfBytesPP;
/* Allocate framebuffer */ /* Allocate framebuffer */
fb = malloc(panel.memSize); fb = memalign(ARCH_DMA_MINALIGN,
roundup(panel.memSize, ARCH_DMA_MINALIGN));
if (!fb) { if (!fb) {
printf("MXSFB: Error allocating framebuffer!\n"); printf("MXSFB: Error allocating framebuffer!\n");
return NULL; return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment