|
@@ -40,6 +40,7 @@
|
|
|
#include <drm/drmP.h>
|
|
|
#include <drm/drm_crtc.h>
|
|
|
#include <drm/drm_fb_helper.h>
|
|
|
+#include <drm/drm_crtc_helper.h>
|
|
|
#include "ast_drv.h"
|
|
|
|
|
|
static void ast_dirty_update(struct ast_fbdev *afbdev,
|
|
@@ -314,6 +315,10 @@ int ast_fbdev_init(struct drm_device *dev)
|
|
|
}
|
|
|
|
|
|
drm_fb_helper_single_add_all_connectors(&afbdev->helper);
|
|
|
+
|
|
|
+ /* disable all the possible outputs/crtcs before entering KMS mode */
|
|
|
+ drm_helper_disable_unused_functions(dev);
|
|
|
+
|
|
|
drm_fb_helper_initial_config(&afbdev->helper, 32);
|
|
|
return 0;
|
|
|
}
|