From patchwork Sat Mar 3 15:50:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: thomas.abraham@linaro.org X-Patchwork-Id: 7078 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 1889723F8E for ; Sat, 3 Mar 2012 15:45:46 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id D0DBDA1862C for ; Sat, 3 Mar 2012 15:45:45 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so4888854iag.11 for ; Sat, 03 Mar 2012 07:45:45 -0800 (PST) Received: from mr.google.com ([10.42.131.129]) by 10.42.131.129 with SMTP id z1mr9382855ics.53.1330789545681 (num_hops = 1); Sat, 03 Mar 2012 07:45:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.131.129 with SMTP id z1mr7708352ics.53.1330789545627; Sat, 03 Mar 2012 07:45:45 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.53.18 with SMTP id k18csp8487ibg; Sat, 3 Mar 2012 07:45:45 -0800 (PST) Received: by 10.68.74.138 with SMTP id t10mr25025386pbv.126.1330789544931; Sat, 03 Mar 2012 07:45:44 -0800 (PST) Received: from mailout1.samsung.com (mailout1.samsung.com. [203.254.224.24]) by mx.google.com with ESMTP id c10si12972175pbd.236.2012.03.03.07.45.44; Sat, 03 Mar 2012 07:45:44 -0800 (PST) Received-SPF: neutral (google.com: 203.254.224.24 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) client-ip=203.254.224.24; Authentication-Results: mx.google.com; spf=neutral (google.com: 203.254.224.24 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) smtp.mail=thomas.abraham@linaro.org 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 <0M0B00A0WFS34680@mailout1.samsung.com> for patches@linaro.org; Sun, 04 Mar 2012 00:45:43 +0900 (KST) X-AuditID: cbfee61a-b7b78ae000001ceb-ea-4f523ca7b8ed Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (MMPCPMTA) with SMTP id 21.5C.07403.7AC325F4; Sun, 04 Mar 2012 00:45:43 +0900 (KST) Received: from localhost.localdomain ([107.108.73.37]) by mmp1.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTPA id <0M0B004LTFRWXU10@mmp1.samsung.com> for patches@linaro.org; Sun, 04 Mar 2012 00:45:43 +0900 (KST) From: Thomas Abraham To: linux-fbdev@vger.kernel.org Cc: FlorianSchandinat@gmx.de, linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com, jg1.han@samsung.com, ben-linux@fluff.org, patches@linaro.org Subject: [PATCH 3/3] ARM: Exynos: Rework platform data for lcd controller for Origen board Date: Sat, 03 Mar 2012 21:20:08 +0530 Message-id: <1330789808-8253-4-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 In-reply-to: <1330789808-8253-1-git-send-email-thomas.abraham@linaro.org> References: <1330789808-8253-1-git-send-email-thomas.abraham@linaro.org> X-Brightmail-Tracker: AAAAAA== X-Gm-Message-State: ALoCoQl+g+5CQjBRIalW0QFGE6mA/9FnnCcJ6AjcSIux3OvS5eNCXMTkptlSPU+kG1QihLQm5FIz The 'default_win' element in the platform data is removed and the lcd panel video timing values are moved out of individual window configuration data. Cc: Ben Dooks Cc: Jingoo Han Signed-off-by: Thomas Abraham Acked-by: Jingoo Han --- arch/arm/mach-exynos/mach-origen.c | 24 ++++++++++++++---------- 1 files changed, 14 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c index f57aed4..dc4ecc3 100644 --- a/arch/arm/mach-exynos/mach-origen.c +++ b/arch/arm/mach-exynos/mach-origen.c @@ -583,22 +583,26 @@ static struct platform_device origen_lcd_hv070wsa = { }; static struct s3c_fb_pd_win origen_fb_win0 = { - .win_mode = { - .left_margin = 64, - .right_margin = 16, - .upper_margin = 64, - .lower_margin = 16, - .hsync_len = 48, - .vsync_len = 3, - .xres = 1024, - .yres = 600, - }, + .xres = 512, + .yres = 300, .max_bpp = 32, .default_bpp = 24, }; +static struct fb_videomode lcd_hv070wsa_timing = { + .left_margin = 64, + .right_margin = 16, + .upper_margin = 64, + .lower_margin = 16, + .hsync_len = 48, + .vsync_len = 3, + .xres = 1024, + .yres = 600, +}; + static struct s3c_fb_platdata origen_lcd_pdata __initdata = { .win[0] = &origen_fb_win0, + .vtiming = &lcd_hv070wsa_timing, .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB, .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC | VIDCON1_INV_VCLK,