瀏覽代碼

clk: samsung: Add MUX_FA macro to pass flag and alias

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>
Tushar Behera 12 年之前
父節點
當前提交
41ccf7f2d3
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/clk/samsung/clk.h

+ 3 - 0
drivers/clk/samsung/clk.h

@@ -144,6 +144,9 @@ struct samsung_mux_clock {
 #define MUX_F(_id, cname, pnames, o, s, w, f, mf)		\
 #define MUX_F(_id, cname, pnames, o, s, w, f, mf)		\
 	__MUX(_id, NULL, cname, pnames, o, s, w, f, mf, NULL)
 	__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.
  * @id: platform specific id of the clock.
  * struct samsung_div_clock: information about div clock
  * struct samsung_div_clock: information about div clock