mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
drm/rockchip: support using reserved memory region for cma
Change-Id: I829162c21748052525b0583185db67015f24141d Signed-off-by: Mark Yao <mark.yao@rock-chips.com> Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include <linux/component.h>
|
||||
#include <linux/console.h>
|
||||
#include <linux/iommu.h>
|
||||
#include <linux/of_reserved_mem.h>
|
||||
|
||||
#include <drm/drm_debugfs.h>
|
||||
#include <drm/drm_drv.h>
|
||||
@@ -631,6 +632,9 @@ static int rockchip_drm_bind(struct device *dev)
|
||||
drm_kms_helper_poll_init(drm_dev);
|
||||
|
||||
rockchip_gem_pool_init(drm_dev);
|
||||
ret = of_reserved_mem_device_init(drm_dev->dev);
|
||||
if (ret)
|
||||
DRM_DEBUG_KMS("No reserved memory region assign to drm\n");
|
||||
|
||||
ret = drm_dev_register(drm_dev, 0);
|
||||
if (ret)
|
||||
|
||||
Reference in New Issue
Block a user