From patchwork Wed Sep 12 11:33:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 11350 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 6E66C23E41 for ; Wed, 12 Sep 2012 11:36:43 +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 C582A3DF9D8F for ; Wed, 12 Sep 2012 11:36:42 +0000 (UTC) Received: by iafj25 with SMTP id j25so1192105iaf.11 for ; Wed, 12 Sep 2012 04:36:42 -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:in-reply-to:references :x-gm-message-state; bh=SeS054uyKQ1/SB0TcKAhyOShdFBOf7uMKkkdz5KMFT4=; b=pLRrWlQw2JEgfcrsO0QbygUbbzTEqJ7oXbtgjynFoJQE5ICvrd2lxNCmFnx5s7+9Qc uEDz19G7XCDhxZIT5K5XN1pZ4ZqbCSM/3G8g/ay1jh3plKtPVgyyzGP+z2U6Q/jbdyU8 P5N6Zs4AiJcGb89rPV27UueHQutoSf0pzgrUdp5KE8LazYHw2DvO4Oj8cmxOoMglZQNS ftRSqMaLaih2LFN6V1bJ7P51h5fs5AzOERp1Rvswa19o4aRJLyx4kT0/aIACAtfuezpQ pT3vU4by4Nx6FbXuMsmcmiCCyFiC8rrrPthw64xWF+uZ2KZvRDVhdScJ7PCbtl1JcaIB VQ2g== Received: by 10.50.237.41 with SMTP id uz9mr20547023igc.43.1347449802133; Wed, 12 Sep 2012 04:36:42 -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.232 with SMTP id ex8csp65183igc; Wed, 12 Sep 2012 04:36:41 -0700 (PDT) Received: by 10.68.129.164 with SMTP id nx4mr16394921pbb.28.1347449801087; Wed, 12 Sep 2012 04:36:41 -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 kt9si29200270pbc.230.2012.09.12.04.36.40 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 12 Sep 2012 04:36:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@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 sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pb0-f50.google.com with SMTP id md12so2461616pbc.37 for ; Wed, 12 Sep 2012 04:36:40 -0700 (PDT) Received: by 10.68.229.6 with SMTP id sm6mr16400779pbc.120.1347449800777; Wed, 12 Sep 2012 04:36:40 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id uj3sm11274778pbc.39.2012.09.12.04.36.37 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 12 Sep 2012 04:36:39 -0700 (PDT) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, thierry.reding@avionic-design.de, tushar.behera@linaro.org, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/3] ARM: EXYNOS: Use generic pwm driver in Origen board Date: Wed, 12 Sep 2012 17:03:30 +0530 Message-Id: <1347449612-382-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1347449612-382-1-git-send-email-sachin.kamat@linaro.org> References: <1347449612-382-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmMBeX+5CCGxwGLyDw8lkHw3QE9N3iUE31+A+TvDzUgGF2XvRBm98pHXb4a3B01bvH5Mj8h From: Tushar Behera Signed-off-by: Tushar Behera Signed-off-by: Sachin Kamat --- arch/arm/mach-exynos/Kconfig | 1 + arch/arm/mach-exynos/mach-origen.c | 6 ++++++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index 195b50e..4b7d15d 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig @@ -348,6 +348,7 @@ config MACH_ORIGEN select EXYNOS4_SETUP_FIMD0 select EXYNOS4_SETUP_SDHCI select EXYNOS4_SETUP_USB_PHY + select S3C24XX_PWM help Machine support for ORIGEN based on Samsung EXYNOS4210 diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c index 5ec563b..0a3c4ef 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 = { @@ -798,6 +803,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();