diff options
author | CK Hu <ck.hu@mediatek.com> | 2019-01-14 17:44:44 +0800 |
---|---|---|
committer | CK Hu <ck.hu@mediatek.com> | 2019-03-19 10:37:40 +0800 |
commit | d6db988a44294d7a91f60ecb87914694ba106305 (patch) | |
tree | bb3ed346215d54874bedabd17c07418c87700cf9 /drivers/gpu/drm | |
parent | 3df64d7b0a4f70f1797f23cfd4cca5c4d48131fe (diff) | |
download | linux-d6db988a44294d7a91f60ecb87914694ba106305.tar.gz linux-d6db988a44294d7a91f60ecb87914694ba106305.tar.bz2 linux-d6db988a44294d7a91f60ecb87914694ba106305.zip |
drm/mediatek: Add Mediatek framebuffer device
For Mediatek drm driver, use fbdev emulation to create a framebuffer
device.
Signed-off-by: CK Hu <ck.hu@mediatek.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/mediatek/mtk_drm_drv.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index 4c3375cfb68f..57ce4708ef1b 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -15,6 +15,7 @@ #include <drm/drmP.h> #include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_fb_helper.h> #include <drm/drm_gem.h> #include <drm/drm_gem_cma_helper.h> #include <drm/drm_of.h> @@ -378,6 +379,10 @@ static int mtk_drm_bind(struct device *dev) if (ret < 0) goto err_deinit; + ret = drm_fbdev_generic_setup(drm, 32); + if (ret) + DRM_ERROR("Failed to initialize fbdev: %d\n", ret); + return 0; err_deinit: |