rkfb:add three buffer support for menuconfig,redefine FBIOPUT_NUM_BUFFERS 0x4625

This commit is contained in:
yxj
2012-07-14 18:56:34 +08:00
parent 1a88c4e7a5
commit b3ecdc5ac2
3 changed files with 12 additions and 1 deletions

View File

@@ -64,7 +64,11 @@
#include "../../../drivers/staging/android/timed_gpio.h"
#endif
#ifdef CONFIG_THREE_FB_BUFFER
#define RK30_FB0_MEM_SIZE 12*SZ_1M
#else
#define RK30_FB0_MEM_SIZE 8*SZ_1M
#endif
#ifdef CONFIG_VIDEO_RK29
/*---------------- Camera Sensor Macro Define Begin ------------------------*/

View File

@@ -40,5 +40,12 @@ config DUAL_DISP_IN_KERNEL
default y if HDMI_RK30
help
select y will implement dual screen display in kernel
config THREE_FB_BUFFER
bool "Three fb buffer support"
depends on FB_ROCKCHIP
default y
help
select y if android support three buffer,like Jelly Bean
source "drivers/video/rockchip/hdmi/Kconfig"
source "drivers/video/rockchip/rga/Kconfig"

View File

@@ -27,7 +27,7 @@
#define FBIOPUT_SET_CURSOR_CMAP 0x460c
#define FBIOPUT_GET_CURSOR_RESOLUTION 0x460d
#define FBIOPUT_GET_CURSOR_EN 0x460e
#define FBIOPUT_NUM_BUFFERS 0x460f
#define FBIOPUT_NUM_BUFFERS 0x4625
#ifdef __KERNEL__
#define FBIO_CURSOR _IOWR('F', 0x08, struct fb_cursor_user)