mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
drm/ast: Remove unused code paths for AST 1180
The ast driver contains code paths for AST 1180 chips. The chip is not supported and the rsp code has never been tested. Simplify the driver by removing the AST 1180 code. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200617080340.29584-2-tzimmermann@suse.de
This commit is contained in:
parent
b3bfcdf8a3
commit
05f13f5b59
5 changed files with 43 additions and 69 deletions
|
@ -768,9 +768,6 @@ static void ast_crtc_dpms(struct drm_crtc *crtc, int mode)
|
|||
{
|
||||
struct ast_private *ast = crtc->dev->dev_private;
|
||||
|
||||
if (ast->chip == AST1180)
|
||||
return;
|
||||
|
||||
/* TODO: Maybe control display signal generation with
|
||||
* Sync Enable (bit CR17.7).
|
||||
*/
|
||||
|
@ -797,11 +794,6 @@ static int ast_crtc_helper_atomic_check(struct drm_crtc *crtc,
|
|||
const struct drm_format_info *format;
|
||||
bool succ;
|
||||
|
||||
if (ast->chip == AST1180) {
|
||||
DRM_ERROR("AST 1180 modesetting not supported\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (!state->enable)
|
||||
return 0; /* no mode checks if CRTC is being disabled */
|
||||
|
||||
|
@ -1043,7 +1035,7 @@ static enum drm_mode_status ast_mode_valid(struct drm_connector *connector,
|
|||
|
||||
if ((ast->chip == AST2100) || (ast->chip == AST2200) ||
|
||||
(ast->chip == AST2300) || (ast->chip == AST2400) ||
|
||||
(ast->chip == AST2500) || (ast->chip == AST1180)) {
|
||||
(ast->chip == AST2500)) {
|
||||
if ((mode->hdisplay == 1920) && (mode->vdisplay == 1080))
|
||||
return MODE_OK;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue