From mboxrd@z Thu Jan 1 00:00:00 1970 From: Magnus Damm Date: Thu, 06 Aug 2009 14:51:30 +0000 Subject: [PATCH] sh: kfr2r09 board support - LCDC panel Message-Id: <20090806145130.4409.69037.sendpatchset@rx1.opensource.se> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: 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(+) --- 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