From patchwork Wed Apr 13 15:53:32 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: 1009 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:48:13 -0000 Delivered-To: patches@linaro.org Received: by 10.68.59.138 with SMTP id z10cs327356pbq; Wed, 13 Apr 2011 08:58:22 -0700 (PDT) Received: by 10.42.245.2 with SMTP id ls2mr27900icb.39.1302710107004; Wed, 13 Apr 2011 08:55:07 -0700 (PDT) Received: from mail-iy0-f178.google.com (mail-iy0-f178.google.com [209.85.210.178]) by mx.google.com with ESMTPS id xm13si2037935icb.54.2011.04.13.08.55.06 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Apr 2011 08:55:07 -0700 (PDT) Received-SPF: pass (google.com: domain of weitway@gmail.com designates 209.85.210.178 as permitted sender) client-ip=209.85.210.178; Authentication-Results: mx.google.com; spf=pass (google.com: domain of weitway@gmail.com designates 209.85.210.178 as permitted sender) smtp.mail=weitway@gmail.com; dkim=pass (test mode) header.i=@gmail.com Received: by mail-iy0-f178.google.com with SMTP id 12so1650842iyi.37 for ; Wed, 13 Apr 2011 08:55:06 -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 :in-reply-to:references; bh=lwtJbVEq1Y9uyv6HC+1lDPAeu9eSQ10WZePJpTkCbSg=; b=PZca/1/rjPz8MQhWZ4qE/eE/TR38IZc/5ueQprEK1cR3BEcOcIVAEqUNz14/wQXBAO WVkOrlht+Qtffj2BtBpE7/VtWqURlusl5JH30sq3W5PfpM8co5wBewDSlca9ulOLW4Jc VtKhcehopcqKuJKbfD5Z9kR+8hhnk4C14G3PU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=xcXt/mQ1pkU5DJLsMlF+hIZXc9vuOc77u3mWW8XaXAvaRxEwO1KB88hlaYim9/1iaS 05rr2P+NGcGeKOEE8KXCinHcfCCR+ULtXViO0iZlwokyZmjmpFHIO6Mhd1SU7xyMB1y2 azNyHyRSmRowvb1cErWZWXfvTAzgJp0DnHvi0= Received: by 10.42.239.138 with SMTP id kw10mr3184653icb.429.1302710106383; Wed, 13 Apr 2011 08:55:06 -0700 (PDT) Received: from localhost.localdomain ([116.235.131.170]) by mx.google.com with ESMTPS id f28sm513868ibh.50.2011.04.13.08.54.58 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Apr 2011 08:55:04 -0700 (PDT) From: weitway@gmail.com To: linux-arm-kernel@lists.infradead.org Cc: u.kleine-koenig@pengutronix.de, s.hauer@pengutronix.de, eric.miao@linaro.org, Jason Chen , Jason Chen Subject: [PATCH 3/7] Add i.MX5 framebuffer driver Date: Wed, 13 Apr 2011 23:53:32 +0800 Message-Id: <1302710016-3569-3-git-send-email-weitway@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1302710016-3569-1-git-send-email-weitway@gmail.com> References: <1302710016-3569-1-git-send-email-weitway@gmail.com> 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. Signed-off-by: Sascha Hauer Signed-off-by: Jason Chen --- drivers/video/Kconfig | 11 + drivers/video/Makefile | 1 + drivers/video/mx5fb.c | 949 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 961 insertions(+), 0 deletions(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 9698c00..fb79cd6 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -2344,6 +2344,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 f6f15fd..c0588fa 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -152,6 +152,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..85b2251 --- /dev/null +++ b/drivers/video/mx5fb.c @@ -0,0 +1,949 @@ +/* + * 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