Message ID | 20181116163916.29621-3-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBWPFXPPQKGQEQRUSYLA@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id E445F2E53B4 for <linux-amarula@patchwork.amarulasolutions.com>; Fri, 16 Nov 2018 17:39:54 +0100 (CET) Received: by mail-pg1-f198.google.com with SMTP id r13sf15775428pgb.7 for <linux-amarula@patchwork.amarulasolutions.com>; Fri, 16 Nov 2018 08:39:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1542386393; cv=pass; d=google.com; s=arc-20160816; b=IDoDrHlDYhxsn0ht7br4eqhvYg/Sdn45oLUYwBD3YEU5vPLJBUxYrnQhX8Wro2s5lu Ag3FQ56Y/nrrRAqizwI3ikARlEnjM2RNucq1urnlo4tXl4Pq0qKe2P0ptvULn+HvBDyg Pw/8GsCwygBiMmFcjEmDjMc4v5Nnr/oMFMWl5BPFuJU518qucS3RQhFxZ9qw1GbLvDe/ SwbYccl92umIl8v1rMWOrwYLaHyfVLVT+xX6cNDF6n/NfrIF/qIDvHJZ+QjIPNslANaf OZfa1YYPdxX4qw9TF2PfHXA3yfjdGiu3hQUOjVgEXMnGFMCcDwNgSp+c2EGqqQIH7LfZ dp6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xfw1G45o1zFW41lhUipKSvIxM7Mirg3j/ORexArSSOI=; b=n2rhH0Zd+sU0mcIaWLMgS3Co79CsV+Sf7F2srT0ZpgX7SDcir9slLEB6M+F89x9HGV yfzi9ZPL1LwUGUptuk7Eo0vcPgJI3cOIXqssrobVH3o+3Mmx2wc5TToZvFYL8mhwzbKD 09HTTv2xe67CGs3lU/HxaiDzYFSA7UFPptXp8lh+cUd496/CGK3OLh2A1bPxxmLA6ngJ Xajby+pXaUB0/cox3NzjIQgtKW9e+CuFDcmHOh3N1IKj1JjMHj1WbtomqzbOeayXbq5f qJ8qMvgJ6kX82s5vxUOkuWsNf3v/95/5tR2oVgRh0sFrrIn7OF44r+9/PpkLVwtY3kkT DY+A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IHk+yUcw; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=xfw1G45o1zFW41lhUipKSvIxM7Mirg3j/ORexArSSOI=; b=kWYwpT+TRgYDTvRydTTXr+GsZP6tNf3CfyLgB+Nx+Q3foxisxRATf+sWOHeOOlA+8p M8j6ENtSlT/ddzy9BLC+21wDZxUAO/Kl16sOKr+EIK8+iL54i4lB+n3BKpCDtX9hkAoM 0ZfsrLXN5SLtVDzmkjj8B/ZIKfBPwEELgJrRU= 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:in-reply-to :references:mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=xfw1G45o1zFW41lhUipKSvIxM7Mirg3j/ORexArSSOI=; b=idsLAmDokxAK8b9mnW7Oblel7CV6uIwcJJwIo7yMVUiS4wjuPbqCDpSRmSpioW1Q7c StX/+UvRZ2GhH/UYrTKGXzvuCvpbTntq4CkEf3wn9CCAgnRsk1oIXysav+CXY5djui9j 8zNX0fIugcVvIqL30BeZEgi9uZMZu5wAP1z68uf/UEN9Ap3tVLKrXE/cwBcytQq64o4p xjBjlhtqPHyO7k3OsPTI0vaEnngwblYoVgvjbti5eop+ufQmO1TQNvQ6E1FJtjjRRE9M QBU5BoMJdpWP7ds6cSm1HcPV31Zw1pm6fxn81Xf3AhZDlkZoqIL8COdnbzy9WhPQxZJ9 tFHA== X-Gm-Message-State: AGRZ1gIHzJzRUE/30JDXi1hKm11gd1paotlp0GXEBsmrKa693+bX/aWl wjoIbHea4Jne8C355qxB8uW3th8u X-Google-Smtp-Source: AJdET5c0/tP9KmJfCdQKvFOdSjDKLw6zyo1n0qIgJnKzUAuJ+jzowULEf2v0JnQRPucfPsqOThxMaQ== X-Received: by 2002:a17:902:7795:: with SMTP id o21mr2149002pll.17.1542386393652; Fri, 16 Nov 2018 08:39:53 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:ba43:: with SMTP id l3ls5928777pgu.7.gmail; Fri, 16 Nov 2018 08:39:53 -0800 (PST) X-Received: by 2002:a62:528e:: with SMTP id g136mr7744286pfb.111.1542386393351; Fri, 16 Nov 2018 08:39:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542386393; cv=none; d=google.com; s=arc-20160816; b=m8reFj82Tv6H15kVm7uEVsERvyzgHVSIWNmex5JUxs/tyDVXbQhNy0M5g6tjSIa/qE DNETPNSL7jALzH1/k0saQtOiojEjeWz7RSk+j0qqVqlX4GSWPWQk1+xafXm95zrOF6C7 xLhNrhbW8ld/0Y88hy5ZVKsFeVCePur+A6GrSdQ/+4dfWTkTUxGVBUkHOT95b98+Zv5X RUYbUwNTogOpaOsJb6s+EagM1mNeJwpCTUU0qvkLZyjhu+hqHDlKEYMlyGjdHD0KNLjX s4ongiDpBmaEKUGPvn2eiMaV0e1D/3ExHzR4MM/jk9ei8RaaBIZ0DQ/4EqL4GUkko0cj s0WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=xfw1G45o1zFW41lhUipKSvIxM7Mirg3j/ORexArSSOI=; b=CpCQRa9L/7TgqDpDaNa+35W6jcczLe1ioLeAxzr/Wuuiyyedu1Fk3kOKur7rzEq3Me zsgDZbOcXc9xtUeyC8JTD2vzfE0Qqf0VfjUit5zhbkEErDR50rZzMbppjAdFszII0Zi0 u+udrkOe6nuIjyf2lBFTsjHGX6Vvd67gCQEhjNT+LJ2rc20BQCN9E7vxPpra1I2ZJaPm aMVmhSm9Oy9jMqI8FasEesebfoQzQ8LFrouD1vnL3GnHyz7whr7V7nb5ug9YT/NA6qQQ Hu4mANOyxU2ESELcMIMMasq6Q+xuAHLQn/shn5vOlmWZdgeYmaVjE8iU/Gi6h80PqExg 1Q/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IHk+yUcw; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id e2-v6sor38429169pfb.55.2018.11.16.08.39.53 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Fri, 16 Nov 2018 08:39:53 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a62:6241:: with SMTP id w62-v6mr11758075pfb.69.1542386393003; Fri, 16 Nov 2018 08:39:53 -0800 (PST) Received: from localhost.localdomain ([115.97.190.86]) by smtp.gmail.com with ESMTPSA id p5-v6sm34622213pfb.109.2018.11.16.08.39.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 08:39:52 -0800 (PST) From: Jagan Teki <jagan@amarulasolutions.com> To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Maxime Ripard <maxime.ripard@bootlin.com>, Sean Paul <sean@poorly.run>, David Airlie <airlied@linux.ie>, Rob Herring <robh+dt@kernel.org>, Chen-Yu Tsai <wens@csie.org>, Icenowy Zheng <icenowy@aosc.io>, Jernej Skrabec <jernej.skrabec@siol.net>, Vasily Khoruzhick <anarsoul@gmail.com>, Thierry Reding <thierry.reding@gmail.com>, Mark Rutland <mark.rutland@arm.com>, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Michael Trimarchi <michael@amarulasolutions.com>, TL Lim <tllim@pine64.org>, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com Cc: Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH v2 02/12] drm/sun4i: sun6i_mipi_dsi: Support instruction loop selection Date: Fri, 16 Nov 2018 22:09:06 +0530 Message-Id: <20181116163916.29621-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181116163916.29621-1-jagan@amarulasolutions.com> References: <20181116163916.29621-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IHk+yUcw; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c index 43ab7127d428..3ac002c4d8b3 100644 --- a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c +++ b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c @@ -438,6 +438,9 @@ static void sun6i_dsi_setup_inst_loop(struct sun6i_dsi *dsi, { u16 delay = sun6i_dsi_setup_inst_delay(dsi, mode); + regmap_write(dsi->regs, SUN6I_DSI_INST_LOOP_SEL_REG, + DSI_INST_ID_HSC << (4 * DSI_INST_ID_LP11) | + DSI_INST_ID_HSD << (4 * DSI_INST_ID_DLY)); regmap_write(dsi->regs, SUN6I_DSI_INST_LOOP_NUM_REG(0), SUN6I_DSI_INST_LOOP_NUM_N0(50 - 1) | SUN6I_DSI_INST_LOOP_NUM_N1(delay));
Instruction loop selection would require before writing loop number registers, so enable idle, LP11 bits on loop selection register. Reference code available in BSP (from linux-sunxi/ drivers/video/sunxi/disp2/disp/de/lowlevel_sun50iw1/de_dsi.c) (dsi_dev[sel]->dsi_inst_loop_sel.dwval = 2<<(4*DSI_INST_ID_LP11) | 3<<(4*DSI_INST_ID_DLY); Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 3 +++ 1 file changed, 3 insertions(+)