From patchwork Wed Oct 26 11:36:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Daniel Kachhap X-Patchwork-Id: 4831 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 79A5D23E0B for ; Wed, 26 Oct 2011 11:37:12 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 6D47CA182D5 for ; Wed, 26 Oct 2011 11:37:12 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id n26so2021542faa.11 for ; Wed, 26 Oct 2011 04:37:12 -0700 (PDT) Received: by 10.223.30.149 with SMTP id u21mr970987fac.18.1319629032341; Wed, 26 Oct 2011 04:37:12 -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.152.1.71 with SMTP id 7cs9551lak; Wed, 26 Oct 2011 04:37:12 -0700 (PDT) Received: by 10.68.33.193 with SMTP id t1mr64452307pbi.89.1319629030780; Wed, 26 Oct 2011 04:37:10 -0700 (PDT) Received: from mail-pz0-f42.google.com (mail-pz0-f42.google.com [209.85.210.42]) by mx.google.com with ESMTPS id d6si2196085pbw.69.2011.10.26.04.37.09 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Oct 2011 04:37:10 -0700 (PDT) Received-SPF: pass (google.com: domain of amitdanielk@gmail.com designates 209.85.210.42 as permitted sender) client-ip=209.85.210.42; Authentication-Results: mx.google.com; spf=pass (google.com: domain of amitdanielk@gmail.com designates 209.85.210.42 as permitted sender) smtp.mail=amitdanielk@gmail.com; dkim=pass (test mode) header.i=@gmail.com Received: by pzk36 with SMTP id 36so4187825pzk.1 for ; Wed, 26 Oct 2011 04:37:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=EpmejIkVgdQ3XSTiuU5SY7cPzvI0S09gNRreQfjPb4s=; b=vmreQjyzJaw8cTaP7vsqNsKe29lUOpokepK7Gagz6kpmcuYt2s/964UX6bDwhPJDzH GD4qggq6jCFy6F0/JvijHwiz4mIJ/9L42dGBaGtOsZpVc9qlxijJaygmNDHPwXkwmak3 vUg1D5V3n/9A+q5VLAjm6D2PWgbHGWAFNqrgQ= Received: by 10.68.42.6 with SMTP id j6mr7011974pbl.102.1319629029835; Wed, 26 Oct 2011 04:37:09 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id 3sm5064379pbx.14.2011.10.26.04.37.07 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Oct 2011 04:37:09 -0700 (PDT) Sender: amit kachhap From: Amit Daniel Kachhap To: linaro-dev@lists.linaro.org Cc: amit.kachhap@linaro.org, patches@linaro.org Subject: [RFC PATCH 3/4] ARM: Exynos4: Enable thermal sensor driver for origen board Date: Wed, 26 Oct 2011 17:06:51 +0530 Message-Id: <1319629012-21205-3-git-send-email-amit.kachhap@linaro.org> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1319628954-21177-1-git-send-email-amit.kachhap@linaro.org> References: <1319628954-21177-1-git-send-email-amit.kachhap@linaro.org> Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos4/Kconfig | 5 +++++ arch/arm/mach-exynos4/mach-origen.c | 10 ++++++++++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos4/Kconfig b/arch/arm/mach-exynos4/Kconfig index cf467b5..786fdb7 100644 --- a/arch/arm/mach-exynos4/Kconfig +++ b/arch/arm/mach-exynos4/Kconfig @@ -108,6 +108,11 @@ config EXYNOS4_SETUP_USB_PHY help Common setup code for USB PHY controller +config EXYNOS4_THERMAL + bool + depends on SENSORS_EXYNOS4_TMU + default y + # machine support menu "EXYNOS4 Machines" diff --git a/arch/arm/mach-exynos4/mach-origen.c b/arch/arm/mach-exynos4/mach-origen.c index ed59f86..089b0e3 100644 --- a/arch/arm/mach-exynos4/mach-origen.c +++ b/arch/arm/mach-exynos4/mach-origen.c @@ -24,6 +24,10 @@ #include #include #include +#if defined(CONFIG_EXYNOS4_THERMAL) +#include +#include +#endif #include @@ -83,6 +87,9 @@ static struct platform_device *origen_devices[] __initdata = { &s3c_device_hsmmc2, &s3c_device_rtc, &s3c_device_wdt, +#ifdef CONFIG_EXYNOS4_THERMAL + &exynos4_device_tmu, +#endif }; static void __init origen_map_io(void) @@ -95,6 +102,9 @@ static void __init origen_map_io(void) static void __init origen_machine_init(void) { s3c_sdhci2_set_platdata(&origen_hsmmc2_pdata); +#ifdef CONFIG_EXYNOS4_THERMAL + exynos4_tmu_set_platdata(NULL); +#endif platform_add_devices(origen_devices, ARRAY_SIZE(origen_devices)); }