drm/rockchip: support using reserved memory region for cma

Change-Id: I829162c21748052525b0583185db67015f24141d
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
Mark Yao
2017-11-23 14:22:33 +08:00
committed by Tao Huang
parent fda0f9d3f6
commit f741ee5cab

View File

@@ -34,6 +34,7 @@
#include <linux/fence.h>
#include <linux/console.h>
#include <linux/iommu.h>
#include <linux/of_reserved_mem.h>
#include <drm/rockchip_drm.h>
@@ -1324,6 +1325,9 @@ static int rockchip_drm_bind(struct device *dev)
#ifndef MODULE
show_loader_logo(drm_dev);
#endif
ret = of_reserved_mem_device_init(drm_dev->dev);
if (ret)
DRM_DEBUG_KMS("No reserved memory region assign to drm\n");
ret = rockchip_drm_fbdev_init(drm_dev);
if (ret)