From patchwork Mon Jul 25 20:03:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar X-Patchwork-Id: 1004692 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6PEBrKN020308 for ; Mon, 25 Jul 2011 14:11:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752071Ab1GYOLw (ORCPT ); Mon, 25 Jul 2011 10:11:52 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:10511 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752048Ab1GYOLw (ORCPT ); Mon, 25 Jul 2011 10:11:52 -0400 Received: from epcpsbgm1.samsung.com (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LOW007627F70BH0@mailout1.samsung.com> for linux-fbdev@vger.kernel.org; Mon, 25 Jul 2011 23:11:46 +0900 (KST) X-AuditID: cbfee61a-b7cf0ae000006bc6-e8-4e2d79a24042 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (MMPCPMTA) with SMTP id B1.C1.27590.2A97D2E4; Mon, 25 Jul 2011 23:11:46 +0900 (KST) Received: from localhost.localdomain ([107.108.73.106]) by mmp2.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LOW00M2R7FFBP@mmp2.samsung.com> for linux-fbdev@vger.kernel.org; Mon, 25 Jul 2011 23:11:47 +0900 (KST) Date: Mon, 25 Jul 2011 16:03:17 -0400 From: Ajay Kumar Subject: [PATCH RESEND 1/7] video: s3c-fb: Add S5P64X0 specific s3c_fb_driverdata To: linux-fbdev@vger.kernel.org Message-id: <1311624197-2777-1-git-send-email-ajaykumar.rs@samsung.com> X-Mailer: git-send-email 1.7.0.4 Content-transfer-encoding: 7BIT X-Brightmail-Tracker: AAAAAA== Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Mon, 25 Jul 2011 14:11:53 +0000 (UTC) This patch: Adds s3c_fb_driverdata for S5P64X0, which supports 3 windows. Also, register "s5p64x0-fb" type driver_data. Existing s3c_fb_driverdata definitions in s3c-fb.c supports 5 or 2 windows. Signed-off-by: Ajay Kumar acked-by: Jingoo Han --- drivers/video/s3c-fb.c | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c index 4aecf21..0fda252 100644 --- a/drivers/video/s3c-fb.c +++ b/drivers/video/s3c-fb.c @@ -1859,6 +1859,30 @@ static struct s3c_fb_driverdata s3c_fb_data_s3c2443 = { }, }; +static struct s3c_fb_driverdata s3c_fb_data_s5p64x0 = { + .variant = { + .nr_windows = 3, + .vidtcon = VIDTCON0, + .wincon = WINCON(0), + .winmap = WINxMAP(0), + .keycon = WKEYCON, + .osd = VIDOSD_BASE, + .osd_stride = 16, + .buf_start = VIDW_BUF_START(0), + .buf_size = VIDW_BUF_SIZE(0), + .buf_end = VIDW_BUF_END(0), + + .palette = { + [0] = 0x2400, + [1] = 0x2800, + [2] = 0x2c00, + }, + }, + .win[0] = &s3c_fb_data_s5p_wins[0], + .win[1] = &s3c_fb_data_s5p_wins[1], + .win[2] = &s3c_fb_data_s5p_wins[2], +}; + static struct platform_device_id s3c_fb_driver_ids[] = { { .name = "s3c-fb", @@ -1872,6 +1896,9 @@ static struct platform_device_id s3c_fb_driver_ids[] = { }, { .name = "s3c2443-fb", .driver_data = (unsigned long)&s3c_fb_data_s3c2443, + }, { + .name = "s5p64x0-fb", + .driver_data = (unsigned long)&s3c_fb_data_s5p64x0, }, {}, };