File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
drivers/gpu/drm/hisilicon/hibmc Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 11
11
12
12
*/
13
13
14
+ #include <drm/drm_gem_vram_helper.h>
14
15
#include <drm/drm_atomic_helper.h>
15
16
#include <drm/drm_probe_helper.h>
17
+ #include <drm/drm_crtc_helper.h>
16
18
#include <drm/drm_print.h>
17
19
18
20
#include "hibmc_drm_drv.h"
19
21
#include "hibmc_drm_regs.h"
20
22
21
23
static int hibmc_connector_get_modes (struct drm_connector * connector )
22
24
{
23
- return drm_add_modes_noedid (connector , 800 , 600 );
25
+ int count ;
26
+
27
+ count = drm_add_modes_noedid (connector ,
28
+ connector -> dev -> mode_config .max_width ,
29
+ connector -> dev -> mode_config .max_height );
30
+ drm_set_preferred_mode (connector , 1024 , 768 );
31
+
32
+ return count ;
24
33
}
25
34
26
35
static enum drm_mode_status hibmc_connector_mode_valid (struct drm_connector * connector ,
You can’t perform that action at this time.
0 commit comments