Skip to content

Commit 69e75c6

Browse files
committed
video: increase VRAM size
1 parent 43e51f7 commit 69e75c6

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

drivers/video/fbdev/gc9306fb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ static int myfb_probe(struct platform_device *device)
613613
par->bpp = 16;
614614
fb_videomode_to_var(&myfb_var, mode);
615615

616-
par->vram_size = 320 * 240 * 2 * 2;
616+
par->vram_size = 640 * 480 * 2 * 2;
617617
par->vram_virt = dma_alloc_coherent(par->dev, par->vram_size, (resource_size_t*)&par->vram_phys, GFP_KERNEL | GFP_DMA);
618618
if(!par->vram_virt){
619619
return -EINVAL;

drivers/video/fbdev/hx8347dfb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ static int myfb_probe(struct platform_device *device)
748748
par->bpp = 16;
749749
fb_videomode_to_var(&myfb_var, mode);
750750

751-
par->vram_size = 320*240*2*2;
751+
par->vram_size = 640*480*2*2;
752752
par->vram_virt = dma_alloc_coherent(par->dev, par->vram_size, (resource_size_t*)&par->vram_phys, GFP_KERNEL | GFP_DMA);
753753
if(!par->vram_virt){
754754
dev_err(&device->dev, "%s, failed to allocate frame buffer(vram)\n", __func__);

drivers/video/fbdev/r61520fb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ static int myfb_probe(struct platform_device *device)
15661566
par->bpp = 16;
15671567
fb_videomode_to_var(&myfb_var, mode);
15681568

1569-
par->vram_size = 320*240*2*2;
1569+
par->vram_size = 640*480*2*2;
15701570
par->vram_virt = dma_alloc_coherent(par->dev, par->vram_size, (resource_size_t*)&par->vram_phys, GFP_KERNEL | GFP_DMA);
15711571
if(!par->vram_virt){
15721572
dev_err(&device->dev, "%s, failed to allocate frame buffer(vram)\n", __func__);

drivers/video/fbdev/rm68090fb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ static int myfb_probe(struct platform_device *device)
684684
par->bpp = 16;
685685
fb_videomode_to_var(&myfb_var, mode);
686686

687-
par->vram_size = 320*240*2*2;
687+
par->vram_size = 640*480*2*2;
688688
par->vram_virt = dma_alloc_coherent(par->dev, par->vram_size, (resource_size_t*)&par->vram_phys, GFP_KERNEL | GFP_DMA);
689689
if(!par->vram_virt){
690690
dev_err(&device->dev, "%s, failed to allocate frame buffer(vram)\n", __func__);

drivers/video/fbdev/st7789sTEfb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ static int myfb_probe(struct platform_device *device)
687687
par->bpp = 16;
688688
fb_videomode_to_var(&myfb_var, mode);
689689

690-
par->vram_size = (320 * 240 * 2 * 4) + 4096;
690+
par->vram_size = (640 * 480 * 2 * 4);
691691
par->vram_virt = dma_alloc_coherent(par->dev, par->vram_size, (resource_size_t *)&par->vram_phys, GFP_KERNEL | GFP_DMA);
692692
if(!par->vram_virt) {
693693
return -EINVAL;

drivers/video/fbdev/st7789sfb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ static int myfb_probe(struct platform_device *device)
806806
par->bpp = 16;
807807
fb_videomode_to_var(&myfb_var, mode);
808808

809-
par->vram_size = (320 * 240 * 2 * 4) + 4096;
809+
par->vram_size = (640 * 480 * 2 * 4);
810810
par->vram_virt = dma_alloc_coherent(par->dev, par->vram_size, (resource_size_t*)&par->vram_phys, GFP_KERNEL | GFP_DMA);
811811
if (!par->vram_virt) {
812812
return -EINVAL;

0 commit comments

Comments
 (0)