|
@@ -10,6 +10,7 @@
|
|
* the License, or (at your option) any later version.
|
|
* the License, or (at your option) any later version.
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
+#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_fb_helper.h>
|
|
#include <drm/drm_fb_cma_helper.h>
|
|
#include <drm/drm_fb_cma_helper.h>
|
|
@@ -26,6 +27,10 @@ static const struct drm_mode_config_funcs sun4i_de_mode_config_funcs = {
|
|
.fb_create = drm_gem_fb_create,
|
|
.fb_create = drm_gem_fb_create,
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+static struct drm_mode_config_helper_funcs sun4i_de_mode_config_helpers = {
|
|
|
|
+ .atomic_commit_tail = drm_atomic_helper_commit_tail_rpm,
|
|
|
|
+};
|
|
|
|
+
|
|
int sun4i_framebuffer_init(struct drm_device *drm)
|
|
int sun4i_framebuffer_init(struct drm_device *drm)
|
|
{
|
|
{
|
|
drm_mode_config_reset(drm);
|
|
drm_mode_config_reset(drm);
|
|
@@ -34,6 +39,7 @@ int sun4i_framebuffer_init(struct drm_device *drm)
|
|
drm->mode_config.max_height = 8192;
|
|
drm->mode_config.max_height = 8192;
|
|
|
|
|
|
drm->mode_config.funcs = &sun4i_de_mode_config_funcs;
|
|
drm->mode_config.funcs = &sun4i_de_mode_config_funcs;
|
|
|
|
+ drm->mode_config.helper_private = &sun4i_de_mode_config_helpers;
|
|
|
|
|
|
return drm_fb_cma_fbdev_init(drm, 32, 0);
|
|
return drm_fb_cma_fbdev_init(drm, 32, 0);
|
|
}
|
|
}
|