From patchwork Mon Apr 25 13:39:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: weitway@gmail.com X-Patchwork-Id: 1172 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:49:51 -0000 Delivered-To: patches@linaro.org Received: by 10.224.2.73 with SMTP id 9cs34785qai; Mon, 25 Apr 2011 06:39:31 -0700 (PDT) Received: by 10.68.6.67 with SMTP id y3mr6617780pby.12.1303738770963; Mon, 25 Apr 2011 06:39:30 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id w1si17839000pbh.199.2011.04.25.06.39.30 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Apr 2011 06:39:30 -0700 (PDT) Received-SPF: pass (google.com: domain of weitway@gmail.com designates 209.85.210.50 as permitted sender) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=pass (google.com: domain of weitway@gmail.com designates 209.85.210.50 as permitted sender) smtp.mail=weitway@gmail.com; dkim=pass (test mode) header.i=@gmail.com Received: by pzk2 with SMTP id 2so1962737pzk.37 for ; Mon, 25 Apr 2011 06:39:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=Eh+avIuvMaxyIjydkfd58s7cdeAzm6HkkQtfmSkWumM=; b=Kreyd7LGjcalCvkxyAlRZy6uAL3BfS6VgPYB3/nM3j6xcPndvhCNvwNuU0G4cL+0Gj 9m0gi3V+/iKqDk+DLcYfZU8a1eVMPAvTGY9y8qWDJshm+ljgyIUvjzMgWwmS/7JeUlDj +vdTSm+SPwtpQ2AcjNTVcwBjHBxbYb5IuTUY8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=hvn53BqgK0qtjWrBxzWAieo6pTDm/7Kwv5M5FMg3gthkK+nybb0+z9ZM2idjS3cvTY 4bQwC3dyuQrRKTLKr4HELcqQSaLtcQFS5+t2ilrrlkg14CgN4StlK1Bx+iKGLtXQ5CON NreB0Kfbs8HqHTmaZohPMYzfCxWJ+IZ8asXyM= Received: by 10.68.18.3 with SMTP id s3mr6656951pbd.246.1303738768309; Mon, 25 Apr 2011 06:39:28 -0700 (PDT) Received: from localhost.localdomain ([116.235.134.24]) by mx.google.com with ESMTPS id f1sm3914134pbm.93.2011.04.25.06.39.15 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Apr 2011 06:39:26 -0700 (PDT) From: weitway@gmail.com To: linux-arm-kernel@lists.infradead.org Cc: s.hauer@pengutronix.de, eric.miao@linaro.org, Jason Chen , Jason Chen , Jason Chen Subject: [PATCH 3/9] Add i.MX5 framebuffer driver Date: Mon, 25 Apr 2011 21:39:02 +0800 Message-Id: <1303738742-27594-1-git-send-email-weitway@gmail.com> X-Mailer: git-send-email 1.7.1 From: Jason Chen This patch adds framebuffer support to the Freescale i.MX SoCs equipped with an IPU v3, so far these are the i.MX51/53. This driver has been tested on the i.MX51 babbage board with both DVI and analog VGA in different resolutions and color depths. It has also been tested on a custom i.MX51 board using a fixed resolution panel. On i.MX53, it has been tested on the i.MX51 loco board with WVGA LCD panel. Signed-off-by: Sascha Hauer Signed-off-by: Jason Chen Signed-off-by: Jason Chen --- drivers/video/Kconfig | 11 + drivers/video/Makefile | 1 + drivers/video/mx5fb.c | 952 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 964 insertions(+), 0 deletions(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index ef502b8..ab92938 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -2297,6 +2297,17 @@ config FB_MX3 far only synchronous displays are supported. If you plan to use an LCD display with your i.MX31 system, say Y here. +config FB_MX5 + tristate "MX5 Framebuffer support" + depends on FB && FB_IMX_IPU_V3 + select FB_CFB_FILLRECT + select FB_CFB_COPYAREA + select FB_CFB_IMAGEBLIT + select FB_MODE_HELPERS + help + This is a framebuffer device for the i.MX5 LCD Controller. If you + plan to use an LCD display with your i.MX5 system, say Y here. + config FB_BROADSHEET tristate "E-Ink Broadsheet/Epson S1D13521 controller support" depends on FB diff --git a/drivers/video/Makefile b/drivers/video/Makefile index d40faf5..554b051 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -153,6 +153,7 @@ obj-$(CONFIG_FB_BFIN_LQ035Q1) += bfin-lq035q1-fb.o obj-$(CONFIG_FB_BFIN_T350MCQB) += bfin-t350mcqb-fb.o obj-$(CONFIG_FB_BFIN_7393) += bfin_adv7393fb.o obj-$(CONFIG_FB_MX3) += mx3fb.o +obj-$(CONFIG_FB_MX5) += mx5fb.o obj-$(CONFIG_FB_DA8XX) += da8xx-fb.o obj-$(CONFIG_FB_MXS) += mxsfb.o obj-$(CONFIG_FB_IMX_IPU_V3) += imx-ipu-v3/ diff --git a/drivers/video/mx5fb.c b/drivers/video/mx5fb.c new file mode 100644 index 0000000..98e0f73 --- /dev/null +++ b/drivers/video/mx5fb.c @@ -0,0 +1,952 @@ +/* + * Copyright 2004-2009 Freescale Semiconductor, Inc. All Rights Reserved. + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + * + * Framebuffer Framebuffer Driver for SDC + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include