From patchwork Thu Aug 9 11:29:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 10617 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 AB9AD23E57 for ; Thu, 9 Aug 2012 11:31:52 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 6C11EA186AB for ; Thu, 9 Aug 2012 11:31:52 +0000 (UTC) Received: by yhpp61 with SMTP id p61so288553yhp.11 for ; Thu, 09 Aug 2012 04:31:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=FPapO6vogxZDf3JEpV3SSFDIeVAHzHq7GYxjXPgpABY=; b=bHxkbEynilo7Yv8fl1zO6j8q5N2AHDkJpAt2OgYdYHszRuj//sm1DHuOC/lwdvnTBa b2ZVKIsoB2w1GslZRiQ7gcZb70Cd0/KFDyMcWojgyXfyR13YxSAR+1cB2Eg9cyPOoE3L 4Pjr3CNHHOi0JpV8WYJa6ueAJOfpNU+hllmWE1n1mfwnWcOLKzcPkwcpyzfKiRI7vtpz yIS36FflghMnmFUFHPPt7K9SrWcgFAdX7GUbzypDhcLNoU6sYgX2Zhu/aF9bjfrMTtoK yHdqKPSnrF8rhWMfWpjvo/+s8ChvME0Qtpnar48pttyrNC6PEmzexc4tAIAQALrqHGz3 N92w== Received: by 10.42.189.73 with SMTP id dd9mr2714104icb.49.1344511911590; Thu, 09 Aug 2012 04:31:51 -0700 (PDT) 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.50.184.200 with SMTP id ew8csp3895igc; Thu, 9 Aug 2012 04:31:51 -0700 (PDT) Received: by 10.68.200.98 with SMTP id jr2mr3431818pbc.81.1344511910914; Thu, 09 Aug 2012 04:31:50 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id ot8si2157342pbb.39.2012.08.09.04.31.50 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Aug 2012 04:31:50 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by pbcmd12 with SMTP id md12so888725pbc.37 for ; Thu, 09 Aug 2012 04:31:50 -0700 (PDT) Received: by 10.68.189.74 with SMTP id gg10mr3471001pbc.65.1344511910410; Thu, 09 Aug 2012 04:31:50 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pi7sm981935pbb.56.2012.08.09.04.31.47 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Aug 2012 04:31:50 -0700 (PDT) From: Tushar Behera To: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: thierry.reding@avionic-design.de, kgene.kim@samsung.com, jg1.han@samsung.com, patches@linaro.org Subject: [PATCH v2] ARM: EXYNOS: Use generic pwm driver in Origen board Date: Thu, 9 Aug 2012 16:59:53 +0530 Message-Id: <1344511793-25130-1-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQlcPWW+5VVI1HEkFK5tNRM3OmbT43nZUteLhKoZFqAM9uxuQ6zU0WEP1djrvlNmy2PQn1eN Signed-off-by: Tushar Behera --- Changes in v2: - Remove creation of s3c24xx-pwm platform device as it is already created in samsung_bl_set(). arch/arm/mach-exynos/mach-origen.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c index dcb96ef..c2dbb22 100644 --- a/arch/arm/mach-exynos/mach-origen.c +++ b/arch/arm/mach-exynos/mach-origen.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -614,6 +615,10 @@ static struct platform_device origen_lcd_hv070wsa = { .dev.platform_data = &origen_lcd_hv070wsa_data, }; +static struct pwm_lookup origen_pwm_lookup[] = { + PWM_LOOKUP("s3c24xx-pwm.0", 0, "pwm-backlight.0", NULL), +}; + #ifdef CONFIG_DRM_EXYNOS static struct exynos_drm_fimd_pdata drm_fimd_pdata = { .panel = { @@ -792,6 +797,7 @@ static void __init origen_machine_init(void) platform_add_devices(origen_devices, ARRAY_SIZE(origen_devices)); + pwm_add_table(origen_pwm_lookup, ARRAY_SIZE(origen_pwm_lookup)); samsung_bl_set(&origen_bl_gpio_info, &origen_bl_data); origen_bt_setup();