From patchwork Thu Aug 6 14:51:30 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 39625 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 n76Eui7W004353 for ; Thu, 6 Aug 2009 14:56:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755680AbZHFOzn (ORCPT ); Thu, 6 Aug 2009 10:55:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755665AbZHFOzn (ORCPT ); Thu, 6 Aug 2009 10:55:43 -0400 Received: from rv-out-0506.google.com ([209.85.198.233]:6367 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753935AbZHFOzm (ORCPT ); Thu, 6 Aug 2009 10:55:42 -0400 Received: by rv-out-0506.google.com with SMTP id f6so168564rvb.1 for ; Thu, 06 Aug 2009 07:55:42 -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=mU1jibZxVOZC3pSTZkysLQyKsP/H6Dy35jJ6MQrq7XA=; b=xQIRwphEElaS25C2t15Dwg3AZ3gRSVL0lD7qrhsa3mM7Dfjjd5nwZfH746DezczrRQ ElXF68nYMzMA+SfLHhspFs8oV3FkTRsIZ+9IeD4AAHcVVSb64ZzpIKqWm9LLUAyTwNO3 slvW/w1PrzWKCgtjJzkmkvovtJnqjqcUwakYk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=bLMAsbaH+/eWl1F/9H6cic9zHC2KYxLiysH4/ch8Iam+qLzSoj9iXCin9AJOy8pdkI Pe8K4/nMHycgIkz+P6cjO6uU+bdNZIPu/vcWhRrpa5EqHYgsjIsgh0QvmiLzLRBk1lP4 vDCl26FO77AzQEJ572L9OlVZokWa8QwZF8ke4= Received: by 10.140.187.19 with SMTP id k19mr46992rvf.67.1249570542811; Thu, 06 Aug 2009 07:55:42 -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 k37sm358716rvb.12.2009.08.06.07.55.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 06 Aug 2009 07:55:41 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Thu, 06 Aug 2009 23:51:30 +0900 Message-Id: <20090806145130.4409.69037.sendpatchset@rx1.opensource.se> Subject: [PATCH] sh: kfr2r09 board support - LCDC panel Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Magnus Damm This patch adds support for the WQVGA LCD display used by the KFR2R09 board. The LCD module is a TX07D34VM0AAA made by Hitachi, and this module is made up by a R61517 chip together with a 240x400 pixel display. The screen is attached to the SuperH Mobile LCDC using a 18-bit SYS bus. The register settings used by the SYS panel setup code are based on an out-of-tree driver which apart from duplicating all LCDC driver code and writing to non-existing hardware registers also never was posted for upstream merge. Signed-off-by: Magnus Damm --- arch/sh/boards/mach-kfr2r09/Makefile | 1 arch/sh/boards/mach-kfr2r09/lcd_wqvga.c | 332 +++++++++++++++++++++++++++ arch/sh/boards/mach-kfr2r09/setup.c | 94 +++++++ arch/sh/include/mach-kfr2r09/mach/kfr2r09.h | 21 + 4 files changed, 448 insertions(+) -- 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 --- 0001/arch/sh/boards/mach-kfr2r09/Makefile +++ work/arch/sh/boards/mach-kfr2r09/Makefile 2009-08-06 21:33:53.000000000 +0900 @@ -1 +1,2 @@ obj-y := setup.o +obj-$(CONFIG_FB_SH_MOBILE_LCDC) += lcd_wqvga.o --- /dev/null +++ work/arch/sh/boards/mach-kfr2r09/lcd_wqvga.c 2009-08-06 21:33:53.000000000 +0900 @@ -0,0 +1,332 @@ +/* + * KFR2R09 LCD panel support + * + * Copyright (C) 2009 Magnus Damm + * + * Register settings based on the out-of-tree t33fb.c driver + * Copyright (C) 2008 Lineo Solutions, Inc. + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file COPYING in the main directory of this archive for + * more details. + */ + +#include +#include +#include +#include +#include +#include +#include +#include