#if defined(CONFIG_DP501) //for display port transmitter dp501
#include<linux/dp501.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
#include "board-rk30-sdk-camera.c"
rk30_ion_pdata.heaps[0].base = board_mem_reserve_add("ion", ION_RESERVE_SIZE);
#endif
#ifdef CONFIG_FB_ROCKCHIP
- resource_fb[0].start = board_mem_reserve_add("fb0 buf", RK30_FB0_MEM_SIZE);
- resource_fb[0].end = resource_fb[0].start + RK30_FB0_MEM_SIZE - 1;
+ resource_fb[0].start = board_mem_reserve_add("fb0 buf", get_fb_size());
+ resource_fb[0].end = resource_fb[0].start + get_fb_size()- 1;
#if 0
resource_fb[1].start = board_mem_reserve_add("ipp buf", RK30_FB0_MEM_SIZE);
resource_fb[1].end = resource_fb[1].start + RK30_FB0_MEM_SIZE - 1;
#endif
#if defined(CONFIG_FB_ROTATE) || !defined(CONFIG_THREE_FB_BUFFER)
- resource_fb[2].start = board_mem_reserve_add("fb2 buf", RK30_FB0_MEM_SIZE);
- resource_fb[2].end = resource_fb[2].start + RK30_FB0_MEM_SIZE - 1;
+ resource_fb[2].start = board_mem_reserve_add("fb2 buf",get_fb_size());
+ resource_fb[2].end = resource_fb[2].start + get_fb_size() - 1;
#endif
#endif
#ifdef CONFIG_VIDEO_RK29
#include "../../../drivers/staging/android/timed_gpio.h"
#endif
-#ifdef CONFIG_THREE_FB_BUFFER
-#define RK30_FB0_MEM_SIZE 36*SZ_1M
-#else
-#define RK30_FB0_MEM_SIZE 24*SZ_1M
-#endif
#include "board-rk3168-LR097-camera.c"
rk30_ion_pdata.heaps[0].base = board_mem_reserve_add("ion", ION_RESERVE_SIZE);
#endif
#ifdef CONFIG_FB_ROCKCHIP
- resource_fb[0].start = board_mem_reserve_add("fb0", RK30_FB0_MEM_SIZE);
- resource_fb[0].end = resource_fb[0].start + RK30_FB0_MEM_SIZE - 1;
- #if 0
+ resource_fb[0].start = board_mem_reserve_add("fb0 buf", get_fb_size());
+ resource_fb[0].end = resource_fb[0].start + get_fb_size()- 1;
+#if 0
resource_fb[1].start = board_mem_reserve_add("ipp buf", RK30_FB0_MEM_SIZE);
resource_fb[1].end = resource_fb[1].start + RK30_FB0_MEM_SIZE - 1;
- resource_fb[2].start = board_mem_reserve_add("fb2", RK30_FB0_MEM_SIZE);
- resource_fb[2].end = resource_fb[2].start + RK30_FB0_MEM_SIZE - 1;
- #endif
#endif
+
+#if defined(CONFIG_FB_ROTATE) || !defined(CONFIG_THREE_FB_BUFFER)
+ resource_fb[2].start = board_mem_reserve_add("fb2 buf",get_fb_size());
+ resource_fb[2].end = resource_fb[2].start + get_fb_size() - 1;
+#endif
+#endif
+
#ifdef CONFIG_VIDEO_RK29
rk30_camera_request_reserve_mem();
#endif
#include <linux/gps.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
-
#include "board-rk3168-ds1006h-camera.c"
#include <plat/key.h>
#ifdef CONFIG_ION
rk30_ion_pdata.heaps[0].base = board_mem_reserve_add("ion", ION_RESERVE_SIZE);
#endif
+
#ifdef CONFIG_FB_ROCKCHIP
- resource_fb[0].start = board_mem_reserve_add("fb0", RK30_FB0_MEM_SIZE);
- resource_fb[0].end = resource_fb[0].start + RK30_FB0_MEM_SIZE - 1;
- #if 0
+ resource_fb[0].start = board_mem_reserve_add("fb0 buf", get_fb_size());
+ resource_fb[0].end = resource_fb[0].start + get_fb_size()- 1;
+#if 0
resource_fb[1].start = board_mem_reserve_add("ipp buf", RK30_FB0_MEM_SIZE);
resource_fb[1].end = resource_fb[1].start + RK30_FB0_MEM_SIZE - 1;
- resource_fb[2].start = board_mem_reserve_add("fb2", RK30_FB0_MEM_SIZE);
- resource_fb[2].end = resource_fb[2].start + RK30_FB0_MEM_SIZE - 1;
- #endif
#endif
+
+#if defined(CONFIG_FB_ROTATE) || !defined(CONFIG_THREE_FB_BUFFER)
+ resource_fb[2].start = board_mem_reserve_add("fb2 buf",get_fb_size());
+ resource_fb[2].end = resource_fb[2].start + get_fb_size() - 1;
+#endif
+#endif
+
+
#ifdef CONFIG_VIDEO_RK29
rk30_camera_request_reserve_mem();
#endif
#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
-
#include "board-rk3168-tb-camera.c"
#if defined(CONFIG_TOUCHSCREEN_GT8XX)
rk30_ion_pdata.heaps[0].base = board_mem_reserve_add("ion", ION_RESERVE_SIZE);
#endif
#ifdef CONFIG_FB_ROCKCHIP
- resource_fb[0].start = board_mem_reserve_add("fb0", RK30_FB0_MEM_SIZE);
- resource_fb[0].end = resource_fb[0].start + RK30_FB0_MEM_SIZE - 1;
- #if 0
+ resource_fb[0].start = board_mem_reserve_add("fb0 buf", get_fb_size());
+ resource_fb[0].end = resource_fb[0].start + get_fb_size()- 1;
+#if 0
resource_fb[1].start = board_mem_reserve_add("ipp buf", RK30_FB0_MEM_SIZE);
resource_fb[1].end = resource_fb[1].start + RK30_FB0_MEM_SIZE - 1;
- resource_fb[2].start = board_mem_reserve_add("fb2", RK30_FB0_MEM_SIZE);
- resource_fb[2].end = resource_fb[2].start + RK30_FB0_MEM_SIZE - 1;
- #endif
#endif
+
+#if defined(CONFIG_FB_ROTATE) || !defined(CONFIG_THREE_FB_BUFFER)
+ resource_fb[2].start = board_mem_reserve_add("fb2 buf",get_fb_size());
+ resource_fb[2].end = resource_fb[2].start + get_fb_size() - 1;
+#endif
+#endif
+
#ifdef CONFIG_VIDEO_RK29
rk30_camera_request_reserve_mem();
#endif