|
@@ -501,8 +501,13 @@ static int cirrus_vga_get_modes(struct drm_connector *connector)
|
|
|
int count;
|
|
|
|
|
|
/* Just add a static list of modes */
|
|
|
- count = drm_add_modes_noedid(connector, 1280, 1024);
|
|
|
- drm_set_preferred_mode(connector, 1024, 768);
|
|
|
+ if (cirrus_bpp <= 24) {
|
|
|
+ count = drm_add_modes_noedid(connector, 1280, 1024);
|
|
|
+ drm_set_preferred_mode(connector, 1024, 768);
|
|
|
+ } else {
|
|
|
+ count = drm_add_modes_noedid(connector, 800, 600);
|
|
|
+ drm_set_preferred_mode(connector, 800, 600);
|
|
|
+ }
|
|
|
return count;
|
|
|
}
|
|
|
|