From patchwork Sun Mar 22 22:44:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1259786 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=k7x8DaEm; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48lt1010c0z9sRR for ; Mon, 23 Mar 2020 09:46:43 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5F68B81851; Sun, 22 Mar 2020 23:45:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="k7x8DaEm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0D08281793; Sun, 22 Mar 2020 23:44:52 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from smtpcmd0877.aruba.it (smtpcmd0877.aruba.it [62.149.156.77]) by phobos.denx.de (Postfix) with ESMTP id 0A42C81762 for ; Sun, 22 Mar 2020 23:44:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.70.103]) by smtpcmd08.ad.aruba.it with bizsmtp id Hakc220082DhmGq01akgBX; Sun, 22 Mar 2020 23:44:40 +0100 From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , uboot-imx@nxp.com, Lukasz Majewski , Anatolij Gustschin , Simon Glass , Daniel Schwierzeck , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v2 11/19] video: mxsfb: enable setting VSYNC negative polarity Date: Sun, 22 Mar 2020 23:44:27 +0100 Message-Id: <20200322224435.114512-12-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200322224435.114512-1-giulio.benetti@benettiengineering.com> References: <20200322224435.114512-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aruba.it; s=a1; t=1584917080; bh=FNAMwhtbV60ZO4lLbQeQH9QP4CfN5dZc7Dic1BicQ/Q=; h=From:To:Subject:Date:MIME-Version; b=k7x8DaEmTRb16bOxIJbRQQjWjImSsYEOEAfim61LJ6gFxbnOCFFfYMTj2rA3EZLmy vOx84277UqMIcD4nghOkQwkSK9wrope7RLeOqWMrW8m3dMt5hVkS3dVIsA7zkrW2YL rifB6IcfIHcUI9vi7kaQlYWnxet2zZZIMmjxmEBlgZI/IpV4eI9nwBUa5FV1tJzm1c 2Rt5FGk7WUv8B6BemHBmQW6FCPn996exUc7kEIR9GobXtp39uc0fwDS73G76U+Fodn tOMJPKBgxFxaZ2e8PQ7rS4EZRJvIe4eBLks98Hg2Au4nLpu5Lyp5qyzVZhA/d22aPv +ULJ5ibEOZaEg== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean VSYNC signal can now be flipped by writing its bitmask on vdctrl0 register. Signed-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 9912cf3d82..4d33e24e1a 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -127,6 +127,8 @@ static void mxs_lcd_init(struct udevice *dev, u32 fb_addr, if(flags & DISPLAY_FLAGS_HSYNC_HIGH) vdctrl0 |= LCDIF_VDCTRL0_HSYNC_POL; + if(flags & DISPLAY_FLAGS_VSYNC_HIGH) + vdctrl0 |= LCDIF_VDCTRL0_VSYNC_POL; writel(vdctrl0, ®s->hw_lcdif_vdctrl0); writel(timings->vback_porch.typ + timings->vfront_porch.typ + timings->vsync_len.typ + timings->vactive.typ,