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: 18018 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f69.google.com (mail-qe0-f69.google.com [209.85.128.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 54D9D2397B for ; Thu, 20 Jun 2013 11:03:00 +0000 (UTC) Received: by mail-qe0-f69.google.com with SMTP id a11sf8709468qen.8 for ; Thu, 20 Jun 2013 04:03:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=/MY3qbywcQWToC1zpYTmyaJkpWYwdv2RHlobepSdwEc=; b=B47PQDDmdqbPRul79+UWfPwyzud2R5tMwS/vPCh6IqNTgGLcFzFzdB8/KRUTF446V+ IHYgCG21tDbUo6bo+tUuvF3AwEsoLsmpPBdReVAHw3L9M3E9fLtgV3YehD3DAo9RN+7i j9PZd2VVUviMrIyhVf9AnCHqGRcbGCMMqlOioo5XRFAQOEKvTpcqLvpJhY3oPEWj43Gl AZtYilicEX7e0EIHLZBsCOTbdzVuqBMn8dUlvoB7BuxvTquz0HCF7UIi+AR7zx+R+Wi2 REoMoKLNG4sbgUdve4gOMJbq6ENv5ntleTGD0yH+/0sKOiBCWBIuJV+pG0xH5QT5WFSB razA== X-Received: by 10.236.13.68 with SMTP id a44mr3973800yha.22.1371726180155; Thu, 20 Jun 2013 04:03:00 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.73.37 with SMTP id i5ls651406qev.54.gmail; Thu, 20 Jun 2013 04:03:00 -0700 (PDT) X-Received: by 10.58.219.68 with SMTP id pm4mr2767974vec.49.1371726180020; Thu, 20 Jun 2013 04:03:00 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id cp2si7710733vcb.27.2013.06.20.04.03.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Jun 2013 04:03:00 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id ha12so4670109vcb.35 for ; Thu, 20 Jun 2013 04:03:00 -0700 (PDT) X-Received: by 10.220.110.78 with SMTP id m14mr2435630vcp.53.1371726179946; Thu, 20 Jun 2013 04:02:59 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.165.8 with SMTP id yu8csp16250veb; Thu, 20 Jun 2013 04:02:59 -0700 (PDT) X-Received: by 10.66.155.39 with SMTP id vt7mr10738725pab.99.1371726178708; Thu, 20 Jun 2013 04:02:58 -0700 (PDT) Received: from mail-pa0-x22f.google.com (mail-pa0-x22f.google.com [2607:f8b0:400e:c03::22f]) by mx.google.com with ESMTPS id ya3si166517pab.284.2013.06.20.04.02.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Jun 2013 04:02:58 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c03::22f is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=2607:f8b0:400e:c03::22f; Received: by mail-pa0-f47.google.com with SMTP id kl14so6193922pab.34 for ; Thu, 20 Jun 2013 04:02:58 -0700 (PDT) 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: ALoCoQlhUeaGMFNJ5/ikIx/kQ/8WoyPiqJSbnjgD1Nx7s0PLozehfpmwvFB+MQWdoLSB2G9EN5yN X-Original-Sender: tushar.behera@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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