Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1583

RE: Frame Buffer on RZ A1H

$
0
0

> Frame Buffer size on Resesas RZ A1H kit is 32 bit. I'm trying to change the frame buffer size to 16 bit.

>

> cat  /sys/devices/platform/vdc5fb.0/graphics/fb0/bits_per_pixel  command   on    RZ A1H kit    returns    32.

In the Linux kernel for the RZ/A, you must modify the file:

   arch/arm/mach-shmobile/board-rskrza1.c

and change VDC5_0_BPP to 16.

/* BOARD: Define your [LCD0] frame buffer location and size. */

#if XIP_KERNEL_WITHOUT_EXTERNAL_RAM

 #define VDC5_0_BPP 16 /* 16bpp or 32bpp */

 #define VDC5_0_FBSIZE (800*480*VDC5_0_BPP/8)

 #define VDC5_0_FB_ADDR 0 /* allcoate at probe */

#else

 #define VDC5_0_BPP 32 /* 16bpp or 32bpp */

 #define VDC5_0_FBSIZE (800*480*VDC5_0_BPP/8)

 /* Assume we are using external SDRAM for system memory so we have all

    the internal memory just for our LCD frame buffer */

 /* Place at end of internal RAM, but on a PAGE boundry */

 //#define VDC5_0_FB_ADDR ((0x20A00000 - VDC5_0_FBSIZE) & PAGE_MASK)

 /* Fixed allocation */

 #define VDC5_0_FB_ADDR (0x60000000) /* PAGE 0 (2MB) */

#endif


Viewing all articles
Browse latest Browse all 1583

Trending Articles