From: KuoHsiang Chou <kuohsiang_chou@aspeedtech.com> To: <tzimmermann@suse.de>, <dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org> Cc: <airlied@redhat.com>, <airlied@linux.ie>, <daniel@ffwll.ch>, <kuohsiang_chou@aspeedtech.com>, <arc_sung@aspeedtech.com>, <tommy_huang@aspeedtech.com>, <hungju_huang@aspeedtech.com>, <luke_chen@aspeedtech.com> Subject: [PATCH] drm/ast: Create threshold values for AST2600 Date: Mon, 17 Jan 2022 16:36:43 +0800 [thread overview] Message-ID: <20220117083643.41493-1-kuohsiang_chou@aspeedtech.com> (raw) The threshold value is used for AST2600 only. Signed-off-by: KuoHsiang Chou <kuohsiang_chou@aspeedtech.com> --- drivers/gpu/drm/ast/ast_mode.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index 1c7a57a03..7f2e248a6 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c @@ -471,7 +471,10 @@ static void ast_set_color_reg(struct ast_private *ast, static void ast_set_crtthd_reg(struct ast_private *ast) { /* Set Threshold */ - if (ast->chip == AST2300 || ast->chip == AST2400 || + if (ast->chip == AST2600) { + ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa7, 0xe0); + ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa6, 0xa0); + } else if (ast->chip == AST2300 || ast->chip == AST2400 || ast->chip == AST2500) { ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa7, 0x78); ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa6, 0x60); -- 2.27.0
WARNING: multiple messages have this Message-ID (diff)
From: KuoHsiang Chou <kuohsiang_chou@aspeedtech.com> To: <tzimmermann@suse.de>, <dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org> Cc: hungju_huang@aspeedtech.com, airlied@linux.ie, tommy_huang@aspeedtech.com, airlied@redhat.com, arc_sung@aspeedtech.com, luke_chen@aspeedtech.com Subject: [PATCH] drm/ast: Create threshold values for AST2600 Date: Mon, 17 Jan 2022 16:36:43 +0800 [thread overview] Message-ID: <20220117083643.41493-1-kuohsiang_chou@aspeedtech.com> (raw) The threshold value is used for AST2600 only. Signed-off-by: KuoHsiang Chou <kuohsiang_chou@aspeedtech.com> --- drivers/gpu/drm/ast/ast_mode.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index 1c7a57a03..7f2e248a6 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c @@ -471,7 +471,10 @@ static void ast_set_color_reg(struct ast_private *ast, static void ast_set_crtthd_reg(struct ast_private *ast) { /* Set Threshold */ - if (ast->chip == AST2300 || ast->chip == AST2400 || + if (ast->chip == AST2600) { + ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa7, 0xe0); + ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa6, 0xa0); + } else if (ast->chip == AST2300 || ast->chip == AST2400 || ast->chip == AST2500) { ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa7, 0x78); ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa6, 0x60); -- 2.27.0
next reply other threads:[~2022-01-17 8:37 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-01-17 8:36 KuoHsiang Chou [this message] 2022-01-17 8:36 ` [PATCH] drm/ast: Create threshold values for AST2600 KuoHsiang Chou 2022-01-19 15:54 ` Thomas Zimmermann
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220117083643.41493-1-kuohsiang_chou@aspeedtech.com \ --to=kuohsiang_chou@aspeedtech.com \ --cc=airlied@linux.ie \ --cc=airlied@redhat.com \ --cc=arc_sung@aspeedtech.com \ --cc=daniel@ffwll.ch \ --cc=dri-devel@lists.freedesktop.org \ --cc=hungju_huang@aspeedtech.com \ --cc=linux-kernel@vger.kernel.org \ --cc=luke_chen@aspeedtech.com \ --cc=tommy_huang@aspeedtech.com \ --cc=tzimmermann@suse.de \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.