summaryrefslogtreecommitdiffstats
path: root/drivers/clk/meson/clkc.h
diff options
context:
space:
mode:
authorMichael Turquette <mturquette@baylibre.com>2016-04-28 21:01:58 +0200
committerMichael Turquette <mturquette@baylibre.com>2016-06-23 03:02:32 +0200
commit6282a2da098b07763ac5d8a710b759f17d63d1b3 (patch)
treebfc10927b5205d5dc1d5f68e29d81f616c834280 /drivers/clk/meson/clkc.h
parentclk: meson8b: clean up pll clocks (diff)
downloadlinux-6282a2da098b07763ac5d8a710b759f17d63d1b3.tar.xz
linux-6282a2da098b07763ac5d8a710b759f17d63d1b3.zip
clk: meson8b: clean up fixed factor clocks
Remove the fixed factor registration function and helpers. Replace unnecessary configuration struct with static initialization of the desired clock type. Tested-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Diffstat (limited to 'drivers/clk/meson/clkc.h')
-rw-r--r--drivers/clk/meson/clkc.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/clk/meson/clkc.h b/drivers/clk/meson/clkc.h
index 0bb4fb88a1a9..97dd4d719a84 100644
--- a/drivers/clk/meson/clkc.h
+++ b/drivers/clk/meson/clkc.h
@@ -69,13 +69,6 @@ struct meson_clk_pll {
#define to_meson_clk_pll(_hw) container_of(_hw, struct meson_clk_pll, hw)
-struct fixed_fact_conf {
- unsigned int div;
- unsigned int mult;
- struct parm div_parm;
- struct parm mult_parm;
-};
-
struct composite_conf {
struct parm mux_parm;
struct parm div_parm;
@@ -90,7 +83,6 @@ struct composite_conf {
#define PNAME(x) static const char *x[]
enum clk_type {
- CLK_FIXED_FACTOR,
CLK_COMPOSITE,
CLK_CPU,
};
@@ -104,22 +96,11 @@ struct clk_conf {
int num_parents;
unsigned long flags;
union {
- struct fixed_fact_conf fixed_fact;
const struct composite_conf *composite;
const struct clk_div_table *div_table;
} conf;
};
-#define FIXED_FACTOR_DIV(_ci, _cn, _cp, _f, _d) \
- { \
- .clk_type = CLK_FIXED_FACTOR, \
- .clk_id = (_ci), \
- .clk_name = (_cn), \
- .clks_parent = (_cp), \
- .num_parents = ARRAY_SIZE(_cp), \
- .conf.fixed_fact.div = (_d), \
- } \
-
#define CPU(_ro, _ci, _cn, _cp, _dt) \
{ \
.reg_off = (_ro), \