From: yxj Date: Wed, 23 Jan 2013 04:11:10 +0000 (+0800) Subject: board rk2928 tb:use get_fb_size instead of macro RK30_FB0_MEM_SIZE X-Git-Tag: firefly_0821_release~7839 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3414163949d11ed71a62797ea66f0ee41f448f36;p=firefly-linux-kernel-4.4.55.git board rk2928 tb:use get_fb_size instead of macro RK30_FB0_MEM_SIZE --- diff --git a/arch/arm/mach-rk2928/board-rk2928-tb.c b/arch/arm/mach-rk2928/board-rk2928-tb.c index 69c781e9826a..9c0dcdb20ab5 100755 --- a/arch/arm/mach-rk2928/board-rk2928-tb.c +++ b/arch/arm/mach-rk2928/board-rk2928-tb.c @@ -59,11 +59,6 @@ //#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();