[ALPS04298152] DISP: disable map framebuffer to mm heap

[Detail]
if lk no display, there is no reservered framebuffer memory for
FrameBufferSurface, then we need to disable map framebuffer to
mm heap, or FrameBufferSurface will be black screen.

[Solution]
disable map framebuffer to mm heap.

Bug: 123949660
Test: build pass/boot ok

Change-Id: Ibb1bf3daf3d89ca9751438ec9f945e354f2e1621
Feature: [Module]Display Driver
Signed-off-by: xiaodan zhang <xiaodan.zhang@mediatek.com>
CR-Id: ALPS04298152
(cherry picked from commit 0c1c47e76716c11152ff5e9b3f679797139bae67)
diff --git a/drivers/misc/mediatek/video/mt8167/videox/mtkfb.c b/drivers/misc/mediatek/video/mt8167/videox/mtkfb.c
index 363d921..5966496 100644
--- a/drivers/misc/mediatek/video/mt8167/videox/mtkfb.c
+++ b/drivers/misc/mediatek/video/mt8167/videox/mtkfb.c
@@ -2446,11 +2446,13 @@
 	if (disp_helper_get_stage() != DISP_HELPER_STAGE_NORMAL)
 		primary_display_diagnose();
 
-	/* this function will get fb_heap base address to ion for management frame buffer */
+#ifndef MTK_ONLY_KERNEL_DISP
+	/* this function will get fb_heap base address to ion for management frame buffer*/
 	DISPPRINT("ion map framebuffer base=0x%p, fb total size=%d DAL size=%d\n",
 		(void *)mtkfb_get_fb_base(),
 		(unsigned int)mtkfb_get_fb_size(), (unsigned int)DAL_GetLayerSize());
 	ion_drv_create_FB_heap(mtkfb_get_fb_base(), mtkfb_get_fb_size() - DAL_GetLayerSize());
+#endif
 
 	fbdev->state = MTKFB_ACTIVE;