mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
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:
parent
fda0f9d3f6
commit
f741ee5cab
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user