From patchwork Thu Aug 6 14:34:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 39622 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n76Ed8Fn000588 for ; Thu, 6 Aug 2009 14:39:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751831AbZHFOiv (ORCPT ); Thu, 6 Aug 2009 10:38:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752952AbZHFOiv (ORCPT ); Thu, 6 Aug 2009 10:38:51 -0400 Received: from mail-pz0-f179.google.com ([209.85.222.179]:58412 "EHLO mail-pz0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751831AbZHFOiu (ORCPT ); Thu, 6 Aug 2009 10:38:50 -0400 Received: by pzk9 with SMTP id 9so970787pzk.21 for ; Thu, 06 Aug 2009 07:38:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :subject; bh=E1PcFuvD9p7bp1CNJWJ9hGzHm8PKxcOD0lTfxivxrpg=; b=HmoDfMckmxoiqc77BEZzOs1ieMFKR9tQQ/nwe+OyuQthOeP1mMONTzeb3ljS/bht6R X6Fbgt9/kvFXMW9dYEWOYQKbjfO1P/ue1itpZ06+ciDHMVPCItUetIgYQrs5ibbRVhgU 5Bh+Xl/tguRS+61+xVVHUYLofkhlEsU9NLIt0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=JUQXF6+3Y63YpPVz+6jhdh/r3VYgGogAP38UfwnLEsB+58VS4CoKUiwf/qb3HkZSYY JrZ+WKQhPgZmwNMNq8PRgavFGOi+hTQsEVcQ1B+n724wLSfs6zuAlK4PMMMB6YIRoliQ SAVpvA19TA/NUEyaNBoaMFRAcfpqyeenMPkmo= Received: by 10.114.153.17 with SMTP id a17mr13517759wae.162.1249569531165; Thu, 06 Aug 2009 07:38:51 -0700 (PDT) Received: from rx1.opensource.se (210.5.32.202.bf.2iij.net [202.32.5.210]) by mx.google.com with ESMTPS id k37sm97116waf.7.2009.08.06.07.38.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 06 Aug 2009 07:38:50 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Thu, 06 Aug 2009 23:34:38 +0900 Message-Id: <20090806143438.4005.17251.sendpatchset@rx1.opensource.se> Subject: [PATCH] sh: 18-bit SYS panel fix for SuperH Mobile LCDC Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Magnus Damm Fix the SuperH Mobile LCDC driver to make use of the full 18-bit DRD field in the LDDRDR register. Without this patch only 16-bit register access is possible. Needed by 18-bit SYS panels such as the one used on kfr2r09. Signed-off-by: Magnus Damm --- Tested on Migo-R and kfr2r09. Applies on top of the wait bit fix. drivers/video/sh_mobile_lcdcfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0003/drivers/video/sh_mobile_lcdcfb.c +++ work/drivers/video/sh_mobile_lcdcfb.c 2009-08-06 21:44:44.000000000 +0900 @@ -177,7 +177,7 @@ static unsigned long lcdc_sys_read_data( udelay(1); lcdc_wait_bit(ch->lcdc, _LDSR, 2, 0); - return lcdc_read(ch->lcdc, _LDDRDR) & 0xffff; + return lcdc_read(ch->lcdc, _LDDRDR) & 0x3ffff; } struct sh_mobile_lcdc_sys_bus_ops sh_mobile_lcdc_sys_bus_ops = {