From patchwork Tue Mar 5 05:07:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 2217461 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id B133CDFABD for ; Tue, 5 Mar 2013 05:07:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750781Ab3CEFHO (ORCPT ); Tue, 5 Mar 2013 00:07:14 -0500 Received: from mail-pb0-f51.google.com ([209.85.160.51]:56095 "EHLO mail-pb0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750742Ab3CEFHN (ORCPT ); Tue, 5 Mar 2013 00:07:13 -0500 Received: by mail-pb0-f51.google.com with SMTP id un15so3885082pbc.38 for ; Mon, 04 Mar 2013 21:07:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:sender:message-id:from:to:cc:in-reply-to:references :from:subject:mime-version:content-type; bh=cpyhBltvwKRE+CGjJoln5FqJb78rEb8IzZY4M5BhmFg=; b=uAVgQCTez5uGuUsGCXZ53PeXysFmUQexs3xCWe7Wkekf+0hWq9HndCkhCJjnAIz5IB ZU1tUjbriTiE5sLNOYs+8yvsMW8jC938A5W5bpGzEidQqcq/k75s4C/QiSJekKh1dawU OxRS9CX3O/yfCJzfJhtVewYbSinZZLlUKbCJ6mxAVDSHDdm49m8WbVAVh8a1wG7xh2VE H0watcnaFr9E+1Md3MvjaHW+eTIU7jPiI8VnOTnp52peJPQh8Vs6Juq/lihUlmx+XGH0 F76y1RJ3jfXALmrtL/o0sASOnRfzKlfH3dQn0gW9ckYyuxCawLhv8V6Lr20eSnq7K5nw NsSw== X-Received: by 10.68.22.73 with SMTP id b9mr33485415pbf.214.1362460032144; Mon, 04 Mar 2013 21:07:12 -0800 (PST) Received: from morimoto-Dell-XPS420.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPS id pg6sm25035422pbb.0.2013.03.04.21.07.09 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 04 Mar 2013 21:07:10 -0800 (PST) Date: Mon, 04 Mar 2013 21:07:10 -0800 (PST) Message-ID: <87txoqmo3p.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Laurent Cc: Magnus Damm , Osamu Fukushima , Linux-fbdev , Linux-SH , Kuninori Morimoto , sano In-Reply-To: <87vc96moeq.wl%kuninori.morimoto.gx@renesas.com> References: <87wqtmmp59.wl%kuninori.morimoto.gx@renesas.com> <87vc96moeq.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2] fbdev: sh_mobile_lcdc: fixup B side hsync adjust settings MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org The lcdc B side horizon output is shifted if sh_mobile_lcdc_pan() was called. This patch fixup this issue. It is tested on R8A7740 Armadillo800eva HDMI output. Special thanks to Fukushima-san, and Sano-san Reported-by: Osamu Fukushima Signed-off-by: Hideyuki Sano Signed-off-by: Kuninori Morimoto Acked-by: Laurent Pinchart --- v1 -> v2 - git log has tested SoC/board drivers/video/sh_mobile_lcdcfb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index 63203ac..0264704 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c @@ -858,6 +858,7 @@ static void sh_mobile_lcdc_geometry(struct sh_mobile_lcdc_chan *ch) tmp = ((mode->xres & 7) << 24) | ((display_h_total & 7) << 16) | ((mode->hsync_len & 7) << 8) | (hsync_pos & 7); lcdc_write_chan(ch, LDHAJR, tmp); + lcdc_write_chan_mirror(ch, LDHAJR, tmp); } static void sh_mobile_lcdc_overlay_setup(struct sh_mobile_lcdc_overlay *ovl)