From patchwork Sun Jan 24 15:35:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xuezhi Zhang X-Patchwork-Id: 370034 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B751C433DB for ; Sun, 24 Jan 2021 15:36:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 11B3322EBF for ; Sun, 24 Jan 2021 15:36:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725910AbhAXPgR (ORCPT ); Sun, 24 Jan 2021 10:36:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726298AbhAXPgQ (ORCPT ); Sun, 24 Jan 2021 10:36:16 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16D30C061574; Sun, 24 Jan 2021 07:35:36 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id md11so6798202pjb.0; Sun, 24 Jan 2021 07:35:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=wv+3wuXFvnGp7NmO31SkD++8+i2WVpAeSIWwaa8edxU=; b=SMOJRc0c6WRk3ZJrJ66nWjiPsXSD9PV4u+1Rmpv7349czhtW8hbt+2dgR2Yn2oIzao jW3DYBwtmEUqVZPPgtvNJrBMJe1aqdWQGJmQbgyBxOfrNZUYHsYzpyG9aJ1i/vaX2k4W CeLXSjk+RC/sZoTkPn4eqc03RSPQ5Uz262Ep34QFRGxkbUKpM83o4/KCFzqtCR51lU6w UapT1b93J/w3ICvdW/yKwNfIOV5tNlNgyaW49pXcw/aSyJk29ljg8oQRhti2yYyrX2Pw vsoOF/L0PG2SIMkpJye/uyfpf1fToW100DnzhJlxoOut8NTF94QqpVNxSaKMMxs3WO1U 9mBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wv+3wuXFvnGp7NmO31SkD++8+i2WVpAeSIWwaa8edxU=; b=tFh7H0k3JgzS5f0JYwdWz2gqK+X2UNSy1Ro3mFqISkzBA46D/nIcMe4fF7oAXL+5/T hwN4db80HZ+3xj4MjO03CpoI+ONBxECv7BQbiI1Kk2TatX+KFdkDRYoXSSIckpJv6Irb gVCvBcN+2hAdhZ6t7BBupmexjY83l0Cg6nf2ShTHAlmXZmwIgSO0ulZAOyBoX50jX07y rWorS3hjj4+igP4Unr27Q3EcGoJVL53Hu5ulOElUO98cg1QVlq8IuOR7udK4RqCfjjjG mOwrJj1D1XCEOkWt5V5Dme06XkXIGx2stS1m3FG6TsOhrQiLgx4ER0FEYjUhJZIpO+z7 dDBw== X-Gm-Message-State: AOAM533v8+Z1SgcZbJHxJMtrTW79an1L6YVe4QOhq0Rd/BbdIF1dlTgu 9lq5h1pti+VbpRK2c2XNZrs= X-Google-Smtp-Source: ABdhPJxRx4HP7keBURkUrSGMrzZ2UCbHXcHxem8AFiuST4Ceq7bDlYUghFe2XHdQYmuQELx0csAVGQ== X-Received: by 2002:a17:90a:6f05:: with SMTP id d5mr3144093pjk.145.1611502535677; Sun, 24 Jan 2021 07:35:35 -0800 (PST) Received: from bf-rmsz-10.ccdomain.com ([103.220.76.197]) by smtp.gmail.com with ESMTPSA id f15sm15491410pja.24.2021.01.24.07.35.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Jan 2021 07:35:34 -0800 (PST) From: Carlis To: gregkh@linuxfoundation.org Cc: colin.king@canonical.com, oliver.graute@kococonnector.com, zhangxuezhi1@yulong.com, mh12gx2825@gmail.com, sbrivio@redhat.com, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] fbtft: add tearing signal detect Date: Sun, 24 Jan 2021 23:35:37 +0800 Message-Id: <1611502537-80668-1-git-send-email-zhangxuezhi3@gmail.com> X-Mailer: git-send-email 1.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org From: "carlis.zhang_cp" For st7789v ic,add tearing signal detect to avoid screen tearing Signed-off-by: carlis.zhang_cp --- drivers/staging/fbtft/fb_st7789v.c | 133 ++++++++++++++++++++++++++++++++++++- drivers/staging/fbtft/fbtft.h | 1 + 2 files changed, 133 insertions(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fb_st7789v.c b/drivers/staging/fbtft/fb_st7789v.c index 3a280cc..c687b58 100644 --- a/drivers/staging/fbtft/fb_st7789v.c +++ b/drivers/staging/fbtft/fb_st7789v.c @@ -9,9 +9,12 @@ #include #include #include +#include +#include +#include #include #include