summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ast
diff options
context:
space:
mode:
authorKuoHsiang Chou <kuohsiang_chou@aspeedtech.com>2022-01-17 16:36:43 +0800
committerThomas Zimmermann <tzimmermann@suse.de>2022-01-19 16:13:49 +0100
commitbcc77411e8a65929655cef7b63a36000724cdc4b (patch)
tree18155c20a56a2f5106d7060b94775a7c9f89fcd3 /drivers/gpu/drm/ast
parent028a73e10705af1ffd51f2537460f616dc58680e (diff)
downloadlinux-bcc77411e8a65929655cef7b63a36000724cdc4b.tar.gz
linux-bcc77411e8a65929655cef7b63a36000724cdc4b.tar.bz2
linux-bcc77411e8a65929655cef7b63a36000724cdc4b.zip
drm/ast: Create threshold values for AST2600
The threshold value is used for AST2600 only. Signed-off-by: KuoHsiang Chou <kuohsiang_chou@aspeedtech.com> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/20220117083643.41493-1-kuohsiang_chou@aspeedtech.com
Diffstat (limited to 'drivers/gpu/drm/ast')
-rw-r--r--drivers/gpu/drm/ast/ast_mode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c
index 44c2aafcb7c2..6fa8042a0dfd 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);