From patchwork Mon Jul 14 13:38:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Abraham X-Patchwork-Id: 33590 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BA6432061E for ; Mon, 14 Jul 2014 13:39:25 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id rp18sf10386946iec.0 for ; Mon, 14 Jul 2014 06:39:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=hQl6wMvz5Ki+Bf2EJ6E4LcLwQK230CGRXy/8YWzd8Ts=; b=OPtzRFGum9Oypf5cJdqEO/IBRZZrhpRHvsrR+x/GH0yCNr4185h2t2E8I6Wrj+vyZt 6AERLKiZDH7a4vunALG1kWeAjVOx+XBuT6+CvdPU9edVm0Nc5/QZGpXOF7Q5kE39vPCl YYIyvFqt6BSJ6sifoiuNZlr92szng+xw1K8xO2TQyAR1TQh9HMUe4y71AgAuwi4/O8Ia AqOBVfdGvhKD8jlW4D8tVDUIwMEFGy6EurdEDd+9TP+UobnqeRSW+fzhorz8NFuffamD yCOwsyeFhTQ1s5VCNHhaBEP/MTKCaH1fxO+xawyK8TOEgW5kmwJpXnrAULgW0dwcHAr0 k/kQ== X-Gm-Message-State: ALoCoQn6Y95Ay/wCifkLChmJax0cywv77gcP2DekRrewiY0+f47mN8p6GPwI+fhQgkrJCUOQL16f X-Received: by 10.42.12.141 with SMTP id y13mr8682457icy.20.1405345165333; Mon, 14 Jul 2014 06:39:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.85.213 with SMTP id n79ls1074996qgd.29.gmail; Mon, 14 Jul 2014 06:39:25 -0700 (PDT) X-Received: by 10.58.150.1 with SMTP id ue1mr16087074veb.11.1405345165211; Mon, 14 Jul 2014 06:39:25 -0700 (PDT) Received: from mail-vc0-x234.google.com (mail-vc0-x234.google.com [2607:f8b0:400c:c03::234]) by mx.google.com with ESMTPS id q6si5353970vcm.67.2014.07.14.06.39.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Jul 2014 06:39:25 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::234 as permitted sender) client-ip=2607:f8b0:400c:c03::234; Received: by mail-vc0-f180.google.com with SMTP id im17so7115777vcb.39 for ; Mon, 14 Jul 2014 06:39:25 -0700 (PDT) X-Received: by 10.52.249.83 with SMTP id ys19mr277045vdc.77.1405345165134; Mon, 14 Jul 2014 06:39:25 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp135779vcb; Mon, 14 Jul 2014 06:39:24 -0700 (PDT) X-Received: by 10.68.250.3 with SMTP id yy3mr16962968pbc.56.1405345164243; Mon, 14 Jul 2014 06:39:24 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qy9si2441140pab.205.2014.07.14.06.39.23; Mon, 14 Jul 2014 06:39:23 -0700 (PDT) Received-SPF: none (google.com: linux-samsung-soc-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755168AbaGNNjX (ORCPT + 8 others); Mon, 14 Jul 2014 09:39:23 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:52861 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754483AbaGNNjW (ORCPT ); Mon, 14 Jul 2014 09:39:22 -0400 Received: by mail-pa0-f53.google.com with SMTP id kq14so2471971pab.40 for ; Mon, 14 Jul 2014 06:39:22 -0700 (PDT) X-Received: by 10.66.122.70 with SMTP id lq6mr16528567pab.51.1405345162149; Mon, 14 Jul 2014 06:39:22 -0700 (PDT) Received: from user-ubuntu.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id eh4sm10896474pbc.79.2014.07.14.06.39.17 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Jul 2014 06:39:21 -0700 (PDT) From: Thomas Abraham To: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org, mturquette@linaro.org, kgene.kim@samsung.com, t.figa@samsung.com, l.majewski@samsung.com, viresh.kumar@linaro.org, thomas.ab@samsung.com, heiko@sntech.de, cw00.choi@samsung.com Subject: [PATCH v7 5/6] ARM: Exynos: switch to using generic cpufreq driver for exynos4210/5250/5420 Date: Mon, 14 Jul 2014 19:08:37 +0530 Message-Id: <1405345118-4269-6-git-send-email-thomas.ab@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1405345118-4269-1-git-send-email-thomas.ab@samsung.com> References: <1405345118-4269-1-git-send-email-thomas.ab@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Original-Sender: thomas.ab@samsung.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::234 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@ Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Thomas Abraham Remove the platform device instantiation for exynos cpufreq driver and add the platform device for generic cpufreq drivers. Cc: Kukjin Kim Signed-off-by: Thomas Abraham Acked-by: Viresh Kumar Reviewed-by: Amit Daniel Kachhap Tested-by: Arjun K.V --- arch/arm/mach-exynos/exynos.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 2a43a17..5028b35 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -183,7 +183,20 @@ void __init exynos_cpuidle_init(void) void __init exynos_cpufreq_init(void) { - platform_device_register_simple("exynos-cpufreq", -1, NULL, 0); + char *dev_name; + + if (of_machine_is_compatible("samsung,exynos5440")) + return; + if (of_machine_is_compatible("samsung,exynos5420")) + dev_name = "arm-bL-cpufreq-dt"; + else + if (of_machine_is_compatible("samsung,exynos4412") || + of_machine_is_compatible("samsung,exynos4212")) + dev_name = "exynos-cpufreq"; + else + dev_name = "cpufreq-cpu0"; + + platform_device_register_simple(dev_name, -1, NULL, 0); } void __iomem *sysram_base_addr;