rkfb:add three buffer support for menuconfig,redefine FBIOPUT_NUM_BUFFERS 0x4625
authoryxj <yxj@rock-chips.com>
Sat, 14 Jul 2012 10:56:34 +0000 (18:56 +0800)
committeryxj <yxj@rock-chips.com>
Sat, 14 Jul 2012 10:56:34 +0000 (18:56 +0800)
arch/arm/mach-rk30/board-rk30-sdk.c
drivers/video/rockchip/Kconfig
include/linux/fb.h

index 31911f44708a18e61315bde6bc769a5a9892137e..134035e44943107dbce12510ec040c1358b12bc0 100755 (executable)
 #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  ------------------------*/
index 79cbc113595ced4d7583d305f3006c7370bb4eee..06cd988688dc9a0654ae99fcd690693bfa48e21e 100644 (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"
index 97e479bdc8c59c0bcfafe9b7288ee622002c8f5e..34fcd09307e02ace4d8f3e9066c89be8dff1ce66 100755 (executable)
@@ -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)