]> Pileus Git - ~andy/linux/commitdiff
clk: samsung: Add MUX_FA macro to pass flag and alias
authorTushar Behera <tushar.behera@linaro.org>
Thu, 20 Jun 2013 10:47:17 +0000 (16:17 +0530)
committerMike Turquette <mturquette@linaro.org>
Sat, 22 Jun 2013 17:50:41 +0000 (10:50 -0700)
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 <tushar.behera@linaro.org>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/samsung/clk.h

index e4ad6ea9aa764b1eda9371452d3b95dc412920ff..2f7dba20ced8b9145f261b817be65387f3048662 100644 (file)
@@ -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