board rk2928 tb:use get_fb_size instead of macro RK30_FB0_MEM_SIZE
authoryxj <yxj@rock-chips.com>
Wed, 23 Jan 2013 04:11:10 +0000 (12:11 +0800)
committeryxj <yxj@rock-chips.com>
Wed, 23 Jan 2013 04:11:10 +0000 (12:11 +0800)
arch/arm/mach-rk2928/board-rk2928-tb.c

index 69c781e9826a951f51c0f04e017fe20419c0c483..9c0dcdb20ab54cd7ec5825856d4f38c15c8ca93e 100755 (executable)
 
 //#define RK2928L_TB_OLD
 
-#ifdef  CONFIG_THREE_FB_BUFFER
-#define RK30_FB0_MEM_SIZE 12*SZ_1M
-#else
-#define RK30_FB0_MEM_SIZE 8*SZ_1M
-#endif
 
 int __sramdata g_pmic_type =  0;
 
@@ -1063,8 +1058,8 @@ static void __init rk2928_reserve(void)
        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;
+       resource_fb[0].start = board_mem_reserve_add("fb0", get_fb_size());
+       resource_fb[0].end = resource_fb[0].start + get_fb_size()- 1;
 #endif
 #ifdef CONFIG_VIDEO_RK29
        rk30_camera_request_reserve_mem();