Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752112AbaLCJSv (ORCPT ); Wed, 3 Dec 2014 04:18:51 -0500 Received: from mail-by2on0148.outbound.protection.outlook.com ([207.46.100.148]:21952 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751948AbaLCJRr (ORCPT ); Wed, 3 Dec 2014 04:17:47 -0500 From: Xiubo Li To: , CC: , , , , , Xiubo Li Subject: [PATCHv2 1/4] video: fsl-dcfb: Add dcfb framebuffer driver for LS1021A platform Date: Wed, 3 Dec 2014 17:15:59 +0800 Message-ID: <1417598162-40433-2-git-send-email-Li.Xiubo@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1417598162-40433-1-git-send-email-Li.Xiubo@freescale.com> References: <1417598162-40433-1-git-send-email-Li.Xiubo@freescale.com> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.168.50;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(199003)(189002)(99396003)(229853001)(48376002)(50466002)(31966008)(120916001)(50986999)(102836001)(36756003)(107046002)(77156002)(62966003)(104166001)(68736005)(77096005)(88136002)(97736003)(104016003)(95666004)(106466001)(47776003)(575784001)(21056001)(86362001)(93916002)(76176999)(105606002)(92726001)(64706001)(20776003)(92566001)(46102003)(87936001)(84676001)(87286001)(6806004)(89996001)(19580395003)(19580405001)(50226001)(44976005)(4396001)(2004002);DIR:OUT;SFP:1102;SCL:1;SRVR:BN1PR0301MB0610;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BN1PR0301MB0610; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:BN1PR0301MB0610; X-Forefront-PRVS: 0414DF926F Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=Li.Xiubo@freescale.com; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:BN1PR0301MB0610; X-OriginatorOrg: freescale.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Display Controller module is a system master that fetches graphics stored in internal/external memory and displays them on a TFT LCD panel. A wide range of panel sizes is supported and the timing of the interface signals is configurable. The dcfb has these features: o Full RGB888 output to TFT LCD panel. o Optional output to system memory dependent on implementation. o Supports Programmable panel size upto a maximum of 2032x2047. The actual resolution supported depends upon the pixel clock and bus bandwidth available. o Gamma correction with 8-bit resolution on each color component. o Dedicated memory blocks to store a cursor and Color Look Up Tables(CLUTs). o Temporal Dithering. Signed-off-by: Xiubo Li --- drivers/video/fbdev/Kconfig | 19 + drivers/video/fbdev/Makefile | 1 + drivers/video/fbdev/fsl-dcfb.c | 814 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 834 insertions(+) create mode 100644 drivers/video/fbdev/fsl-dcfb.c diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig index 4916c97..460fe39 100644 --- a/drivers/video/fbdev/Kconfig +++ b/drivers/video/fbdev/Kconfig @@ -1948,6 +1948,25 @@ config FB_MBX_DEBUG If unsure, say N. +config FB_FSL_DCFB + tristate "Freescale Display Control Framebuffer Support" + depends on FB + select FB_CFB_FILLRECT + select FB_CFB_COPYAREA + select FB_CFB_IMAGEBLIT + select FB_MODE_HELPERS + select VIDEOMODE_HELPERS + select REGMAP_MMIO + ---help--- + Framebuffer driver for the Freescale SoC Display Control. + + This driver is also available as a module ( = code which can be + inserted and removed from the running kernel whenever you want). + If you want to compile it as a module, say M here and read + . + + If unsure, say N. + config FB_FSL_DIU tristate "Freescale DIU framebuffer support" depends on FB && FSL_SOC diff --git a/drivers/video/fbdev/Makefile b/drivers/video/fbdev/Makefile index 1979aff..9015138 100644 --- a/drivers/video/fbdev/Makefile +++ b/drivers/video/fbdev/Makefile @@ -109,6 +109,7 @@ obj-$(CONFIG_FB_SH7760) += sh7760fb.o obj-$(CONFIG_FB_IMX) += imxfb.o obj-$(CONFIG_FB_S3C) += s3c-fb.o obj-$(CONFIG_FB_S3C2410) += s3c2410fb.o +obj-$(CONFIG_FB_FSL_DCFB) += fsl-dcfb.o obj-$(CONFIG_FB_FSL_DIU) += fsl-diu-fb.o obj-$(CONFIG_FB_COBALT) += cobalt_lcdfb.o obj-$(CONFIG_FB_IBM_GXT4500) += gxt4500.o diff --git a/drivers/video/fbdev/fsl-dcfb.c b/drivers/video/fbdev/fsl-dcfb.c new file mode 100644 index 0000000..c3843bf --- /dev/null +++ b/drivers/video/fbdev/fsl-dcfb.c @@ -0,0 +1,814 @@ +/* + * Copyright 2012-2014 Freescale Semiconductor, Inc. + * + * Freescale Dispaly Controller Framebuffer Driver + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include