From patchwork Thu Jun 20 10:47:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 2754661 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8AF01C0AB1 for ; Thu, 20 Jun 2013 11:03:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 686FD20505 for ; Thu, 20 Jun 2013 11:03:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 39A7320507 for ; Thu, 20 Jun 2013 11:03:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965343Ab3FTLDA (ORCPT ); Thu, 20 Jun 2013 07:03:00 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:36176 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965341Ab3FTLC6 (ORCPT ); Thu, 20 Jun 2013 07:02:58 -0400 Received: by mail-pd0-f171.google.com with SMTP id y14so6149579pdi.30 for ; Thu, 20 Jun 2013 04:02:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=/MY3qbywcQWToC1zpYTmyaJkpWYwdv2RHlobepSdwEc=; b=KCYD41K9XZx58m05Y3DJ7NWzQuXv58nKOdfsbvzgldVY45TC9ezWWxcDFSmm2gyZ4a OPDIq9fpm3Wf3AgrHI47/8W3sIu9RkNN/67ycfIYx0eGA9DQndohz3J6Q5beVUqaRzTY 3RTn8wtHYicnp4ZaQXFXZECSET/mB5fyZBU82uKALx3O13h2R/4Uj+lJvp+A3tozJu/v 2TtlhjYQpv5jXn7d34Cyf74MYNWbCBaKIibEoF6OB9G4B24NQGD/UnJrCoqtECecTe7E ouvRY9HOpcP2ehs5qLAKDPPYNmk2mXNy6XLdzov73u8VU38tpfnhjPgttIALnN7IDNuC 1ayw== X-Received: by 10.68.220.201 with SMTP id py9mr6922931pbc.60.1371726178257; Thu, 20 Jun 2013 04:02:58 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ri8sm27375631pbc.3.2013.06.20.04.02.55 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Jun 2013 04:02:57 -0700 (PDT) From: Tushar Behera To: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: mturquette@linaro.org, kgene.kim@samsung.com, tomasz.figa@gmail.com, patches@linaro.org Subject: [PATCH RESEND 1/2] clk: samsung: Add MUX_FA macro to pass flag and alias Date: Thu, 20 Jun 2013 16:17:17 +0530 Message-Id: <1371725238-25437-2-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1371725238-25437-1-git-send-email-tushar.behera@linaro.org> References: <1371725238-25437-1-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQlnaOgsUfFjwwK6y0kt6GkHokY+xBdhi2VPzoVExBf4CEUi5tyKxnZ+HRoeJG98qLddJF75 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Cpufreq driver for some Samsung platforms have not yet been designed as a platform driver, thereby they can only access clocks with an alias name. For EXYNOS4210, one such clock also requires a flag to be set, hence there is a need to create another macro that can handle both flag and alias. Signed-off-by: Tushar Behera --- drivers/clk/samsung/clk.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/samsung/clk.h b/drivers/clk/samsung/clk.h index e4ad6ea..2f7dba2 100644 --- a/drivers/clk/samsung/clk.h +++ b/drivers/clk/samsung/clk.h @@ -144,6 +144,9 @@ struct samsung_mux_clock { #define MUX_F(_id, cname, pnames, o, s, w, f, mf) \ __MUX(_id, NULL, cname, pnames, o, s, w, f, mf, NULL) +#define MUX_FA(_id, cname, pnames, o, s, w, f, mf, a) \ + __MUX(_id, NULL, cname, pnames, o, s, w, f, mf, a) + /** * @id: platform specific id of the clock. * struct samsung_div_clock: information about div clock