From patchwork Wed Jul 27 17:31:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar X-Patchwork-Id: 1011472 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6RBfI2B004632 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 27 Jul 2011 11:41:39 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Qm2Tt-0006dE-TM; Wed, 27 Jul 2011 11:40:54 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Qm2Tr-0004mr-O5; Wed, 27 Jul 2011 11:40:51 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Qm2Sd-0004Wq-1z for linux-arm-kernel@lists.infradead.org; Wed, 27 Jul 2011 11:39:37 +0000 Received: from epcpsbgm2.samsung.com (mailout4.samsung.com [203.254.224.34]) by mailout4.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LOZ00LYMPPNEJQ0@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 27 Jul 2011 20:39:34 +0900 (KST) X-AuditID: cbfee61b-b7c3dae000002cb8-6d-4e2ff8f6bab6 Received: from epmmp1 ( [203.254.227.16]) by epcpsbgm2.samsung.com (MMPCPMTA) with SMTP id D4.23.11448.6F8FF2E4; Wed, 27 Jul 2011 20:39:34 +0900 (KST) Received: from localhost.localdomain ([107.108.73.106]) by mmp1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LOZ0092EPPJ2V@mmp1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 27 Jul 2011 20:39:34 +0900 (KST) Date: Wed, 27 Jul 2011 13:31:16 -0400 From: Ajay Kumar Subject: [PATCH V3 5/7] ARM: S5P64X0: Add file to hold common Framebuffer and LCD code In-reply-to: <1311787878-16193-1-git-send-email-ajaykumar.rs@samsung.com> To: kgene.kim@samsung.com, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jg1.han@samsung.com, m.szyprowski@samsung.com Message-id: <1311787878-16193-6-git-send-email-ajaykumar.rs@samsung.com> X-Mailer: git-send-email 1.7.0.4 References: <1311787878-16193-1-git-send-email-ajaykumar.rs@samsung.com> X-Brightmail-Tracker: AAAAAA== X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110727_073935_638485_BB873309 X-CRM114-Status: GOOD ( 23.95 ) X-Spam-Score: -1.1 (-) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-1.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [203.254.224.34 listed in list.dnswl.org] -1.2 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 2.4 DATE_IN_FUTURE_03_06 Date: is 3 to 6 hours after Received: date X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Wed, 27 Jul 2011 11:41:39 +0000 (UTC) This patch creates a file which holds the framebuffer and LCD code which is common for SMDK6440 and SMDK6450. It mainly includes: -- Basic FB window definition. -- platform data for FB and LCD. -- platform_device support for LCD. Signed-off-by: Ajay Kumar --- arch/arm/mach-s5p64x0/Kconfig | 5 + arch/arm/mach-s5p64x0/Makefile | 3 + .../mach-s5p64x0/include/mach/smdk64x0-common-fb.h | 26 ++++++ arch/arm/mach-s5p64x0/smdk64x0-common-fb.c | 92 ++++++++++++++++++++ 4 files changed, 126 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-s5p64x0/include/mach/smdk64x0-common-fb.h create mode 100644 arch/arm/mach-s5p64x0/smdk64x0-common-fb.c diff --git a/arch/arm/mach-s5p64x0/Kconfig b/arch/arm/mach-s5p64x0/Kconfig index 4fee745..00d5873 100644 --- a/arch/arm/mach-s5p64x0/Kconfig +++ b/arch/arm/mach-s5p64x0/Kconfig @@ -32,6 +32,11 @@ config S5P64X0_SETUP_I2C1 help Common setup code for i2c bus 1. +config SMDK64X0_COMMON_FB + bool + help + Common framebuffer and LCD code which can be shared across SMDKs. + # machine support config MACH_SMDK6440 diff --git a/arch/arm/mach-s5p64x0/Makefile b/arch/arm/mach-s5p64x0/Makefile index 487d179..d09d81b 100644 --- a/arch/arm/mach-s5p64x0/Makefile +++ b/arch/arm/mach-s5p64x0/Makefile @@ -22,6 +22,9 @@ obj-$(CONFIG_CPU_S5P6450) += clock-s5p6450.o obj-$(CONFIG_MACH_SMDK6440) += mach-smdk6440.o obj-$(CONFIG_MACH_SMDK6450) += mach-smdk6450.o +#common code +obj-$(CONFIG_SMDK64X0_COMMON_FB) += smdk64x0-common-fb.o + # device support obj-y += dev-audio.o diff --git a/arch/arm/mach-s5p64x0/include/mach/smdk64x0-common-fb.h b/arch/arm/mach-s5p64x0/include/mach/smdk64x0-common-fb.h new file mode 100644 index 0000000..e3b87b9 --- /dev/null +++ b/arch/arm/mach-s5p64x0/include/mach/smdk64x0-common-fb.h @@ -0,0 +1,26 @@ +/* linux/arch/arm/mach-s5p64x0/include/mach/smdk64x0-common-fb.h + * + * Copyright (c) 2011 Samsung Electronics Co., Ltd. + * http://www.samsung.com/ + * + * Includes declarations for variables and functions + * needed in order to support framebuffer. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. +*/ + +#include +#include + +#include