clk-wm831x.c (0337966d121ebebf73a1c346123e8112796e684e) clk-wm831x.c (0777066dcee8a4f16db09fd21dfd58b6d83b12f9)
1/*
2 * WM831x clock control
3 *
4 * Copyright 2011-2 Wolfson Microelectronics PLC.
5 *
6 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
7 *
8 * This program is free software; you can redistribute it and/or modify it

--- 38 unchanged lines hidden (view full) ---

47 return 0;
48}
49
50static const struct clk_ops wm831x_xtal_ops = {
51 .is_prepared = wm831x_xtal_is_prepared,
52 .recalc_rate = wm831x_xtal_recalc_rate,
53};
54
1/*
2 * WM831x clock control
3 *
4 * Copyright 2011-2 Wolfson Microelectronics PLC.
5 *
6 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
7 *
8 * This program is free software; you can redistribute it and/or modify it

--- 38 unchanged lines hidden (view full) ---

47 return 0;
48}
49
50static const struct clk_ops wm831x_xtal_ops = {
51 .is_prepared = wm831x_xtal_is_prepared,
52 .recalc_rate = wm831x_xtal_recalc_rate,
53};
54
55static struct clk_init_data wm831x_xtal_init = {
55static const struct clk_init_data wm831x_xtal_init = {
56 .name = "xtal",
57 .ops = &wm831x_xtal_ops,
58};
59
60static const unsigned long wm831x_fll_auto_rates[] = {
61 2048000,
62 11289600,
63 12000000,

--- 156 unchanged lines hidden (view full) ---

220 .prepare = wm831x_fll_prepare,
221 .unprepare = wm831x_fll_unprepare,
222 .round_rate = wm831x_fll_round_rate,
223 .recalc_rate = wm831x_fll_recalc_rate,
224 .set_rate = wm831x_fll_set_rate,
225 .get_parent = wm831x_fll_get_parent,
226};
227
56 .name = "xtal",
57 .ops = &wm831x_xtal_ops,
58};
59
60static const unsigned long wm831x_fll_auto_rates[] = {
61 2048000,
62 11289600,
63 12000000,

--- 156 unchanged lines hidden (view full) ---

220 .prepare = wm831x_fll_prepare,
221 .unprepare = wm831x_fll_unprepare,
222 .round_rate = wm831x_fll_round_rate,
223 .recalc_rate = wm831x_fll_recalc_rate,
224 .set_rate = wm831x_fll_set_rate,
225 .get_parent = wm831x_fll_get_parent,
226};
227
228static struct clk_init_data wm831x_fll_init = {
228static const struct clk_init_data wm831x_fll_init = {
229 .name = "fll",
230 .ops = &wm831x_fll_ops,
231 .parent_names = wm831x_fll_parents,
232 .num_parents = ARRAY_SIZE(wm831x_fll_parents),
233 .flags = CLK_SET_RATE_GATE,
234};
235
236static int wm831x_clkout_is_prepared(struct clk_hw *hw)

--- 96 unchanged lines hidden (view full) ---

333static const struct clk_ops wm831x_clkout_ops = {
334 .is_prepared = wm831x_clkout_is_prepared,
335 .prepare = wm831x_clkout_prepare,
336 .unprepare = wm831x_clkout_unprepare,
337 .get_parent = wm831x_clkout_get_parent,
338 .set_parent = wm831x_clkout_set_parent,
339};
340
229 .name = "fll",
230 .ops = &wm831x_fll_ops,
231 .parent_names = wm831x_fll_parents,
232 .num_parents = ARRAY_SIZE(wm831x_fll_parents),
233 .flags = CLK_SET_RATE_GATE,
234};
235
236static int wm831x_clkout_is_prepared(struct clk_hw *hw)

--- 96 unchanged lines hidden (view full) ---

333static const struct clk_ops wm831x_clkout_ops = {
334 .is_prepared = wm831x_clkout_is_prepared,
335 .prepare = wm831x_clkout_prepare,
336 .unprepare = wm831x_clkout_unprepare,
337 .get_parent = wm831x_clkout_get_parent,
338 .set_parent = wm831x_clkout_set_parent,
339};
340
341static struct clk_init_data wm831x_clkout_init = {
341static const struct clk_init_data wm831x_clkout_init = {
342 .name = "clkout",
343 .ops = &wm831x_clkout_ops,
344 .parent_names = wm831x_clkout_parents,
345 .num_parents = ARRAY_SIZE(wm831x_clkout_parents),
346 .flags = CLK_SET_RATE_PARENT,
347};
348
349static int wm831x_clk_probe(struct platform_device *pdev)

--- 54 unchanged lines hidden ---
342 .name = "clkout",
343 .ops = &wm831x_clkout_ops,
344 .parent_names = wm831x_clkout_parents,
345 .num_parents = ARRAY_SIZE(wm831x_clkout_parents),
346 .flags = CLK_SET_RATE_PARENT,
347};
348
349static int wm831x_clk_probe(struct platform_device *pdev)

--- 54 unchanged lines hidden ---