Commit d6db988a authored by CK Hu's avatar CK Hu

drm/mediatek: Add Mediatek framebuffer device

For Mediatek drm driver, use fbdev emulation to create a framebuffer
device.
Signed-off-by: default avatarCK Hu <ck.hu@mediatek.com>
parent 3df64d7b
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <drm/drmP.h> #include <drm/drmP.h>
#include <drm/drm_atomic.h> #include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h> #include <drm/drm_atomic_helper.h>
#include <drm/drm_fb_helper.h>
#include <drm/drm_gem.h> #include <drm/drm_gem.h>
#include <drm/drm_gem_cma_helper.h> #include <drm/drm_gem_cma_helper.h>
#include <drm/drm_of.h> #include <drm/drm_of.h>
...@@ -378,6 +379,10 @@ static int mtk_drm_bind(struct device *dev) ...@@ -378,6 +379,10 @@ static int mtk_drm_bind(struct device *dev)
if (ret < 0) if (ret < 0)
goto err_deinit; goto err_deinit;
ret = drm_fbdev_generic_setup(drm, 32);
if (ret)
DRM_ERROR("Failed to initialize fbdev: %d\n", ret);
return 0; return 0;
err_deinit: err_deinit:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment