From patchwork Thu Aug 9 09:03:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 10614 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 C2D5B23E29 for ; Thu, 9 Aug 2012 09:05:28 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 751C6A1810A for ; Thu, 9 Aug 2012 09:05:28 +0000 (UTC) Received: by mail-yx0-f180.google.com with SMTP id q6so184849yen.11 for ; Thu, 09 Aug 2012 02:05:28 -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=pLYYh6BnshuX3ftcVEqcxua+ELr5QiWYl3sIeSG4qjg=; b=otryTKwbBDkScE23wyX6K2SpcS5lsZSpcyW49bpU46lzKMyf9ej9Rc6Un15oTZrrmk GrWZs7epr/9EMfFsnZdGx51qji3uzKTqGerF1V46NRe3sdna9wIci4/mCFqPKhifz6CO TPH0pKcJDWpYp+16QNJQ34vIkhfpjlBndDkC4yKdWD601MtR8kNeFTGc8Mmyf7NDnrVo mR9IAaNRfeSxgwJPmbMFq+k/zOAZC/XN+O0GUazY+jwYQRGuIU58IjAco3I7FnDLHivP PNPkMBAtP0qJKXkRR4rJT+pLhVO9OIOZQrv4aL2JULXFPImZhJzpUfy7sa8GPlcayvhI /Oow== Received: by 10.50.57.168 with SMTP id j8mr337252igq.16.1344503127936; Thu, 09 Aug 2012 02:05:27 -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 ew8csp648267igc; Thu, 9 Aug 2012 02:05:27 -0700 (PDT) Received: by 10.236.108.194 with SMTP id q42mr20324834yhg.3.1344503126736; Thu, 09 Aug 2012 02:05:26 -0700 (PDT) Received: from mail-gg0-f178.google.com (mail-gg0-f178.google.com [209.85.161.178]) by mx.google.com with ESMTPS id d17si206960anh.135.2012.08.09.02.05.25 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Aug 2012 02:05:26 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.161.178 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.161.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.161.178 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by ggeh3 with SMTP id h3so235299gge.37 for ; Thu, 09 Aug 2012 02:05:25 -0700 (PDT) Received: by 10.68.231.130 with SMTP id tg2mr2522996pbc.70.1344503125263; Thu, 09 Aug 2012 02:05:25 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pg9sm768544pbb.26.2012.08.09.02.05.22 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Aug 2012 02:05:24 -0700 (PDT) From: Tushar Behera To: linux-samsung-soc@vger.kernel.org, linux-kernel@lists.infradead.org Cc: thierry.reding@avionic-design.de, kgene.kim@samsung.com, patches@linaro.org Subject: [PATCH] ARM: EXYNOS: Use generic pwm driver in Origen board Date: Thu, 9 Aug 2012 14:33:55 +0530 Message-Id: <1344503035-18127-1-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQmO+DeEJXZk65VBSrCNYlsASk+jEh8m9dpedUvDcyKzm3guNFzbQwNmCYCURPw9PxlzGMve Signed-off-by: Tushar Behera --- arch/arm/mach-exynos/mach-origen.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c index 5ca8030..4c4048d 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 @@ -613,6 +614,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 = { @@ -681,6 +686,10 @@ static struct platform_device origen_device_bluetooth = { }, }; +static struct platform_device origen_device_pwm = { + .name = "s3c24xx-pwm.0", +}; + static struct platform_device *origen_devices[] __initdata = { &s3c_device_hsmmc2, &s3c_device_hsmmc0, @@ -711,6 +720,7 @@ static struct platform_device *origen_devices[] __initdata = { &origen_lcd_hv070wsa, &origen_leds_gpio, &origen_device_bluetooth, + &origen_device_pwm, }; /* LCD Backlight data */ @@ -791,6 +801,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();