From 20b7fef0758b4500e55d29b12e9b676fc26375c7 Mon Sep 17 00:00:00 2001 From: yxj Date: Wed, 23 Jan 2013 22:37:31 +0800 Subject: [PATCH] board rk3066b m701:use get_fb_size instead of RK30_FB0_MEM_SIZE --- arch/arm/mach-rk30/board-rk3066b-m701.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/arch/arm/mach-rk30/board-rk3066b-m701.c b/arch/arm/mach-rk30/board-rk3066b-m701.c index 7bd1d1d4ae62..6ebe4d067afa 100755 --- a/arch/arm/mach-rk30/board-rk3066b-m701.c +++ b/arch/arm/mach-rk30/board-rk3066b-m701.c @@ -74,12 +74,6 @@ #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-rk3066b-m701-camera.c" #include @@ -1954,14 +1948,8 @@ static void __init rk30_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; - #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 + 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(); -- 2.34.1